]> git.ipfire.org Git - thirdparty/autoconf.git/commit
add m4_stack_foreach and m4_stack_foreach_lifo
authorPaolo Bonzini <bonzini@gnu.org>
Tue, 28 Oct 2008 10:27:31 +0000 (11:27 +0100)
committerPaolo Bonzini <bonzini@gnu.org>
Tue, 28 Oct 2008 17:29:25 +0000 (18:29 +0100)
commit1415907c2d8a008fa2e6e443c491006029f43bde
tree4edffa6e28e96282d23e677a9bead08da71fbc89
parent29e6e30d37f591a3a957951c50f594c94ba719e1
add m4_stack_foreach and m4_stack_foreach_lifo

* lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): New from _m4_copy.
(m4_stack_foreach, m4_stack_foreach_lifo): New.
(m4_copy): Use m4_stack_foreach and m4_curry.
(_m4_dumpdefs_down, _m4_dumpdefs_up): Remove.
(m4_dumpdefs): Rewrite using m4_stack_foreach_lifo.
* tests/m4sugar.at (m4_stack_foreach): New test.
ChangeLog
lib/m4sugar/m4sugar.m4
tests/m4sugar.at