* src/macro.c (expand_macro): In macro expansion errors, report
commitf83de5a0bac93f08778382d3f766525154d15be7
authorEric Blake <ebb9@byu.net>
Wed, 11 Oct 2006 17:07:03 +0000 (11 17:07 +0000)
committerEric Blake <ebb9@byu.net>
Fri, 21 Sep 2007 21:27:33 +0000 (21 15:27 -0600)
treeaa54c57f748933ae921a7e9f0dcc1e17c046c2ce
parent9c8b7c3f8d57d4283b0f98daf5805682412c0594
* src/macro.c (expand_macro): In macro expansion errors, report
line number at open parenthesis.
* src/input.c (next_token): Fix off-by-one bug in reporting end
of file in unterminated comment and string.
(file_names): New obstack, necessary since expand_macro now hangs
on to file names longer than the files remain open.
(input_init): Initialize new obstack.
(push_file): Use new obstack.  Delay updates to current_file
until after expand_macro has restored state.
(peek_input, next_char_1): Update current_file if necessary.
(pop_wrapup): Release memory.
* doc/m4.texinfo (Macro Arguments, Changequote, Changecom): Catch
the off-by-one bug.
(Dnl): Update to the new location reporting rules.
* NEWS: Document these changes.
ChangeLog
NEWS
doc/m4.texinfo
src/input.c
src/macro.c