[C2hs] darcs patch: Work-around Language.C's inability to handle CRLF newl...

Benedikt Huber benjovi at gmx.net
Wed Jul 21 11:08:16 EDT 2010


On 17.07.2010, at 01:51, Edward Z. Yang wrote:

> Excerpts from ezyang's message of Fri Jul 16 19:38:13 -0400 2010:
>> Fri Jul 16 15:46:55 PDT 2010  ezyang at mit.edu
>>  * Work-around Language.C's inability to handle CRLF newlines.
>
> The relevant Language.C bug is:
>
> http://trac.sivity.net/language_c/ticket/5
>
> Though it looks like it's fixed already, so maybe we can ignore this
> patch.
Hi,
I've uploaded a bug fix release for language-c-0.3.* (0.3.2) to  
hackage, which hopefully fixes this problem. In principle, all  
whitespace is equivalent in C, with the exception of compiler  
directives. Inspecting the lexer, this bug should only have affected  
#LINE directives; now we allow both "\n" and "\r\n" at the end of the  
line.

benedikt

Changes 0.3.1.1 - 0.3.2 (Bug fix release)
= 
= 
========================================================================
  * Add UNPACK pragma for Ident
  * Allow '\r' at the end of line pragmas
  * Fix bug '0 is lexed as octal integer constant'
  * Fix pretty-printing of if-then-else
  * API Changes
       = Language.C.Analysis.TravMonad
	   + travErrors :: TravState s -> [CError]
>
> Edward
> _______________________________________________
> C2hs mailing list
> C2hs at haskell.org
> http://www.haskell.org/mailman/listinfo/c2hs



More information about the C2hs mailing list