From 6e3a5989a5d60addc731d4e4bee4db30d197ad03 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Wed, 3 Dec 2008 12:39:44 +0000 Subject: raise YY_BUF_SIZE to 65536 up from the default 16384. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- ChangeLog | 9 +++++++++ giscanner/scannerlexer.l | 3 +++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index cf08fb0d..b5d6ba3c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2008-12-03 Christophe Fergeau + + 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 * 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); -- cgit v1.2.1