gobject-introspection r868 - in trunk: . giscanner
- From: otaylor svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r868 - in trunk: . giscanner
- Date: Fri, 7 Nov 2008 14:27:01 +0000 (UTC)
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]