diff options
author | Eric Blake <eblake@redhat.com> | 2015-04-21 06:14:33 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2015-04-21 06:15:34 -0600 |
commit | 7bc2c5623d2fed6421bf95279e5d610ed8dbaa50 (patch) | |
tree | 9ec0df4be5a29982f62d587581f2426d9f5c7d56 /lib | |
parent | 6de6206717abd8bb7b99ec6121cb330274a099f2 (diff) | |
download | autoconf-7bc2c5623d2fed6421bf95279e5d610ed8dbaa50.tar.gz |
m4_set_foreach: minor optimization
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/m4sugar/m4sugar.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/m4sugar/m4sugar.m4 b/lib/m4sugar/m4sugar.m4 index 5421ed48..f6be8bcd 100644 --- a/lib/m4sugar/m4sugar.m4 +++ b/lib/m4sugar/m4sugar.m4 @@ -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) # ------------------------------- |