summaryrefslogtreecommitdiff
path: root/6/main.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-09-26 23:47:46 -0700
committerOri Bernstein <ori@eigenstate.org>2015-09-26 23:47:46 -0700
commitc74b0bc06994e9a4921131696a5714cf83642acc (patch)
tree415b1001ccfc44b55c7fa4d8a2d130ee38907ee2 /6/main.c
parentbb4ff654b3f0ce2e067e707f83310af5ebc50679 (diff)
downloadmc-c74b0bc06994e9a4921131696a5714cf83642acc.tar.gz
Separate out the concepts of code and func ptrs.
In order to pass around functions with environments for closures, we need to refer to the type of a function pointer, as well as the type of code. This is ugly. When I rewrite the backend I should change it.
Diffstat (limited to '6/main.c')
-rw-r--r--6/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/6/main.c b/6/main.c
index ff829c2..1aa1c95 100644
--- a/6/main.c
+++ b/6/main.c
@@ -237,9 +237,9 @@ int main(int argc, char **argv)
} else {
gentemp(buf, sizeof buf, ctx.args[i], ".s");
}
+ genuse(ctx.args[i]);
gen(file, buf);
assemble(buf, ctx.args[i]);
- genuse(ctx.args[i]);
}
return 0;