m4-commit
[Top][All Lists]
Advanced

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

Changes to m4/modules/gnu.c,v


From: Gary V. Vaughan
Subject: Changes to m4/modules/gnu.c,v
Date: Mon, 10 Jul 2006 18:54:18 +0000

CVSROOT:        /sources/m4
Module name:    m4
Changes by:     Gary V. Vaughan <gary>  06/07/10 18:54:18

Index: modules/gnu.c
===================================================================
RCS file: /sources/m4/m4/modules/gnu.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -b -r1.41 -r1.42
--- modules/gnu.c       10 Jul 2006 15:08:21 -0000      1.41
+++ modules/gnu.c       10 Jul 2006 18:54:17 -0000      1.42
@@ -186,8 +186,6 @@
    of VICTIM matched by the last whole regular expression, taken from
    REGS[0], and \N substituted by the text matched by the Nth parenthesized
    sub-expression, taken from REGS[N].  */
-static int substitute_warned = 0;
-
 static void
 substitute (m4 *context, m4_obstack *obs, const char *victim,
            const char *repl, m4_pattern_buffer *buf)
@@ -205,15 +203,6 @@
 
       switch ((ch = *repl++))
        {
-       case '0':
-         if (!substitute_warned)
-           {
-             M4ERROR ((m4_get_warning_status_opt (context), 0, _("\
-WARNING: \\0 will disappear, use \\& instead in replacements")));
-             substitute_warned = 1;
-           }
-         /* Fall through.  */
-
        case '&':
          obstack_grow (obs, victim + buf->regs.start[0],
                        buf->regs.end[0] - buf->regs.start[0]);




reply via email to

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