Simplify expansion stack handling.
commit852082f1196b29d8a5759f1efa490accb4a8ba6b
authorEric Blake <ebb9@byu.net>
Thu, 30 Oct 2008 18:16:15 +0000 (30 12:16 -0600)
committerEric Blake <ebb9@byu.net>
Fri, 31 Oct 2008 15:59:56 +0000 (31 09:59 -0600)
tree0eff8d93c82ced55a81c525aa2a3c5132a44ec9b
parentcd9fbb8453739ef795a6a64192610265d49577d2
Simplify expansion stack handling.

* lib/m4sugar/m4sugar.m4 (m4_expansion_stack): Use fewer macros;
always output 'top level'.
(_m4_expansion_stack_entry): New macro, to format the string only
when needed.
(m4_expansion_stack_push): Only push a macro name.
(m4_warn, _m4_defun_pro): Update callers.
(m4_expansion_stack_pop, m4_expansion_stack_dump): Delete.
(_m4_defun_epi, m4_fatal): Inline the calls.
* tests/m4sugar.at (m4@&t@_expansion_stack): New test.

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