Unify single and multi-character delimiter handling.
commit267f56e7699f2e506cc977fc4c96b4dea6626fd4
authorEric Blake <ebb9@byu.net>
Mon, 16 Feb 2009 14:02:03 +0000 (16 07:02 -0700)
committerEric Blake <ebb9@byu.net>
Mon, 16 Feb 2009 16:48:18 +0000 (16 09:48 -0700)
tree215b04edc86d00979e030f8b8712a006c15ca88d
parente5632a42071a39b1e6988533aeb2aeab16188b85
Unify single and multi-character delimiter handling.

* m4/input.c (MATCH): Add a parameter.
(m4__next_token): Simplify logic and reduce redundancy.
(m4__next_token_is_open): Adjust caller.
* m4/syntax.c (m4_set_comment, m4_set_quotes): Handle delimiters
of differing lengths.
(m4_set_syntax): Recognize restoration of single delimiters.

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