aboutsummaryrefslogtreecommitdiffstats
path: root/text2pcap-scanner.l
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-11-05 15:35:04 -0800
committerGuy Harris <guy@alum.mit.edu>2015-11-06 01:14:31 +0000
commitce2257899647c3980ad1493bdade0d81f2d2f17f (patch)
tree64503e90d80389f50f8333300e2a2b0089e7b6f1 /text2pcap-scanner.l
parentd02104c9a61c353ce6ed54c6ca6207ed3a1fcdf0 (diff)
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 'text2pcap-scanner.l')
-rw-r--r--text2pcap-scanner.l5
1 files changed, 5 insertions, 0 deletions
diff --git a/text2pcap-scanner.l b/text2pcap-scanner.l
index a860df66a0..0f264f6d1e 100644
--- a/text2pcap-scanner.l
+++ b/text2pcap-scanner.l
@@ -10,6 +10,11 @@
*/
%option nounput
+/*
+ * We don't read interactively from the terminal.
+ */
+%option never-interactive
+
%{
/********************************************************************************