diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-08-01 15:46:09 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-09-15 23:01:29 -0400 |
commit | 0d5fb419e3eda0832ee549d7958e19bb9afaa15a (patch) | |
tree | e1e9d5db0afda044050ad939f0ad8d1eea3c4232 /lisc/emit.c | |
parent | a2a2231027d2e60777b92a52701ac33c56dd362f (diff) | |
download | roux-0d5fb419e3eda0832ee549d7958e19bb9afaa15a.tar.gz |
avoid keyword clash by using cons for constants
Diffstat (limited to 'lisc/emit.c')
-rw-r--r-- | lisc/emit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisc/emit.c b/lisc/emit.c index 6a485a7..54f552c 100644 --- a/lisc/emit.c +++ b/lisc/emit.c @@ -4,7 +4,7 @@ static void eref(Ref r, Fn *fn, FILE *f) { - Const *c; + Cons *c; switch (rtype(r)) { case RSym: @@ -14,8 +14,8 @@ eref(Ref r, Fn *fn, FILE *f) case RSlot: fprintf(f, "-%d(%%rbp)", 8 * r.val); break; - case RConst: - c = &fn->cst[r.val]; + case RCons: + c = &fn->cons[r.val]; switch (c->type) { case CAddr: fprintf(f, "$%s", c->label); |