mirror of
https://https.git.savannah.gnu.org/git/m4.git
synced 2026-01-29 10:54:39 +00:00
now live in a single directory. Use forloop.m4 in testsuite. * checks/incl.m4, checks/foo, checks/wrapfifo.m4: Move from here... * examples/incl.m4, examples/foo, examples/wrapfifo.m4: ...to here. * checks/Makefile.in (DISTFILES): Don't distribute moved files. * examples/Makefile.am (EXTRA_DIST): Distribute new files. * checks/check-them: Avoid s/// when filename is in pattern. * examples/forloop.m4: Fix to match documentation. * doc/m4.texinfo (Include, Undivert, Incompatibilities): Reflect new locations. (Loops, Format): Actually use forloop.m4 in tests.
11 lines
388 B
Plaintext
11 lines
388 B
Plaintext
dnl Redefine m4wrap to have FIFO semantics.
|
|
define(`_m4wrap_level', `0')dnl
|
|
define(`m4wrap',
|
|
`ifdef(`m4wrap'_m4wrap_level,
|
|
`define(`m4wrap'_m4wrap_level,
|
|
defn(`m4wrap'_m4wrap_level)`$1')',
|
|
`builtin(`m4wrap', `define(`_m4wrap_level',
|
|
incr(_m4wrap_level))dnl
|
|
m4wrap'_m4wrap_level)dnl
|
|
define(`m4wrap'_m4wrap_level, `$1')')')dnl
|