dect
/
libpcap
Archived
13
0
Fork 0
Commit Graph

4 Commits

Author SHA1 Message Date
guy b2e8e34e97 Add --nounput if Flex supports the --noFUNCTION options, as at least
some versions that support those options don't support disabling yyunput
by defining YY_NO_UNPUT.

If it doesn't support those options, don't check if it supports
generating reentrant scanners, as we can't add any --noFUNCTION options
to suppress generation of functions.
2007-12-31 03:38:39 +00:00
guy c370aa3788 The first argument to runlex is now just the command to run, so we can
just compare it with "flex" to determine whether we're running Lex or
Flex.
2007-12-31 02:40:21 +00:00
guy e854a5360f Pass a bunch of --noyyXXX options to suppress routines defined but not
used or declared (and thus suppress some warnings about functins with no
declaration before the definition).
2007-12-31 02:21:09 +00:00
guy cfada28fd7 Add a wrapper around Lex/Flex; that lets us handle Lex's lack of support
for -o and Flex's support for it in a way that lets us more easily fail
if Lex/Flex fails (so that we don't try to compile a bogus scanner.c
that might be generated; that appears to have happened on at least one
occasion, with the resulting scanner.o missing some functions, causing
weird errors in configure scripts for programs using libpcap), and also
prepares us to handle newer versions of Flex where we want Flex to
generate a header file so we don't get "defined but not declared"
warnings.
2007-12-30 00:28:17 +00:00