]> git.draconx.ca Git - gob-dx.git/blobdiff - src/lexer.l
Release 2.0.6
[gob-dx.git] / src / lexer.l
index e70d3a2fd1adcd16b116e7a3f22be18ec3221589..b48e818d030e0dc5ba3c88a88b023deda9f6d7bc 100644 (file)
 #include "util.h"
 
 static int parenth_depth = 0;
-static int before_comment = INITIAL;
+static int before_comment
+/* New flex is on drugs */
+#if defined(FLEX_SCANNER) && ! defined(INITIAL)
+       = 0;
+#else
+       = INITIAL;
+#endif
 static gboolean class_after_c = FALSE;
 static int code_type = CCODE;
 static int before_string;
@@ -593,14 +599,3 @@ flags              { return FLAGS; }
 <*>[\n\r]      ;  /*ignore*/
 
 %%
-
-/* Ugly warning avoiding */
-#ifdef FLEX_SCANNER
-static void warning_avoider(void) G_GNUC_UNUSED;
-static void warning_avoider(void) {
-       yy_flex_realloc(NULL, 0);
-       yyunput(0, NULL);
-       warning_avoider();
-}
-#endif
-