gobject-introspection r868 - in trunk: . giscanner



Author: otaylor
Date: Fri Nov  7 14:27:01 2008
New Revision: 868
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=868&view=rev

Log:
2008-11-07  Owen Taylor  <otaylor redhat com>

        Bug 559737 â Deal with continuations in macros

        * giscanner/giscannerlexer.l: Treat continuation lines the same
        as regular newlines. This makes the scanner not complain about 
        #define foo(x) \ <stuff> inside a C file. There's no attempt
        however to handle parsing macro definitions split across lines.


Modified:
   trunk/ChangeLog
   trunk/giscanner/scannerlexer.l

Modified: trunk/giscanner/scannerlexer.l
==============================================================================
--- trunk/giscanner/scannerlexer.l	(original)
+++ trunk/giscanner/scannerlexer.l	Fri Nov  7 14:27:01 2008
@@ -57,6 +57,7 @@
 %%
 
 "\n"					{ ++lineno; } /* " */
+"\\\n"					{ ++lineno; }
 [\t\f\v\r ]+				{ /* Ignore whitespace. */ }
 
 "/*"					{ parse_comment(scanner); }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]