[m-rev.] for review: allow windows files to be compiled on unix

Julien Fischer juliensf at cs.mu.OZ.AU
Wed Sep 7 17:56:26 AEST 2005


On Wed, 7 Sep 2005, Ian MacLarty wrote:

> For review by anyone.
>
> Estimated hours taken: 1
> Branches: main and 0.12
>
> Allow Mercury programs written with a Windows application (like edit)
> to be compiled on a unix system.
> Previously Mercury gave "illegal character" errors.
>
> library/lexer.m:
> 	Replace checks for space, tab or newline characters with a call
> 	to char.is_whitespace.  char.is_whitespace also checks for
> 	carriage returns and linefeeds.
>
> 	Allow a carriage return character to appear before a newline
> 	when checking for `\' at the end of a line.
>
> tests/hard_coded/Mmakefile:
> tests/hard_coded/dos.exp:
> tests/hard_coded/dos.m:
> 	Test that a Windows format source file compiles.
>
That looks fine.

Julien.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list