Make m4_defun_init more robust.
commitb4bb9caba25dbbbc8576fa907be9ed1dff05652d
authorEric Blake <ebb9@byu.net>
Fri, 24 Oct 2008 17:24:32 +0000 (24 11:24 -0600)
committerEric Blake <ebb9@byu.net>
Fri, 24 Oct 2008 17:24:32 +0000 (24 11:24 -0600)
treedc3fb46711a9e995be681502002db1ee8180b1fc
parentd0c5f482d5aa2eb662758921e441d39dd0277531
Make m4_defun_init more robust.

* lib/m4sugar/m4sugar.m4 (m4_defun_init): Handle indirect macro
names, and correct number of arguments.
(m4_copy): Also set up location of the copy.
(m4_defun): When copied, use current macro name, not original.
* tests/m4sugar.at (m4@&t@_require: one-shot initialization):
Update test.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/m4sugar/m4sugar.m4
tests/m4sugar.at