scc

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

commit 71ca53670b19bf2bfcf6fa63824095fb9780b771
parent 7b36900e3ca3e2f2868df07c85c0d3195637aaae
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 22 Apr 2016 15:36:46 +0200

[cc2] Move curfun declaration to globals section

Diffstat:
Mcc2/cc2.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cc2/cc2.h b/cc2/cc2.h @@ -208,7 +208,6 @@ extern void cleannodes(void); extern void delnode(Node *np); extern void deltree(Node *np); extern Node *newnode(void); -extern Symbol *curfun; /* symbol.c */ #define TMPSYM 0 @@ -218,5 +217,6 @@ extern void pushctx(void); extern void freesym(Symbol *sym); /* globals */ +extern Symbol *curfun; extern Symbol *locals; extern Inst *pc, *prog;