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: Eric Blake
Subject: Changes to m4/modules/gnu.c,v
Date: Fri, 15 Sep 2006 03:37:55 +0000

CVSROOT:        /sources/m4
Module name:    m4
Changes by:     Eric Blake <ericb>      06/09/15 03:37:54

Index: modules/gnu.c
===================================================================
RCS file: /sources/m4/m4/modules/gnu.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -b -r1.54 -r1.55
--- modules/gnu.c       5 Sep 2006 13:25:24 -0000       1.54
+++ modules/gnu.c       15 Sep 2006 03:37:54 -0000      1.55
@@ -400,6 +400,8 @@
 {
   if (argc == 1)
     m4_debug_set_output (context, NULL);
+  else if (m4_get_safer_opt (context) && *M4ARG (1))
+    m4_error (context, 0, 0, _("%s: disabled by --safer"), M4ARG (0));
   else if (!m4_debug_set_output (context, M4ARG (1)))
     m4_error (context, 0, errno, _("%s: cannot set debug file: %s"),
              M4ARG (0), M4ARG (1));
@@ -449,6 +451,12 @@
       FILE *pin;
       int ch;
 
+      if (m4_get_safer_opt (context))
+       {
+         m4_error (context, 0, 0, _("%s: disabled by --safer"), M4ARG (0));
+         return;
+       }
+
       /* Optimize the empty command.  */
       if (*M4ARG (1) == '\0')
         {




reply via email to

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