diff options
Diffstat (limited to 'epan/dfilter/scanner.l')
-rw-r--r-- | epan/dfilter/scanner.l | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/epan/dfilter/scanner.l b/epan/dfilter/scanner.l index 7f67cb73c3..9dec41e808 100644 --- a/epan/dfilter/scanner.l +++ b/epan/dfilter/scanner.l @@ -1,3 +1,24 @@ +/* + * We want to stop processing when we get to the end of the input. + */ +%option noyywrap + +/* + * We don't use unput, so don't generate code for it. + */ +%option nounput + +/* + * We don't read from the terminal. + */ +%option never-interactive + +/* + * Prefix scanner routines with "df_" rather than "yy", so this scanner + * can coexist with other scanners. + */ +%option prefix="df_" + %{ /* * $Id$ @@ -18,7 +39,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H @@ -68,12 +89,6 @@ GString* quoted_string = NULL; %x RANGE_PUNCT %x DQUOTE -/* we don't use unput, so don't generate code for it. - * This is flex-only, but current thinking is that our lexers don't work - * with non-flex anyway... - */ -%option nounput - %% [[:blank:]\n]+ /* ignore whitespace */ |