From 0d5fb419e3eda0832ee549d7958e19bb9afaa15a Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Sat, 1 Aug 2015 15:46:09 -0400 Subject: avoid keyword clash by using cons for constants --- lisc/emit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lisc/emit.c') 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); -- cgit 1.4.1