diff options
author | Gerald Combs <gerald@wireshark.org> | 2016-06-29 16:51:37 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2016-06-30 19:21:04 +0000 |
commit | cd1ddf6ef5c794cf135d8b36916dbdc7aae9ca57 (patch) | |
tree | 73e644df7cf8b508f5c4f5eb6d9a5e4502c6ead2 /epan/print_stream.h | |
parent | 6b152515abf075b84422d344e085891e2b76f41e (diff) |
Speed up print_line_text.
isatty adds a small delay, at least on OS X. Call it only when we
allocate a stream. Do the same for our codeset check.
Change-Id: Id3a20059dbc9cf7d5db16d8d238d038b9de0ebf2
Reviewed-on: https://code.wireshark.org/review/16222
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'epan/print_stream.h')
-rw-r--r-- | epan/print_stream.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/print_stream.h b/epan/print_stream.h index 565da5f3af..7afeffa155 100644 --- a/epan/print_stream.h +++ b/epan/print_stream.h @@ -50,6 +50,8 @@ typedef struct print_stream_ops { typedef struct print_stream { const print_stream_ops_t *ops; + gboolean isatty; + const char *to_codeset; void *data; } print_stream_t; |