diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-10-05 17:34:26 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-10-05 17:34:26 -0400 |
commit | 60aacea0c3dad234b59dcfeb5d50e3de69662515 (patch) | |
tree | 56d8ecd7b4b656aa16ec76004e1a3f2bb570243c | |
parent | 2d8b7a6baf0845781d07e40b5f8df0752f27daa8 (diff) | |
download | roux-60aacea0c3dad234b59dcfeb5d50e3de69662515.tar.gz |
rename blocka to balloc
-rw-r--r-- | lisc/lisc.h | 2 | ||||
-rw-r--r-- | lisc/parse.c | 2 | ||||
-rw-r--r-- | lisc/rega.c | 2 | ||||
-rw-r--r-- | lisc/util.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/lisc/lisc.h b/lisc/lisc.h index 5c154f0..8166143 100644 --- a/lisc/lisc.h +++ b/lisc/lisc.h @@ -273,7 +273,7 @@ extern Typ typ[NTyp]; extern Ins insb[NIns], *curi; void diag(char *); void *alloc(size_t); -Blk *blocka(); +Blk *balloc(); void emit(int, int, Ref, Ref, Ref); void emiti(Ins); int bcnt(Bits *); diff --git a/lisc/parse.c b/lisc/parse.c index 0164b15..6e7cff1 100644 --- a/lisc/parse.c +++ b/lisc/parse.c @@ -412,7 +412,7 @@ findblk(char *name) if (i == NBlk) err("too many blocks"); if (!bmap[i]) { - bmap[i] = blocka(); + bmap[i] = balloc(); nblk++; strcpy(bmap[i]->name, name); } diff --git a/lisc/rega.c b/lisc/rega.c index ad6f9d3..ce96798 100644 --- a/lisc/rega.c +++ b/lisc/rega.c @@ -429,7 +429,7 @@ rega(Fn *fn) n = curi-insb; if (!n) continue; - b1 = blocka(); + b1 = balloc(); b1->loop = (b->loop+s->loop) / 2; b1->link = blist; blist = b1; diff --git a/lisc/util.c b/lisc/util.c index 1bc3aa3..31f2982 100644 --- a/lisc/util.c +++ b/lisc/util.c @@ -25,7 +25,7 @@ alloc(size_t n) } Blk * -blocka() +balloc() { static Blk z; Blk *b; |