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 /giscanner/scannerlexer.l | |
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
Diffstat (limited to 'giscanner/scannerlexer.l')
-rw-r--r-- | giscanner/scannerlexer.l | 3 |
1 files changed, 3 insertions, 0 deletions
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); |