m4-commit
[Top][All Lists]
Advanced

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

Changes to m4/src/Attic/debug.c,v [branch-1_4]


From: Eric Blake
Subject: Changes to m4/src/Attic/debug.c,v [branch-1_4]
Date: Tue, 08 Aug 2006 23:17:45 +0000

CVSROOT:        /sources/m4
Module name:    m4
Branch:         branch-1_4
Changes by:     Eric Blake <ericb>      06/08/08 23:17:44

Index: src/debug.c
===================================================================
RCS file: /sources/m4/m4/src/Attic/debug.c,v
retrieving revision 1.1.1.1.2.6
retrieving revision 1.1.1.1.2.7
diff -u -b -r1.1.1.1.2.6 -r1.1.1.1.2.7
--- src/debug.c 27 Jul 2006 21:41:12 -0000      1.1.1.1.2.6
+++ src/debug.c 8 Aug 2006 23:17:44 -0000       1.1.1.1.2.7
@@ -215,11 +215,14 @@
 void
 debug_message_prefix (void)
 {
-  fprintf (debug, "m4 debug: ");
+  fprintf (debug, "m4debug:");
+  if (current_line)
+  {
   if (debug_level & DEBUG_TRACE_FILE)
-    fprintf (debug, "%s: ", current_file);
+      fprintf (debug, "%s:", current_file);
   if (debug_level & DEBUG_TRACE_LINE)
-    fprintf (debug, "%d: ", current_line);
+      fprintf (debug, "%d:", current_line);
+  }
 }
 
 /* The rest of this file contains the functions for macro tracing output.
@@ -320,10 +323,13 @@
 trace_header (int id)
 {
   trace_format ("m4trace:");
+  if (current_line)
+    {
   if (debug_level & DEBUG_TRACE_FILE)
     trace_format ("%s:", current_file);
   if (debug_level & DEBUG_TRACE_LINE)
     trace_format ("%d:", current_line);
+    }
   trace_format (" -%d- ", expansion_level);
   if (debug_level & DEBUG_TRACE_CALLID)
     trace_format ("id %d: ", id);




reply via email to

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