diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2020-10-11 21:55:00 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2020-10-12 05:35:24 -0400 |
commit | dad680611b8373cac2e5dc60e7552535bded79c2 (patch) | |
tree | 2e3b38c590ebc381c17c1423334b8fdf1c302661 /src/main.c | |
parent | 526be1f459bdc907b9867609214e3667c040cdae (diff) | |
download | flex-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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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"); } - |