* libm4.m4 (m4_do): New macro.

This commit is contained in:
Akim Demaille 2000-03-23 16:14:57 +00:00
parent 89265d33a4
commit eb99e78fb6
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2000-03-23 Lars J. Aas <larsa@sim.no>
* libm4.m4 (m4_do): New macro.
2000-03-21 Akim Demaille <akim@epita.fr>
Provide a language independent means to generate language specific

View File

@ -389,6 +389,17 @@ define(m4_match,
regexp([$1], [$2]), -1, [m4_match([$1], m4_shiftn(3, $@))],
[$3])])
# m4_do(STRING, ...)
# ------------------
# This macro invokes all its arguments (in sequence, of course). It is
# useful for making your macros more structured and readable by dropping
# unecessary dnl's and have the macros indented properly.
define([m4_do],
[ifelse($#, 0, [],
$#, 1, [$1],
[$1[]m4_do(m4_shift($@))])])
## --------------------- ##
## Implementing m4 loops ##
## --------------------- ##