ref: f089efb927e64fab733dc62d3e5627c832269cef
parent: 8964018d89e7405c5a16d32b994738ba10d73f9e
author: Roberto E. Vargas Caballero <[email protected]>
date: Thu Aug 6 04:18:12 EDT 2015
Move zero and one declaration to cc1.h
--- a/cc1/cc1.h
+++ b/cc1/cc1.h
@@ -351,7 +351,7 @@
extern Input *input;
extern int lexmode;
extern unsigned curctx;
-extern Symbol *curfun;
+extern Symbol *curfun, *zero, *one;
extern Type *voidtype, *pvoidtype, *booltype,
*uchartype, *chartype,
--- a/cc1/expr.c
+++ b/cc1/expr.c
@@ -6,7 +6,6 @@
#include "../inc/cc.h"
#include "cc1.h"
-extern Symbol *zero, *one;
Node *expr(void);
--- a/cc1/stmt.c
+++ b/cc1/stmt.c
@@ -60,7 +60,6 @@
condition(void)
{
extern jmp_buf recover;
- extern Symbol *zero;
Node *np;
expect('(');