m4-commit
[Top][All Lists]
Advanced

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

Changes to m4/modules/m4.c,v


From: Eric Blake
Subject: Changes to m4/modules/m4.c,v
Date: Thu, 31 Aug 2006 03:21:38 +0000

CVSROOT:        /sources/m4
Module name:    m4
Changes by:     Eric Blake <ericb>      06/08/31 03:21:36

Index: modules/m4.c
===================================================================
RCS file: /sources/m4/m4/modules/m4.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -b -r1.67 -r1.68
--- modules/m4.c        30 Aug 2006 04:25:42 -0000      1.67
+++ modules/m4.c        31 Aug 2006 03:21:35 -0000      1.68
@@ -180,8 +180,7 @@
       m4_symbol_define (M4SYMTAB, M4ARG (1), value);
     }
   else
-    m4_warn (context, 0, _("Warning: %s: invalid macro name ignored"),
-            M4ARG (0));
+    m4_warn (context, 0, _("%s: invalid macro name ignored"), M4ARG (0));
 }
 
 M4BUILTIN_HANDLER (undefine)
@@ -192,8 +191,7 @@
       const char *name = M4ARG (i);
 
       if (!m4_symbol_lookup (M4SYMTAB, name))
-       m4_warn (context, 0, _("Warning: %s: undefined macro: %s"), M4ARG (0),
-                name);
+       m4_warn (context, 0, _("%s: undefined macro `%s'"), M4ARG (0), name);
       else
        m4_symbol_delete (M4SYMTAB, name);
     }
@@ -213,8 +211,7 @@
       m4_symbol_pushdef (M4SYMTAB, M4ARG (1), value);
     }
   else
-    m4_warn (context, 0, _("Warning: %s: invalid macro name ignored"),
-            M4ARG (0));
+    m4_warn (context, 0, _("%s: invalid macro name ignored"), M4ARG (0));
 }
 
 M4BUILTIN_HANDLER (popdef)
@@ -225,8 +222,7 @@
       const char *name = M4ARG (i);
 
       if (!m4_symbol_lookup (M4SYMTAB, name))
-       m4_warn (context, 0, _("Warning: %s: undefined macro: %s"), M4ARG (0),
-                name);
+       m4_warn (context, 0, _("%s: undefined macro `%s'"), M4ARG (0), name);
       else
        m4_symbol_popdef (M4SYMTAB, name);
     }
@@ -355,7 +351,7 @@
              dump_symbol_CB (NULL, M4ARG (i), symbol, data);
            }
          else if (complain)
-           m4_warn (context, 0, _("Warning: %s: undefined macro: %s"),
+           m4_warn (context, 0, _("%s: undefined macro `%s'"),
                     M4ARG (0), M4ARG (i));
        }
     }
@@ -406,6 +402,7 @@
       else
        {
          assert (!"invalid token in builtin_dumpdef");
+         abort ();
        }
     }
 }
@@ -423,18 +420,20 @@
       m4_symbol *symbol = m4_symbol_lookup (M4SYMTAB, name);
 
       if (!symbol)
-       m4_warn (context, 0, _("Warning: %s: undefined macro: %s"), M4ARG (0),
-                name);
+       m4_warn (context, 0, _("%s: undefined macro `%s'"), M4ARG (0), name);
       else if (m4_is_symbol_text (symbol))
        m4_shipout_string (context, obs, m4_get_symbol_text (symbol), 0, true);
       else if (m4_is_symbol_func (symbol))
        m4_push_builtin (m4_get_symbol_value (symbol));
       else if (m4_is_symbol_placeholder (symbol))
-       m4_warn (context, 0, _("\
-Warning: %s: builtin `%s' requested by frozen file not found"),
+       m4_warn (context, 0,
+                _("%s: builtin `%s' requested by frozen file not found"),
                 name, m4_get_symbol_placeholder (symbol));
       else
+       {
        assert (!"Bad token data type in m4_defn");
+         abort ();
+       }
     }
 }
 
@@ -757,8 +756,7 @@
        if (symbol != NULL)
          set_trace_CB (NULL, NULL, symbol, (char *) obs);
        else
-         m4_warn (context, 0, _("Warning: %s: undefined macro: %s"),
-                  M4ARG (0), name);
+         m4_warn (context, 0, _("%s: undefined macro `%s'"), M4ARG (0), name);
       }
 }
 
@@ -777,8 +775,7 @@
        if (symbol != NULL)
          set_trace_CB (NULL, NULL, symbol, NULL);
        else
-         m4_warn (context, 0, _("Warning: %s: undefined macro: %s"),
-                  M4ARG (0), name);
+         m4_warn (context, 0, _("%s: undefined macro `%s'"), M4ARG (0), name);
       }
 }
 




reply via email to

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