diff options
author | Guy Harris <guy@alum.mit.edu> | 2007-08-04 02:13:52 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2007-08-04 02:13:52 +0000 |
commit | 5be4499ad19b66e1626f6c6eb1849803e08126d6 (patch) | |
tree | 5f15006cef3d366c1ffb3840f5fda428c28ed2ab /wiretap/ascend-scanner.l | |
parent | 2d11b0813e23d01c27975755f39f2457e4da5c90 (diff) |
Add a script as a front-end for Flex, to work around various problems,
such as the fact that Flex strips all but the last component of the "-o"
argument, and that it doesn't generate a header file to declare routines
the generated lexical analyzer defines. Use that script when building
lexical analyzers, and, for each lexical analyzer, include the generated
header file in the generated analyzer.
svn path=/trunk/; revision=22446
Diffstat (limited to 'wiretap/ascend-scanner.l')
-rw-r--r-- | wiretap/ascend-scanner.l | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/wiretap/ascend-scanner.l b/wiretap/ascend-scanner.l index a586078c63..0d63d63b94 100644 --- a/wiretap/ascend-scanner.l +++ b/wiretap/ascend-scanner.l @@ -54,6 +54,7 @@ #include "ascend-grammar.h" #include "ascend-int.h" #include "file_wrappers.h" +#include "ascend-scanner_lex.h"" FILE_T yy_fh; extern char *ascend_ra_ptr; @@ -61,8 +62,6 @@ extern char *ascend_ra_last; #define YY_INPUT(buf,result,max_size) { int c = file_getc(yy_fh); \ result = (c==EOF) ? YY_NULL : (buf[0] = c, 1); } -#define YY_NEVER_INTERACTIVE 1 - int at_eof; int mul, scratch; |