scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit f089efb927e64fab733dc62d3e5627c832269cef
parent 8964018d89e7405c5a16d32b994738ba10d73f9e
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu,  6 Aug 2015 08:18:12 +0200

Move zero and one declaration to cc1.h

Diffstat:
Mcc1/cc1.h | 2+-
Mcc1/expr.c | 1-
Mcc1/stmt.c | 1-
3 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/cc1/cc1.h b/cc1/cc1.h @@ -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 @@ -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 @@ -60,7 +60,6 @@ static Node * condition(void) { extern jmp_buf recover; - extern Symbol *zero; Node *np; expect('(');