repo.or.cz
/
m4
/
ericb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Use build-aux directory.
[m4/ericb.git]
/
examples
/
forloop.m4
blob
fdca260808bcdd3113cf4c26c227000100b3b356
1
divert(`-1')
2
# forloop(var, from, to, stmt) - simple version
3
define(`forloop', `pushdef(`$1', `$2')_forloop($@)popdef(`$1')')
4
define(`_forloop',
5
`$4`'ifelse($1, `$3', `', `define(`$1', incr($1))$0($@)')')
6
divert`'dnl