diff options
author | Eric Blake <ebb9@byu.net> | 2008-02-23 09:42:02 -0700 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2008-02-23 09:42:02 -0700 |
commit | c91769acf89e163c06e86be0f17022572f33bbab (patch) | |
tree | c773e29518553ebb58503eef8b1d05af8cf6428d /src/input.c | |
parent | 0b1129f73235ba35fa46f1afcef5bd5c0cdbf73c (diff) | |
download | m4-c91769acf89e163c06e86be0f17022572f33bbab.tar.gz |
s/obstack_print/shipout_string_trunc/.
* src/m4.h (obstack_print): Rename...
(shipout_string_trunc): ...to this, to leave obstack_ prefix for
actual obstack API.
* src/debug.c (trace_format): Adjust caller.
(obstack_print): Move...
* src/output.c (shipout_string_trunc): ...here, including rename.
* src/input.c (input_print): Adjust caller.
* src/macro.c (arg_print): Likewise.
Reported by Ralf Wildenhues.
Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'src/input.c')
-rw-r--r-- | src/input.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input.c b/src/input.c index e2bf0aa3..e2d332a5 100644 --- a/src/input.c +++ b/src/input.c @@ -687,7 +687,7 @@ input_print (struct obstack *obs, const input_block *input) switch (input->type) { case INPUT_STRING: - obstack_print (obs, input->u.u_s.str, input->u.u_s.len, &maxlen); + shipout_string_trunc (obs, input->u.u_s.str, input->u.u_s.len, &maxlen); break; case INPUT_FILE: obstack_grow (obs, "<file: ", strlen ("<file: ")); @@ -704,8 +704,8 @@ input_print (struct obstack *obs, const input_block *input) switch (chain->type) { case CHAIN_STR: - if (obstack_print (obs, chain->u.u_s.str, chain->u.u_s.len, - &maxlen)) + if (shipout_string_trunc (obs, chain->u.u_s.str, + chain->u.u_s.len, &maxlen)) return; break; case CHAIN_ARGV: |