[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 23-less-ac-subst.patch
From: |
Akim Demaille |
Subject: |
Re: 23-less-ac-subst.patch |
Date: |
23 Jan 2001 18:45:15 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Crater Lake) |
>>>>> "Pavel" == Pavel Roskin <address@hidden> writes:
Pavel> Ok, I need to see the implementation first.
Index: m4sugar.m4
===================================================================
RCS file: /cvs/autoconf/m4sugar.m4,v
retrieving revision 2.41
diff -u -u -r2.41 m4sugar.m4
--- m4sugar.m4 2001/01/23 17:04:36 2.41
+++ m4sugar.m4 2001/01/23 17:29:23
@@ -1279,13 +1279,14 @@
])
-# m4_expand_once(TEXT)
-# --------------------
-# If TEXT has never been expanded, expand it *here*.
+# m4_expand_once(TEXT, [WITNESS = TEXT])
+# --------------------------------------
+# If TEXT has never been expanded, expand it *here*. Use WITNESS as
+# as a memory that TEXT has already been expanded.
m4_define([m4_expand_once],
-[m4_provide_ifelse([$1],
+[m4_provide_ifelse(m4_ifval([$2], [[$2]], [[$1]]),
[],
- [m4_provide([$1])[]$1])])
+ [m4_provide(m4_ifval([$2], [[$2]], [[$1]]))[]$1])])
# m4_provide(MACRO-NAME)
So, what would you suggest? :)
Re: 23-less-ac-subst.patch, Raja R Harinath, 2001/01/23