[hackers] [scc] Move zero and one declaration to cc1.h || Roberto E. Vargas Caballero
commit f089efb927e64fab733dc62d3e5627c832269cef
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Thu Aug 6 08:18:12 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Thu Aug 6 08:18:12 2015 +0200
Move zero and one declaration to cc1.h
diff --git a/cc1/cc1.h b/cc1/cc1.h
index 5c0b281..ce3a2cc 100644
--- a/cc1/cc1.h
+++ b/cc1/cc1.h
_AT_@ -351,7 +351,7 @@ extern unsigned cppctx;
extern Input *input;
extern int lexmode;
extern unsigned curctx;
-extern Symbol *curfun;
+extern Symbol *curfun, *zero, *one;
extern Type *voidtype, *pvoidtype, *booltype,
*uchartype, *chartype,
diff --git a/cc1/expr.c b/cc1/expr.c
index 015c0fb..047c06e 100644
--- a/cc1/expr.c
+++ b/cc1/expr.c
_AT_@ -6,7 +6,6 @@
#include "../inc/cc.h"
#include "cc1.h"
-extern Symbol *zero, *one;
Node *expr(void);
diff --git a/cc1/stmt.c b/cc1/stmt.c
index 47db215..f06a812 100644
--- a/cc1/stmt.c
+++ b/cc1/stmt.c
_AT_@ -60,7 +60,6 @@ static Node *
condition(void)
{
extern jmp_buf recover;
- extern Symbol *zero;
Node *np;
expect('(');
Received on Fri Aug 07 2015 - 09:15:47 CEST
This archive was generated by hypermail 2.3.0
: Fri Aug 07 2015 - 09:24:13 CEST