summaryrefslogtreecommitdiff
path: root/6
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2019-04-12 22:48:43 -0700
committerOri Bernstein <ori@eigenstate.org>2019-04-12 22:48:43 -0700
commit537313ee9a2179cc6e869c6e8c70da4af1f07f28 (patch)
tree6cc091ad8c73b5e71755c6f4977de8d0e1d98fd1 /6
parent6940a02fd47d73ba5dd0ad3a82b1945b639a23dc (diff)
downloadmc-537313ee9a2179cc6e869c6e8c70da4af1f07f28.tar.gz
Rename traits correctly.
Diffstat (limited to '6')
-rw-r--r--6/main.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/6/main.c b/6/main.c
index 618eb5f..5af7b1e 100644
--- a/6/main.c
+++ b/6/main.c
@@ -209,7 +209,6 @@ int
main(int argc, char **argv)
{
char buf[1024];
- Stab *globls;
Optctx ctx;
size_t i;
@@ -282,12 +281,8 @@ main(int argc, char **argv)
else
localincpath = dirname(ctx.args[i]);
- globls = mkstab(0);
- tyinit(globls);
+ initfile(&file, ctx.args[0]);
tokinit(ctx.args[i]);
- file.ns = mkht(strhash, streq);
- file.globls = globls;
- lappend(&file.files, &file.nfiles, ctx.args[i]);
yyparse();
/* before we do anything to the parse */