summaryrefslogtreecommitdiff
path: root/parse/node.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-05-15 13:01:33 -0400
committerOri Bernstein <ori@eigenstate.org>2014-05-15 13:01:33 -0400
commite89a6b09545f09a0f9f6491d0f4614d19d8847cd (patch)
tree28dcc1d26ab4fceb1c71b6ad2f35712dd28a4904 /parse/node.c
parent7b45d388ae914b853e330a1ce35881e4f7910fdf (diff)
downloadmc-e89a6b09545f09a0f9f6491d0f4614d19d8847cd.tar.gz
Actually write out impls to usefiles.
Diffstat (limited to 'parse/node.c')
-rw-r--r--parse/node.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/parse/node.c b/parse/node.c
index 4fdffa0..0f694bc 100644
--- a/parse/node.c
+++ b/parse/node.c
@@ -15,8 +15,8 @@
size_t maxnid;
Node **decls;
size_t ndecls;
-Node **exportimpls;
-size_t nexportimpls;
+Node **impls;
+size_t nimpls;
Node *mknode(int line, Ntype nt)
{
@@ -194,6 +194,7 @@ Node *mkimplstmt(int line, Node *name, Type *t, Node **decls, size_t ndecls)
n->impl.type = t;
n->impl.decls = decls;
n->impl.ndecls = ndecls;
+ lappend(&impls, &nimpls, n);
return n;
}