Implement m4_transform_pair, to speed up AS_IF.
commit903b58ef950b8bd5598c45909744309f58c03c45
authorEric Blake <ebb9@byu.net>
Wed, 13 Aug 2008 15:12:28 +0000 (13 09:12 -0600)
committerEric Blake <ebb9@byu.net>
Fri, 15 Aug 2008 03:51:40 +0000 (14 21:51 -0600)
tree60148afa71ebfde1c23ff7bf96685173929b3090
parent9379b7024cd6d481e7a9487529e98230fc260a91
Implement m4_transform_pair, to speed up AS_IF.

* lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair): New
macros, undocumented for now.
* lib/m4sugar/foreach.m4 (m4_transform, m4_transform_pair): Also
the m4 1.4.x counterparts.
* lib/m4sugar/m4sh.m4 (AS_IF, AS_CASE): Use it.
* tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Test it.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/m4sugar/foreach.m4
lib/m4sugar/m4sh.m4
lib/m4sugar/m4sugar.m4
tests/m4sh.at