Stage 20a: reduce unget's in input engine.
commit1761b0d68f12c701abfdcf0a36d955f787849e3c
authorEric Blake <ebb9@byu.net>
Mon, 17 Mar 2008 22:03:57 +0000 (17 16:03 -0600)
committerEric Blake <ebb9@byu.net>
Mon, 17 Mar 2008 22:03:57 +0000 (17 16:03 -0600)
treeaf7cefa147ace024be2983e3fd6c41ed99af59bd
parent44c6706b4fa8c438df0f1ff44a5da6e2b3f8b294
Stage 20a: reduce unget's in input engine.

* m4/input.c (struct input_funcs): Alter read_func prototype.
(next_char, file_read, buildin_read, string_read, composite_read):
Add allow_argv parameter.
(init_builtin_token, init_argv_symbol): Require all prior input to
be consumed.
(m4_skip_line, match_input, consume_syntax): Adjust callers.
(m4__next_token): Consume first byte without peek.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
m4/input.c