autoconf-patches
[Top][All Lists]
Advanced

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

50-m4-divnum.patch


From: Akim Demaille
Subject: 50-m4-divnum.patch
Date: Tue, 28 Nov 2000 09:04:43 +0100

Index: ChangeLog
from  Akim Demaille  <address@hidden>
        
        * m4sugar.m4 (m4_errprint, divnum, errprint, esyscmd): Rename as...
        (m4_errprintn, m4_divnum, m4errprint, m4_esyscmd): this.
        * autoconf.m4: Restore them.
        
Index: autoconf.m4
--- autoconf.m4 Sat, 18 Nov 2000 15:36:51 +0100 akim (ace/28_autoconf.m 1.15 
644)
+++ autoconf.m4 Sun, 26 Nov 2000 16:54:54 +0100 akim (ace/28_autoconf.m 1.15 
644)
@@ -43,6 +43,9 @@
 m4_copy_unm4([m4_define])
 m4_copy_unm4([m4_defn])
 m4_copy_unm4([m4_divert])
+m4_copy_unm4([m4_divnum])
+m4_copy_unm4([m4_errprint])
+m4_copy_unm4([m4_esyscmd])
 m4_copy_unm4([m4_incr])
 m4_copy_unm4([m4_index])
 m4_copy_unm4([m4_indir])
Index: m4sugar.m4
--- m4sugar.m4 Sun, 19 Nov 2000 14:30:44 +0100 akim (ace/b/27_libm4.m4 1.38 644)
+++ m4sugar.m4 Sun, 26 Nov 2000 16:53:43 +0100 akim (ace/b/27_libm4.m4 1.38 644)
@@ -115,7 +115,10 @@ m4_define([m4_copy_unm4],
 m4_rename_m4([debugmode])
 m4_rename_m4([decr])
 m4_undefine([divert])
+m4_rename_m4([divnum])
 m4_rename_m4([dumpdef])
+m4_rename_m4([errprint])
+m4_rename_m4([esyscmd])
 m4_rename_m4([eval])
 m4_rename_m4([format])
 m4_rename_m4([incr])
@@ -150,10 +153,10 @@ m4_define([m4_copy_unm4],
 m4_define([m4_location], [__file__:__line__])
 
 
-# m4_errprint(MSG)
-# ----------------
+# m4_errprintn(MSG)
+# -----------------
 # Same as `errprint', but with the missing end of line.
-m4_define([m4_errprint], [errprint([$1
+m4_define([m4_errprintn], [m4_errprint([$1
 ])])
 
 
@@ -161,14 +164,14 @@ m4_define([m4_errprint], [errprint([$1
 # ---------------
 # Warn the user.
 m4_define([m4_warning],
-[m4_errprint(m4_location[: warning: $1])])
+[m4_errprintn(m4_location[: warning: $1])])
 
 
 # m4_fatal(MSG, [EXIT-STATUS])
 # ----------------------------
 # Fatal the user.                                                      :)
 m4_define([m4_fatal],
-[m4_errprint(m4_location[: error: $1])dnl
+[m4_errprintn(m4_location[: error: $1])dnl
 m4_expansion_stack_dump()dnl
 m4_exit(ifelse([$2],, 1, [$2]))])
 
@@ -1044,10 +1047,10 @@ m4_define([_m4_divert(GROW)],       1000
 # Dump the expansion stack.
 m4_define([m4_expansion_stack_dump],
 [ifdef([_m4_expansion_stack],
-       [m4_errprint(m4_defn([_m4_expansion_stack]))dnl
+       [m4_errprintn(m4_defn([_m4_expansion_stack]))dnl
 m4_popdef([_m4_expansion_stack])dnl
 m4_expansion_stack_dump()],
-       [m4_errprint(m4_location[: the top level])])])
+       [m4_errprintn(m4_location[: the top level])])])
 
 
 # _m4_defun_pro(MACRO-NAME)



reply via email to

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