summaryrefslogtreecommitdiff
path: root/epan/dtd_preparse.l
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dtd_preparse.l')
-rw-r--r--epan/dtd_preparse.l16
1 files changed, 5 insertions, 11 deletions
diff --git a/epan/dtd_preparse.l b/epan/dtd_preparse.l
index 306e5d8f5a..5188fbae02 100644
--- a/epan/dtd_preparse.l
+++ b/epan/dtd_preparse.l
@@ -14,6 +14,11 @@
%option never-interactive
/*
+ * We want to stop processing when we get to the end of the input.
+ */
+%option noyywrap
+
+/*
* The language we're scanning is case-insensitive.
*/
%option caseless
@@ -230,14 +235,3 @@ extern GString* dtd_preparse(const gchar* dname,const gchar* fname, GString* er
return output;
}
-
-/*
- * We want to stop processing when we get to the end of the input.
- * (%option noyywrap is not used because if used then
- * some flex versions (eg: 2.5.35) generate code which causes
- * warnings by the Windows VC compiler).
- */
-
-int yywrap(void) {
- return 1;
-}