m4-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01-autoconf-usability.patch


From: Akim Demaille
Subject: 01-autoconf-usability.patch
Date: Fri, 17 Aug 2001 13:47:10 +0200

This is needed for Autoconf to use this M4.  Before this patch,
running

        m4 -t foo foo.m4

where foo.m4 defines `foo', would output no trace at all!

Now CVS Autoconf is happy with CVS M4.

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * m4/builtin.c (m4_macro_define): Do not reset SYMBOL_TRACED.

Index: m4/builtin.c
--- m4/builtin.c Fri, 10 Aug 2001 14:01:13 +0200 akim
+++ m4/builtin.c Thu, 16 Aug 2001 12:39:25 +0200 akim
@@ -155,7 +155,9 @@
       SYMBOL_MACRO_ARGS (symbol)       = FALSE;
       SYMBOL_BLIND_NO_ARGS (symbol)    = FALSE;
       SYMBOL_TEXT (symbol)             = xstrdup (text);
-      SYMBOL_TRACED (symbol)           = FALSE;
+      /* Do not reset SYMBOL_TRACED as it means that --trace would be
+        usable only for existing macros.  m4_lookup_symbol takes care
+        of its proper initialization.  */
     }
 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]