Don't include io.h in Flex scanners - they're not interactive.
authorGuy Harris <guy@alum.mit.edu>
Thu, 5 Nov 2015 23:35:04 +0000 (15:35 -0800)
committerGuy Harris <guy@alum.mit.edu>
Fri, 6 Nov 2015 01:14:31 +0000 (01:14 +0000)
commitce2257899647c3980ad1493bdade0d81f2d2f17f
tree64503e90d80389f50f8333300e2a2b0089e7b6f1
parentd02104c9a61c353ce6ed54c6ca6207ed3a1fcdf0
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>
12 files changed:
epan/dfilter/scanner.l
epan/diam_dict.l
epan/dtd_parse.l
epan/dtd_preparse.l
epan/radius_dict.l
epan/uat_load.l
plugins/mate/mate_parser.l
plugins/wimaxasncp/wimaxasncp_dict.l
text2pcap-scanner.l
ui/text_import_scanner.l
wiretap/ascend_scanner.l
wiretap/k12text.l