summaryrefslogtreecommitdiff
path: root/parse/node.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-07-09 23:55:41 -0700
committerOri Bernstein <ori@eigenstate.org>2015-07-09 23:55:41 -0700
commit12df9f45f4f383a6bdf8939b44a3b499edee853e (patch)
tree8d288c88dffe8cdf01d266a428bd8870d3e8c581 /parse/node.c
parent6d4651504d015f853c5ce79e77c73b5b8d48793f (diff)
downloadmc-12df9f45f4f383a6bdf8939b44a3b499edee853e.tar.gz
Refactor namespaces.
We no longer store subnamespaces in the stab node; now they're a part of the file.
Diffstat (limited to 'parse/node.c')
-rw-r--r--parse/node.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse/node.c b/parse/node.c
index ba3cd3c..0be1f9f 100644
--- a/parse/node.c
+++ b/parse/node.c
@@ -62,6 +62,7 @@ Node *mkfile(char *name)
Node *n;
n = mknode(Zloc, Nfile);
+ n->file.ns = mkht(strhash, streq);
lappend(&n->file.files, &n->file.nfiles, strdup(name));
return n;
}