summaryrefslogtreecommitdiff
path: root/flexdef.h
diff options
context:
space:
mode:
authorVern Paxson <vern@ee.lbl.gov>1995-03-20 14:03:05 +0000
committerVern Paxson <vern@ee.lbl.gov>1995-03-20 14:03:05 +0000
commitf7bb98ce8bdd594dd0b6bbe5099731e438eb6d54 (patch)
treefa408c9157ac0f462472bee455458b04d23822e5 /flexdef.h
parentc55296461e9a7e325bf60a77aad79f2242bb0891 (diff)
do_yylineno
MARKER_DIFFERENCE depends on MAXIMUM_MNS
Diffstat (limited to 'flexdef.h')
-rw-r--r--flexdef.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/flexdef.h b/flexdef.h
index 0ebff13..7a1dc4b 100644
--- a/flexdef.h
+++ b/flexdef.h
@@ -212,11 +212,13 @@
#define JAMSTATE -32766 /* marks a reference to the state that always jams */
+/* Maximum number of NFA states. */
+#define MAXIMUM_MNS 31999
+
/* Enough so that if it's subtracted from an NFA state number, the result
* is guaranteed to be negative.
*/
-#define MARKER_DIFFERENCE 32000
-#define MAXIMUM_MNS 31999
+#define MARKER_DIFFERENCE (MAXIMUM_MNS+2)
/* Maximum number of nxt/chk pairs for non-templates. */
#define INITIAL_MAX_XPAIRS 2000
@@ -348,6 +350,7 @@ extern struct hash_entry *ccltab[CCL_HASH_SIZE];
* interactive - if true (-I), generate an interactive scanner
* caseins - if true (-i), generate a case-insensitive scanner
* lex_compat - if true (-l), maximize compatibility with AT&T lex
+ * do_yylineno - if true, generate code to maintain yylineno
* useecs - if true (-Ce flag), use equivalence classes
* fulltbl - if true (-Cf flag), don't compress the DFA state table
* usemecs - if true (-Cm flag), use meta-equivalence classes
@@ -382,8 +385,9 @@ extern struct hash_entry *ccltab[CCL_HASH_SIZE];
*/
extern int printstats, syntaxerror, eofseen, ddebug, trace, nowarn, spprdflt;
-extern int interactive, caseins, lex_compat, useecs, fulltbl, usemecs;
-extern int fullspd, gen_line_dirs, performance_report, backing_up_report;
+extern int interactive, caseins, lex_compat, do_yylineno;
+extern int useecs, fulltbl, usemecs, fullspd;
+extern int gen_line_dirs, performance_report, backing_up_report;
extern int C_plus_plus, long_align, use_read, yytext_is_array, do_yywrap;
extern int csize;
extern int yymore_used, reject, real_reject, continued_action, in_rule;