A small patch to Pd m4 test files.
Ozan Yigit
oz at yunexus.UUCP
Mon Feb 22 09:31:08 AEST 1988
The test files included with pdm4 contain the definition
of `DECR' macro twice, thereby burping the Sv m4 during
the timing tests. (This does not happen with v7 m4). Here
is a trivial patch that removes the multiple definitions.
oz
Index: test.m4
*** test.m4 Sat Nov 21 15:37:47 1987
--- test.m4.new Sun Feb 21 18:16:48 1988
***************
*** 1,6 ****
--- 1,10 ----
#
# test file for mp (not comprehensive)
#
+ # v7 m4 does not have `decr'.
+ #
+ define(DECR,`eval($1-1)')
+ #
# include string macros
#
include(string.m4)
Index: hanoi.m4
*** hanoi.m4 Sat Nov 21 15:37:44 1987
--- hanoi.m4.new Sun Feb 21 18:16:59 1988
***************
*** 1,4 ****
- define(DECR,`eval($1-1)')
define(hanoi, `trans(A, B, C, $1)')
define(moved,`move disk from $1 to $2
--- 1,3 ----
Index: ack.m4
*** ack.m4 Sun Feb 21 18:20:15 1988
--- ack.m4.new Sun Feb 21 18:20:58 1988
***************
*** 1,3 ****
- define(DECR,`eval($1-1)')
define(ack, `ifelse($1,0,incr($2),$2,0,`ack(DECR($1),1)',
`ack(DECR($1), ack($1,DECR($2)))')')
--- 1,2 ----
--
Those who lose the sight Usenet: [decvax|ihnp4]!utzoo!yunexus!oz
of what is really important ......!seismo!mnetor!yunexus!oz
are destined to become Bitnet: oz@[yusol|yulibra|yuyetti]
irrelevant. - anon Phonet: +1 416 736-5257 x 3976
More information about the Comp.sources.bugs
mailing list