chiark / gitweb /
conffile.fl: Use %option noyywrap rather than providing yywrap
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 28 Sep 2019 10:39:04 +0000 (11:39 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 28 Sep 2019 10:39:04 +0000 (11:39 +0100)
Prompted by review of fe0c91cce702
  "configure.in, conffile.fl: Remove dependency on `libfl.a'."

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
conffile.fl

index 77c1e2c812c10a2db6b452b6a65aed61041fd24c..6b0259cdeccb58f07eaa4959ffb9e41b757aa033 100644 (file)
@@ -22,6 +22,7 @@
 %option nounput
 %option noinput
 %option never-interactive
+%option noyywrap
 
 %{
 #include <assert.h>
@@ -169,7 +170,3 @@ include                     BEGIN(incl);
 
        /* Return all unclaimed single characters to the parser */
 .                      return *yytext;
-
-%%
-
-int yywrap(void) { return 1; }