summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorWill Estes <wlestes@users.sourceforge.net>2002-06-19 13:26:43 +0000
committerWill Estes <wlestes@users.sourceforge.net>2002-06-19 13:26:43 +0000
commit5916310e885f01716646b84bd6eecdb9a7d502ae (patch)
tree9bef35b96f2dfc5792ee4b261a0bfc465029b435 /main.c
parentd9b7016720d0406396beeac6d957c15b72651132 (diff)
address typos in NEWS; add --posix option for ERE parsing the way posix wants it; update the TODO file
Diffstat (limited to 'main.c')
-rw-r--r--main.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/main.c b/main.c
index b82aee4..275b1e0 100644
--- a/main.c
+++ b/main.c
@@ -54,7 +54,7 @@ static char * basename2 PROTO((char* path, int should_strip_ext));
/* these globals are all defined and commented in flexdef.h */
int printstats, syntaxerror, eofseen, ddebug, trace, nowarn, spprdflt;
-int interactive, caseins, lex_compat, do_yylineno, useecs, fulltbl, usemecs;
+int interactive, caseins, lex_compat, posix_compat, do_yylineno, useecs, fulltbl, usemecs;
int fullspd, gen_line_dirs, performance_report, backing_up_report;
int C_plus_plus, long_align, use_read, yytext_is_array, do_yywrap, csize;
int reentrant, reentrant_bison_pure;
@@ -746,6 +746,8 @@ int exit_status;
putc( 'i', stderr );
if ( lex_compat )
putc( 'l', stderr );
+ if ( posix_compat )
+ putc( 'X', stderr );
if ( performance_report > 0 )
putc( 'p', stderr );
if ( performance_report > 1 )
@@ -923,7 +925,7 @@ char **argv;
scanopt_t sopt;
printstats = syntaxerror = trace = spprdflt = caseins = false;
- lex_compat = C_plus_plus = backing_up_report = ddebug = fulltbl = false;
+ lex_compat = posix_compat = C_plus_plus = backing_up_report = ddebug = fulltbl = false;
fullspd = long_align = nowarn = yymore_used = continued_action = false;
do_yylineno = yytext_is_array = in_rule = reject = do_stdinit = false;
yymore_really_used = reject_really_used = unspecified;
@@ -1068,6 +1070,10 @@ char **argv;
lex_compat = true;
break;
+ case OPT_POSIX_COMPAT:
+ posix_compat = true;
+ break;
+
case OPT_MAIN:
buf_strdefine(&userdef_buf, "YY_MAIN", "1");
do_yywrap = false;
@@ -1743,6 +1749,7 @@ _(
" -B, --batch generate batch scanner (opposite of -I)\n"
" -i, --case-insensitive ignore case in patterns\n"
" -l, --lex-compat maximal compatibility with original lex\n"
+" -X, --posix-compat maximal compatibility with POSIX lex\n"
" -I, --interactive generate interactive scanner (opposite of -B)\n"
" --yylineno track line count in yylineno\n"