summaryrefslogtreecommitdiff
path: root/parse/stab.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-01-02 23:19:37 -0800
committerOri Bernstein <ori@eigenstate.org>2016-01-02 23:19:37 -0800
commite74148eb539e0809131fe837c2d123b0c295f9ce (patch)
treeebe3ad4bb86e5dc762dfe31d8f1c4dc13a0fabbd /parse/stab.c
parentf9d4d377fbc039e674b51986b8cbb1486e8eada5 (diff)
downloadmc-e74148eb539e0809131fe837c2d123b0c295f9ce.tar.gz
Correctly check for decls without initializers.
This turns them into errors. Also fixes a couple that slipped into the code.
Diffstat (limited to 'parse/stab.c')
-rw-r--r--parse/stab.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/parse/stab.c b/parse/stab.c
index 1493bb2..fb0dc6c 100644
--- a/parse/stab.c
+++ b/parse/stab.c
@@ -233,7 +233,9 @@ Trait *gettrait(Stab *st, Node *n)
return NULL;
}
-Stab *getns(Node *file, char *name) { return htget(file->file.ns, name); }
+Stab *getns(Node *file, char *name) {
+ return htget(file->file.ns, name);
+}
static int mergedecl(Node *old, Node *new)
{