summaryrefslogtreecommitdiff
path: root/parse/node.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-05-19 13:24:27 -0400
committerOri Bernstein <ori@eigenstate.org>2014-05-19 13:24:27 -0400
commit2b3a550af408c998d0b6d51bb89a9edbd02ec51e (patch)
treefc513d64dce07728761c6d08ecffaacba3d67632 /parse/node.c
parente89a6b09545f09a0f9f6491d0f4614d19d8847cd (diff)
downloadmc-2b3a550af408c998d0b6d51bb89a9edbd02ec51e.tar.gz
Try to iterate over types.
Currently attempts to double specialize, but it's a step forward.
Diffstat (limited to 'parse/node.c')
-rw-r--r--parse/node.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/parse/node.c b/parse/node.c
index 0f694bc..4fdffa0 100644
--- a/parse/node.c
+++ b/parse/node.c
@@ -15,8 +15,8 @@
size_t maxnid;
Node **decls;
size_t ndecls;
-Node **impls;
-size_t nimpls;
+Node **exportimpls;
+size_t nexportimpls;
Node *mknode(int line, Ntype nt)
{
@@ -194,7 +194,6 @@ 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;
}