autoconf-patches
[Top][All Lists]
Advanced

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

01call-DEFAULT-DEFAULTS


From: derek
Subject: 01call-DEFAULT-DEFAULTS
Date: Tue, 25 Mar 2003 18:32:15 +0000

I was getting ready to dig into Autotest a little ways and found that the
"DEFAULT" diversion name constantly made me think that this diversion was
used when we weren't using others.  I switched it to "DEFAULTS", like
Autoconf uses since that seems to more clearly signify a section where we
store default values.

Index: ChangeLog
2003-03-25  Derek Price <address@hidden>

        * lib/autotest/general.m4: s/DEFAULT/DEFAULTS/ since it makes more
        sense.

Index: lib/autotest/general.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autotest/general.m4,v
retrieving revision 1.136
diff -u -r1.136 general.m4
--- lib/autotest/general.m4     28 Oct 2002 07:30:59 -0000      1.136
+++ lib/autotest/general.m4     25 Mar 2003 18:09:24 -0000
@@ -44,9 +44,27 @@
 # such potential, you must delete any notice of this special exception
 # to the GPL from your modified version.
 
-# Use of diversions:
+# _m4_divert(DIVERSION-NAME)
+# --------------------------
+# Convert a diversion name into its number.  Otherwise, return
+# DIVERSION-NAME which is supposed to be an actual diversion number.
+# Of course it would be nicer to use m4_case here, instead of zillions
+# of little macros, but it then takes twice longer to run `autoconf'!
 #
-#  - DEFAULT
+# From M4sugar:
+#    -1. KILL
+# 10000. GROW
+#
+# From M4sh:
+#    0. BINSH
+#    1. HEADER-REVISION
+#    2. HEADER-COMMENT
+#    3. HEADER-COPYRIGHT
+#    4. M4SH-INIT
+# 1000. BODY
+#
+# Defined below:
+#  - DEFAULTS
 #    Overall initialization, value of $at_groups_all.
 #  - OPTIONS
 #    Option processing
@@ -57,7 +75,7 @@
 #    tail of the core for;case, overall wrap up, generation of debugging
 #    scripts and statistics.
 
-m4_define([_m4_divert(DEFAULT)],       5)
+m4_define([_m4_divert(DEFAULTS)],       5)
 m4_define([_m4_divert(OPTIONS)],      10)
 m4_define([_m4_divert(TESTS)],        50)
 m4_define([_m4_divert(TAIL)],         60)
@@ -95,7 +113,7 @@
 m4_define([AT_banner_ordinal], 0)
 AS_INIT
 AS_PREPARE
-m4_divert_push([DEFAULT])dnl
+m4_divert_push([DEFAULTS])dnl
 
 AS_PREPARE
 SHELL=${CONFIG_SHELL-/bin/sh}
@@ -158,7 +176,7 @@
 # The file containing dates.
 at_times_file=$at_suite_dir/at-times
 
-m4_wrap([m4_divert_text([DEFAULT],
+m4_wrap([m4_divert_text([DEFAULTS],
 [# List of the tested programs.
 at_tested='m4_ifdef([AT_tested], [AT_tested])'
 # List of the all the test groups.




reply via email to

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