m4-commit
[Top][All Lists]
Advanced

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

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


From: Eric Blake
Subject: Changes to m4/src/Attic/macro.c,v [branch-1_4]
Date: Wed, 01 Nov 2006 22:29:12 +0000

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

Index: src/macro.c
===================================================================
RCS file: /sources/m4/m4/src/Attic/macro.c,v
retrieving revision 1.1.1.1.2.15
retrieving revision 1.1.1.1.2.16
diff -u -b -r1.1.1.1.2.15 -r1.1.1.1.2.16
--- src/macro.c 26 Oct 2006 21:11:56 -0000      1.1.1.1.2.15
+++ src/macro.c 1 Nov 2006 22:29:08 -0000       1.1.1.1.2.16
@@ -134,7 +134,7 @@
 | obstack OBS, indirectly through expand_token ().                        |
 `-------------------------------------------------------------------------*/
 
-static boolean
+static bool
 expand_argument (struct obstack *obs, token_data *argp)
 {
   token_type t;
@@ -166,14 +166,14 @@
            {
              /* The argument MUST be finished, whether we want it or not.  */
              obstack_1grow (obs, '\0');
-             text = obstack_finish (obs);
+             text = (char *) obstack_finish (obs);
 
              if (TOKEN_DATA_TYPE (argp) == TOKEN_VOID)
                {
                  TOKEN_DATA_TYPE (argp) = TOKEN_TEXT;
                  TOKEN_DATA_TEXT (argp) = text;
                }
-             return (boolean) (t == TOKEN_COMMA);
+             return t == TOKEN_COMMA;
            }
          /* fallthru */
        case TOKEN_OPEN:
@@ -229,8 +229,8 @@
 {
   token_data td;
   token_data *tdp;
-  boolean more_args;
-  boolean groks_macro_args = SYMBOL_MACRO_ARGS (sym);
+  bool more_args;
+  bool groks_macro_args = SYMBOL_MACRO_ARGS (sym);
 
   TOKEN_DATA_TYPE (&td) = TOKEN_TEXT;
   TOKEN_DATA_TEXT (&td) = SYMBOL_NAME (sym);
@@ -302,12 +302,12 @@
 {
   struct obstack arguments;    /* Alternate obstack if argc_stack is busy.  */
   unsigned argv_base;          /* Size of argv_stack on entry.  */
-  boolean use_argc_stack = TRUE;       /* Whether argc_stack is safe.  */
+  bool use_argc_stack = true;  /* Whether argc_stack is safe.  */
   token_data **argv;
   int argc;
   struct obstack *expansion;
   const char *expanded;
-  boolean traced;
+  bool traced;
   int my_call_id;
 
   /* Report errors at the location where the open parenthesis (if any)
@@ -331,7 +331,7 @@
   macro_call_id++;
   my_call_id = macro_call_id;
 
-  traced = (boolean) ((debug_level & DEBUG_TRACE_ALL) || SYMBOL_TRACED (sym));
+  traced = (debug_level & DEBUG_TRACE_ALL) || SYMBOL_TRACED (sym);
 
   argv_base = obstack_object_size (&argv_stack);
   if (obstack_object_size (&argc_stack) > 0)
@@ -340,7 +340,7 @@
        outer invocation has an unfinished argument being
        collected.  */
      obstack_init (&arguments);
-     use_argc_stack = FALSE;
+      use_argc_stack = false;
   }
 
   if (traced && (debug_level & DEBUG_TRACE_CALL))




reply via email to

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