CVSROOT: /sources/m4 Module name: m4 Branch: branch-1_4 Changes by: Eric Blake <ericb> 06/07/03 13:16:19
Index: examples/wrapfifo.m4 =================================================================== RCS file: examples/wrapfifo.m4 diff -N examples/wrapfifo.m4 --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ examples/wrapfifo.m4 3 Jul 2006 13:16:19 -0000 1.1.2.1 @@ -0,0 +1,10 @@ +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
