Rename --warn-syntax to --warn-macro-sequence[=regex], to make it
commitbceb7552ecee2143ee293533e503fd1e7245f4c5
authorEric Blake <ebb9@byu.net>
Thu, 8 Feb 2007 14:52:28 +0000 (8 14:52 +0000)
committerEric Blake <ebb9@byu.net>
Fri, 21 Sep 2007 21:39:28 +0000 (21 15:39 -0600)
tree589ae9b98607f28053a03a14f9650f50709ecb43
parent17135ec970314ed4851f5fb35afe47d4e6ac29c3
Rename --warn-syntax to --warn-macro-sequence[=regex], to make it
more flexible, and so that autoconf can use it.
* src/m4.h (set_macro_sequence, free_macro_sequence): New
prototypes.
* src/builtin.c (macro_sequence_buf, macro_sequence_regs)
(macro_sequence_inuse, set_macro_sequence, free_macro_sequence):
New variables and functions.
(define_user_macro): Allow flexibility in regular expression used
to trigger warning.
* src/m4.c (warn_syntax): Delete.
(usage, WARN_MACRO_SEQUENCE_OPTION, main): Implement changed
spelling of option, along with optional argument.
* doc/m4.texinfo (Operation modes, Arguments): Document this
change.
* NEWS: Document this change.
ChangeLog
NEWS
doc/m4.texinfo
src/builtin.c
src/m4.c
src/m4.h