aboutsummaryrefslogtreecommitdiffstats
path: root/text2pcap-scanner.l
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2007-07-30 20:22:37 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2007-07-30 20:22:37 +0000
commit5c9beb6180bf9d3a6bbbbf42eb5c82dcda1e0f85 (patch)
tree9cbfb86dfe1b0a83c37e8528dc019ef3885e0733 /text2pcap-scanner.l
parentc17ebb799f3bce6b87858ab69c4f134a0439ad2e (diff)
Add comments to various %option items to explain what they're doing.
Move the %options to the beginning if they weren't already there, and put them in the same order in all files. Add "prefix=" options to .l files that don't already have them, so we don't have to pass a "-P" option. Add "never-interactive" and "noyywrap" options to our lexical analyzers, to remove extra isatty() checks and to eliminate the need for yywrap() from the Flex library. Get rid of %option nostdinit - that's the default. Add .l.c: rules to Makefile.am files, replacing the rules for specific .l files. Have those rules all check that $(LEX) is set. Update the address for the FSF. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22424 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'text2pcap-scanner.l')
-rw-r--r--text2pcap-scanner.l15
1 files changed, 6 insertions, 9 deletions
diff --git a/text2pcap-scanner.l b/text2pcap-scanner.l
index 725926df82..6b0b716f45 100644
--- a/text2pcap-scanner.l
+++ b/text2pcap-scanner.l
@@ -1,5 +1,10 @@
/* -*-mode: flex-*- */
+/*
+ * We don't use unput, so don't generate code for it.
+ */
+%option nounput
+
%{
/********************************************************************************
@@ -16,8 +21,6 @@
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
- *
- *
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
@@ -30,7 +33,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.
*
*******************************************************************************/
@@ -52,12 +55,6 @@ text [^ \n\t]+
mailfwd >
eol \r?\n\r?
-/* 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
-
%%
{byte} { parse_token(T_BYTE, yytext); }