summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.c3
-rw-r--r--src/options.c4
-rw-r--r--src/options.h1
3 files changed, 8 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 3b996b4..6f085b0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1077,6 +1077,9 @@ void flexinit (int argc, char **argv)
case OPT_NO_YY_TOP_STATE:
ctrl.no_yy_top_state = true;
break;
+ case OPT_NO_YYINPUT:
+ ctrl.no_yyinput = true;
+ break;
case OPT_NO_YYUNPUT:
ctrl.no_yyunput = true;
break;
diff --git a/src/options.c b/src/options.c
index 56c7f42..d5c2c1d 100644
--- a/src/options.c
+++ b/src/options.c
@@ -235,6 +235,10 @@ optspec_t flexopts[] = {
{"--yywrap", OPT_YYWRAP, 0}
,
+ {"--noinput", OPT_NO_YYINPUT, 0}
+ ,
+ {"--noyyinput", OPT_NO_YYINPUT, 0}
+ ,
{"--nounput", OPT_NO_YYUNPUT, 0}
,
{"--noyyunput", OPT_NO_YYUNPUT, 0}
diff --git a/src/options.h b/src/options.h
index 0b905d5..4ec6936 100644
--- a/src/options.h
+++ b/src/options.h
@@ -79,6 +79,7 @@ enum flexopt_flag_t {
OPT_NO_REENTRANT,
OPT_NO_REJECT,
OPT_NO_STDINIT,
+ OPT_NO_YYINPUT,
OPT_NO_YYUNPUT,
OPT_NO_WARN,
OPT_NO_YYGET_EXTRA,