summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2020-10-11 21:55:00 -0400
committerEric S. Raymond <esr@thyrsus.com>2020-10-12 05:35:24 -0400
commitdad680611b8373cac2e5dc60e7552535bded79c2 (patch)
tree2e3b38c590ebc381c17c1423334b8fdf1c302661 /src/main.c
parent526be1f459bdc907b9867609214e3667c040cdae (diff)
downloadflex-git-dad680611b8373cac2e5dc60e7552535bded79c2.tar.gz
Deprecate input(); document yyinput() for the C back end...
...leaving an "input" macro in place for legacy compatibility. input() had already become yyinput() in the C++ back end in order to avoid collision with predefibed C++ inoput. In a multi-language world, this is good policy in general. There's no real reason for C to be different, and excellent reason to pull all possible entry points into the yy namespace.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 9865e84..2a7d5c6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1585,8 +1585,8 @@ void readin (void)
if (ctrl.prefix != NULL)
visible_define_str ( "M4_MODE_PREFIX", ctrl.prefix);
- if (ctrl.no_input)
- visible_define("M4_MODE_NO_INPUT");
+ if (ctrl.no_yyinput)
+ visible_define("M4_MODE_NO_YYINPUT");
if (ctrl.no_yy_push_state)
visible_define("M4_YY_NO_PUSH_STATE");
@@ -1789,4 +1789,3 @@ void usage (void)
backing_name, "flex", outfile_path, "flex");
}
-