diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-11-05 15:35:04 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-11-06 01:14:31 +0000 |
commit | ce2257899647c3980ad1493bdade0d81f2d2f17f (patch) | |
tree | 64503e90d80389f50f8333300e2a2b0089e7b6f1 /ui/text_import_scanner.l | |
parent | d02104c9a61c353ce6ed54c6ca6207ed3a1fcdf0 (diff) | |
download | wireshark-ce2257899647c3980ad1493bdade0d81f2d2f17f.tar.gz wireshark-ce2257899647c3980ad1493bdade0d81f2d2f17f.tar.bz2 wireshark-ce2257899647c3980ad1493bdade0d81f2d2f17f.zip |
Don't include io.h in Flex scanners - they're not interactive.
We don't have any Flex scanners that support an interactive command-line
interface, so none of our scanners are, or need to be, interactive.
Mark text2pcap's scanner as not interactive.
That means none of our scanners should call isatty(), so they don't have
any need to include <io.h> on Windows; remove that include from the
Lucent/Ascent text capture scanner.
Update a comment to reflect that what matters isn't whether we can read
from a terminal or whether we actually do so, what matters is whether
they read *interactively* from a terminal (if you want to run text2pcap
reading from the standard input and type at it, be my guest).
Change-Id: I59979d1fdb37e1913125a400963ff7a3fa6b9bbd
Reviewed-on: https://code.wireshark.org/review/11587
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/text_import_scanner.l')
-rw-r--r-- | ui/text_import_scanner.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/text_import_scanner.l b/ui/text_import_scanner.l index 026ab24c7c..625cc050d1 100644 --- a/ui/text_import_scanner.l +++ b/ui/text_import_scanner.l @@ -6,7 +6,7 @@ %option nounput noinput /* - * We don't read from the terminal. + * We don't read interactively from the terminal. */ %option never-interactive |