for review: make `.opt' files more readable

Fergus Henderson fjh at cs.mu.OZ.AU
Sat Jan 24 21:43:26 AEDT 1998


On 24-Jan-1998, Tyson Dowd <trd at cs.mu.OZ.AU> wrote:
> On 24-Jan-1998, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> > 
> > Estimated hours taken: 0.75
> > 
> > Make the generated `.opt' and `.trans_opt' files a little bit more readable.
> > 
> > compiler/mercury_to_mercury.m:
> > 	When printing out strings for `pragma c_code' 
> > 	and `pragma c_header_code', print out literal tabs
> > 	and newlines, rather than \t and \n.
> > 
> > library/term_io.m:
> > 	Add some comments warning that changes here may require
> > 	corresponding changes to similar code in mercury_to_mercury.m.
> 
> I'm not completely convinced that having more readable .opt and
> .trans_opt files is worth introducing a double maintenance problem.

Actually my log message was a bit misleading: the change also affects
the output of the `--pretty-print' option.  That is perhaps a more
convincing rationale for it.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3         |     -- the last words of T. S. Garp.



More information about the developers mailing list