summaryrefslogtreecommitdiff
path: root/src/ctinput.cc
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2019-05-22 18:51:58 -0400
committerAdrian Thurston <thurston@colm.net>2019-05-22 18:51:58 -0400
commit11bcbbea88466f75990314f58dcc66cbf76ab75b (patch)
treedd74b0a9a1b8e2ab59a178983564f5032655fd4b /src/ctinput.cc
parenteebed98e759b328f0f0e8ef2fd0afe8f2adf2720 (diff)
downloadcolm-11bcbbea88466f75990314f58dcc66cbf76ab75b.tar.gz
added and auto_trim flag to stream anad input
When set to true, all tree prints to the stream or sends to the input will result in a trim. Achieved by passing trim to the generic print.
Diffstat (limited to 'src/ctinput.cc')
-rw-r--r--src/ctinput.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ctinput.cc b/src/ctinput.cc
index 0625249d..a18a7ffb 100644
--- a/src/ctinput.cc
+++ b/src/ctinput.cc
@@ -270,6 +270,8 @@ input_funcs_ct pat_funcs =
0, 0, 0, 0, 0, 0, /* prepend funcs. */
0, 0, 0, 0, 0, 0, /* append funcs */
+ 0,
+
&ct_set_eof_mark,
&ct_transfer_loc_seq,
@@ -487,6 +489,8 @@ input_funcs_ct repl_funcs =
0, 0, 0, 0, 0, 0, /* prepend. */
0, 0, 0, 0, 0, 0, /* append. */
+ 0,
+
&ct_set_eof_mark,
&ct_transfer_loc_seq,