m4/examples/wrapfifo.m4
Eric Blake 2de4dd5879 Fix 'make check' in VPATH build. All files included by testsuite
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.
2007-09-21 15:02:24 -06:00

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