diff options
author | Christophe Fergeau <teuf@src.gnome.org> | 2008-12-03 12:39:44 +0000 |
---|---|---|
committer | Christophe Fergeau <teuf@src.gnome.org> | 2008-12-03 12:39:44 +0000 |
commit | 6e3a5989a5d60addc731d4e4bee4db30d197ad03 (patch) | |
tree | f7aff5976c94be4b7e0b2146d2ed2baa41adeb4a | |
parent | ffdef9d451bb32de62d5c1c71911f2e70279d1e0 (diff) | |
download | gobject-introspection-6e3a5989a5d60addc731d4e4bee4db30d197ad03.tar.gz |
raise YY_BUF_SIZE to 65536 up from the default 16384.
With the default YY_BUF_SIZE value, the lexer was aborting with a cryptic
error message on source files containing really long comment blocks.
Fixes bug 562971 – g-ir-scanner failure on libgpod headers
svn path=/trunk/; revision=983
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | giscanner/scannerlexer.l | 3 |
2 files changed, 12 insertions, 0 deletions
@@ -1,3 +1,12 @@ +2008-12-03 Christophe Fergeau <teuf@gnome.org> + + Bug 562971 – g-ir-scanner failure on libgpod headers + + * giscanner/scannerlexer.l: raise YY_BUF_SIZE to 65536 up from the + default 16384. Without it, the lexer was aborting with a cryptic + error message on source files containing really long comment + blocks. + 2008-12-01 Colin Walters <walters@verbum.org> * girepository/gfield.c: Fix memory leak; unref type info we diff --git a/giscanner/scannerlexer.l b/giscanner/scannerlexer.l index 3b2b7e8a..22894d18 100644 --- a/giscanner/scannerlexer.l +++ b/giscanner/scannerlexer.l @@ -38,6 +38,9 @@ int lineno; +#undef YY_BUF_SIZE +#define YY_BUF_SIZE 65536 + extern int yylex (GISourceScanner *scanner); #define YY_DECL int yylex (GISourceScanner *scanner) static int yywrap (void); |