diff options
Diffstat (limited to 'epan/dtd_parse.l')
-rw-r--r-- | epan/dtd_parse.l | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/epan/dtd_parse.l b/epan/dtd_parse.l index 14e3b04e99..1c9554478a 100644 --- a/epan/dtd_parse.l +++ b/epan/dtd_parse.l @@ -14,6 +14,11 @@ %option never-interactive /* + * We want to stop processing when we get to the end of the input. + */ +%option noyywrap + +/* * Prefix scanner routines with "Dtd_Parse_" rather than "yy", so this scanner * can coexist with other scanners. */ @@ -367,14 +372,3 @@ extern dtd_build_data_t* dtd_parse(GString* s) { return build_data; } - -/* - * 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; -} |