From f7bb98ce8bdd594dd0b6bbe5099731e438eb6d54 Mon Sep 17 00:00:00 2001 From: Vern Paxson Date: Mon, 20 Mar 1995 14:03:05 +0000 Subject: [PATCH] do_yylineno MARKER_DIFFERENCE depends on MAXIMUM_MNS --- flexdef.h | 12 ++++++++---- 1 file 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; -- 2.40.0