summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-06-17 01:28:23 -0400
committerOri Bernstein <ori@eigenstate.org>2012-06-17 01:28:23 -0400
commit72544d0e40f3aa0dabec5a7833b1dad17b435c74 (patch)
treee088f5ffb9c13128ed89cf8ff01414eca48bf724 /util
parent87cb410f45da23b97e79f3949b4d6ebf779cf986 (diff)
downloadmc-72544d0e40f3aa0dabec5a7833b1dad17b435c74.tar.gz
Make loading usefiles work completely.
Diffstat (limited to 'util')
-rw-r--r--util/muse.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/util/muse.c b/util/muse.c
index e3331a5..8820521 100644
--- a/util/muse.c
+++ b/util/muse.c
@@ -32,6 +32,7 @@ int main(int argc, char **argv)
{
int opt;
int i;
+ Stab *s;
Stab *globls;
Node *rdback;
FILE *tmp;
@@ -85,8 +86,9 @@ int main(int argc, char **argv)
f = fopen(outfile, "w");
writeuse(file, f);
fclose(f);
- readuse(mkuse(-1, outfile, 1), file->file.globls);
-
+ s = mkstab();
+ readuse(mkuse(-1, outfile, 1), s);
+ dumpstab(s, stdout);
}
return 0;