mirror of
git://git.sv.gnu.org/autoconf
synced 2025-01-18 10:45:15 +08:00
* libm4.m4 (m4_do): New macro.
This commit is contained in:
parent
89265d33a4
commit
eb99e78fb6
@ -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
|
||||
|
11
libm4.m4
11
libm4.m4
@ -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 ##
|
||||
## --------------------- ##
|
||||
|
Loading…
Reference in New Issue
Block a user