summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--parser.l2
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4eca1bca..d46e0dc2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2009-11-28 Kaz Kylheku <kkylheku@gmail.com>
+ * parser.l: Use flex options to suppress generation of the
+ unused functons yyunput and yyinput, thus getting rid of
+ some compiler diagnostics.
+
+2009-11-28 Kaz Kylheku <kkylheku@gmail.com>
+
Code cleanup. All private functions static. Private stuff
in regex module not exposed in header. Etc.
diff --git a/parser.l b/parser.l
index 5a55115d..586c21d1 100644
--- a/parser.l
+++ b/parser.l
@@ -167,6 +167,8 @@ static wchar_t num_esc(char *num)
%}
%option stack
+%option nounput
+%option noinput
TOK :?[a-zA-Z_][a-zA-Z0-9_]*|[+-]?[0-9]+
ID_END [^a-zA-Z0-9_]