Avoid some overhead from m4_defn and m4_popdef.
commitb4df79e1ab8dd76fc58bb79aa2f2e79edcc22cde
authorEric Blake <ebb9@byu.net>
Wed, 10 Oct 2007 18:17:59 +0000 (10 12:17 -0600)
committerEric Blake <ebb9@byu.net>
Wed, 10 Oct 2007 22:04:01 +0000 (10 16:04 -0600)
tree7c0f479087915e49c7cb6986c50076d7e7ab9c0d
parent45b46a74678882b50d4ab0a8102cadd3b32b7fa4
Avoid some overhead from m4_defn and m4_popdef.

* lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Only
pass on first argument, since we are documented that way.
(m4_for, m4_append_uniq, m4_text_wrap): Optimize out defined-ness
check where it is safe to do so.
(m4_append): Likewise, and quote the separator.
(m4_text_box): Likewise, and avoid regex, also be robust to
expansion and quadrigraphs.

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