From 968d363f113c73885a4c6c67019b0b8a93bf2524 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 30 Jul 2007 20:22:37 +0000 Subject: 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. svn path=/trunk/; revision=22424 --- epan/uat_load.l | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'epan/uat_load.l') diff --git a/epan/uat_load.l b/epan/uat_load.l index 664ea2c942..e82220e70f 100644 --- a/epan/uat_load.l +++ b/epan/uat_load.l @@ -1,8 +1,24 @@ +/* + * We want to stop processing when we get to the end of the input. + */ %option noyywrap -%option prefix="uat_load_" -%option never-interactive + +/* + * 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 "uat_load_" rather than "yy", so this scanner + * can coexist with other scanners. + */ +%option prefix="uat_load_" + %{ /* * uat_load.l @@ -31,7 +47,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 # include "config.h" -- cgit v1.2.1