]> git.draconx.ca Git - gob-dx.git/blobdiff - src/lexer.l
Rename "prealloc" global variable.
[gob-dx.git] / src / lexer.l
index d59a3d96b4b2707de33df8041dbdbfd674303a7e..d33965db2119190c474205bc44ddaafbb210bff8 100644 (file)
@@ -1,4 +1,6 @@
-/* GOB C Preprocessor
+%top{
+/*
+ * GOB C Preprocessor
  * Copyright (C) 1999-2000 the Free Software Foundation.
  * Copyright (C) 2000 Eazel, Inc.
  * Copyright (C) 2001-2011 George (Jiri) Lebl
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
  * USA.
  */
-%{
+#include <config.h>
+}
 
-#include "config.h" 
+%{
 #include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
@@ -657,7 +660,7 @@ flags               { return FLAGS; }
                        p = strchr (yytext,'p');
                        g_assert (p); /* we MUST have found it */
                        sscanf (p, "prealloc %d", &t);
-                       prealloc=t;
+                       npreallocs=t;
                }
 
 %%