]> git.saurik.com Git - bison.git/blobdiff - data/m4sugar/m4sugar.m4
* data/m4sugar/m4sugar.m4 (m4_map): Recognize when the list of
[bison.git] / data / m4sugar / m4sugar.m4
index c2d3f7a82bc7ccb6c68b197fe6482786047cfbed..e2eced2716871b2af2d947bd17db7f5198585f06 100644 (file)
@@ -432,7 +432,8 @@ m4_define([m4_bmatch],
 # of LIST (which can be lists themselves, for multiple arguments MACROs).
 m4_define([m4_fst], [$1])
 m4_define([m4_map],
-[m4_if([$2], [[]], [],
+[m4_if([$2], [], [],
+       [$2], [[]], [],
        [$1(m4_fst($2))[]dnl
 m4_map([$1], m4_cdr($2))])])