diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-08-08 08:45:05 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-08-08 08:45:05 -0700 |
commit | 3f915ef138f8d408a37c368810fc77883e666496 (patch) | |
tree | 1afe92be9a7e97ed181a74f592c0952a2b45a274 /parser.c | |
parent | 2aa8d2dbae0a7badcf0edbab7cb733f57060ed12 (diff) | |
download | txr-3f915ef138f8d408a37c368810fc77883e666496.tar.gz txr-3f915ef138f8d408a37c368810fc77883e666496.tar.bz2 txr-3f915ef138f8d408a37c368810fc77883e666496.zip |
scanner: use %option never-interactive
It looks like Flex has a "never-interactive" option which does
what the batch option should be doing: it removes the use of
isatty.
Historically, it was an %option only with no corresponding
command-line option; newer Flex has a --never-interactive
command line option also.
The batch option actually makes very little difference in the
output. If never-interactive is used, then the batch option
makes no difference.
* parser.l (%option): Add never-interactive option, remove
batch.
(VER, FLEX_VER, YY_NO_UNISTD_H, isatty, no_isatty): Remove all
these macros: under the never-interactive option, there are
no isatty calls and no inclusion of <unistd.h>.
Diffstat (limited to 'parser.c')
0 files changed, 0 insertions, 0 deletions