]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
m4_set_foreach: minor optimization
authorEric Blake <eblake@redhat.com>
Tue, 21 Apr 2015 12:14:33 +0000 (06:14 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 21 Apr 2015 12:15:34 +0000 (06:15 -0600)
As a minor optimization, most macros in m4sugar.m4 try to avoid
output of 'dnl' in the expansion, to reduce the number of macros
that must be expanded at each call site.

* lib/m4sugar/m4sugar.m4 (m4_set_foreach): Don't expand dnl in all
callers.

Signed-off-by: Eric Blake <eblake@redhat.com>
lib/m4sugar/m4sugar.m4

index 5421ed4894b079d35d4fb01ec71b0c7d362a927c..f6be8bcd240c0c667f16351e66149f184c49017f 100644 (file)
@@ -3126,8 +3126,8 @@ m4_define([m4_set_empty],
 # guaranteed.  This is faster than the corresponding m4_foreach([VAR],
 #   m4_indir([m4_dquote]m4_set_listc([SET])), [ACTION])
 m4_define([m4_set_foreach],
-[m4_pushdef([$2])m4_set_map_sep([$1], [m4_define([$2],], [)$3])dnl
-m4_popdef([$2])])
+[m4_pushdef([$2])m4_set_map_sep([$1],
+[m4_define([$2],], [)$3])m4_popdef([$2])])
 
 # m4_set_intersection(SET1, SET2)
 # -------------------------------