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: Wed, 01 Nov 2006 22:29:10 +0000

CVSROOT:        /sources/m4
Module name:    m4
Branch:         branch-1_4
Changes by:     Eric Blake <ericb>      06/11/01 22:29:08

Index: src/debug.c
===================================================================
RCS file: /sources/m4/m4/src/Attic/debug.c,v
retrieving revision 1.1.1.1.2.10
retrieving revision 1.1.1.1.2.11
diff -u -b -r1.1.1.1.2.10 -r1.1.1.1.2.11
--- src/debug.c 11 Sep 2006 13:17:21 -0000      1.1.1.1.2.10
+++ src/debug.c 1 Nov 2006 22:29:08 -0000       1.1.1.1.2.11
@@ -200,11 +200,11 @@
 
 /*-------------------------------------------------------------------------.
 | Change the debug output to file NAME.  If NAME is NULL, debug output is  |
-| reverted to stderr, and if empty debug output is discarded.  Return TRUE |
+| reverted to stderr, and if empty debug output is discarded.  Return true |
 | iff the output stream was changed.                                      |
 `-------------------------------------------------------------------------*/
 
-boolean
+bool
 debug_set_output (const char *name)
 {
   FILE *fp;
@@ -217,14 +217,14 @@
     {
       fp = fopen (name, "a");
       if (fp == NULL)
-       return FALSE;
+       return false;
 
       if (set_cloexec_flag (fileno (fp), true) != 0)
        M4ERROR ((warning_status, errno,
                  "Warning: cannot protect debug file across forks"));
       debug_set_file (fp);
     }
-  return TRUE;
+  return true;
 }
 
 /*-----------------------------------------------------------------------.
@@ -271,7 +271,7 @@
 
   va_start (args, fmt);
 
-  while (TRUE)
+  while (true)
     {
       while ((ch = *fmt++) != '\0' && ch != '%')
        obstack_1grow (&trace, ch);
@@ -352,7 +352,7 @@
   char *line;
 
   obstack_1grow (&trace, '\0');
-  line = obstack_finish (&trace);
+  line = (char *) obstack_finish (&trace);
   DEBUG_PRINT1 ("%s\n", line);
   obstack_free (&trace, line);
 }




reply via email to

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