%{
#include "config.h"
-#include <glib.h>
+#include <stdlib.h>
#include <string.h>
#include <ctype.h>
+#include <glib.h>
#include "treefuncs.h"
#include "parse.h"
#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;
BEGIN(CLASS_CODE_I);
add_gtk_doc_func();
}
-<GTK_DOC>^[ \t]*\*\ {
+<GTK_DOC>^[ \t]*\*[ \t] {
fflush(stdout);
add_to_cbuf(" * ");
BEGIN(GTK_DOC_LINE);
<*>[\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
-