preproc: MMacro.finishes is a pointer, not a boolean
authorH. Peter Anvin <hpa@zytor.com>
Sun, 29 Jun 2008 01:30:27 +0000 (18:30 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sun, 29 Jun 2008 01:30:27 +0000 (18:30 -0700)
MMacro.finishes is a pointer, not a boolean, so set it to "false", not
"NULL".

preproc.c

index 8415ac0..8898d14 100644 (file)
--- a/preproc.c
+++ b/preproc.c
@@ -692,7 +692,7 @@ static char *read_line(void)
                    l = nasm_malloc(sizeof(Line));
                    l->next = istk->expansion;
                    l->first = head;
-                   l->finishes = false;
+                   l->finishes = NULL;
                    istk->expansion = l;
                }
                do_predef = false;
@@ -4187,7 +4187,7 @@ static char *pp_getline(void)
             Line *l = nasm_malloc(sizeof(Line));
             l->next = defining->expansion;
             l->first = tline;
-            l->finishes = false;
+            l->finishes = NULL;
             defining->expansion = l;
             continue;
         } else if (istk->conds && !emitting(istk->conds->state)) {
@@ -4291,7 +4291,7 @@ void pp_pre_include(char *fname)
     l = nasm_malloc(sizeof(Line));
     l->next = predef;
     l->first = inc;
-    l->finishes = false;
+    l->finishes = NULL;
     predef = l;
 }
 
@@ -4313,7 +4313,7 @@ void pp_pre_define(char *definition)
     l = nasm_malloc(sizeof(Line));
     l->next = predef;
     l->first = def;
-    l->finishes = false;
+    l->finishes = NULL;
     predef = l;
 }
 
@@ -4329,7 +4329,7 @@ void pp_pre_undefine(char *definition)
     l = nasm_malloc(sizeof(Line));
     l->next = predef;
     l->first = def;
-    l->finishes = false;
+    l->finishes = NULL;
     predef = l;
 }