diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-07-20 17:53:32 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-09-15 23:01:28 -0400 |
commit | 32cb8d315afae78dfe35ce57512b7015a0cb0fb4 (patch) | |
tree | fde8085c9a2a6479edceb1c417f9ab641b097d31 | |
parent | 186e68a8d33e65884e122222e7f14f64492143c1 (diff) | |
download | roux-32cb8d315afae78dfe35ce57512b7015a0cb0fb4.tar.gz |
define curi as a global too
-rw-r--r-- | lisc/isel.c | 3 | ||||
-rw-r--r-- | lisc/parse.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/lisc/isel.c b/lisc/isel.c index 78e2c9b..eff8d93 100644 --- a/lisc/isel.c +++ b/lisc/isel.c @@ -19,8 +19,7 @@ * ABI) */ -extern Ins insb[NIns]; /* shared work buffer */ -static Ins *curi; +extern Ins insb[NIns], *curi; /* shared work buffer */ static void emit(short op, Ref to, Ref arg0, Ref arg1) diff --git a/lisc/parse.c b/lisc/parse.c index 168da6d..4e43f84 100644 --- a/lisc/parse.c +++ b/lisc/parse.c @@ -9,7 +9,7 @@ enum { NSym = 256, }; -Ins insb[NIns]; +Ins insb[NIns], *curi; OpDesc opdesc[OLast] = { [OAdd] = { 2, 1, "add" }, @@ -62,7 +62,6 @@ static int lnum; static Sym sym[NSym]; static int ntmp; static Phi **plink; -static Ins *curi; static Blk *bmap[NBlk+1]; static Blk *curb; static Blk **blink; |