diff options
author | Ori Bernstein <ori@eigenstate.org> | 2017-02-17 23:14:20 -0800 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2017-02-17 23:32:19 -0800 |
commit | 14e71694588d2f1b28bbdb65ad3b54b411d72b47 (patch) | |
tree | c0f5fef2bc6992073c059f25dfee6f907ec1cf5b /muse | |
parent | 61a91a2cc9be621ee517b2cb4114922bd5da351f (diff) | |
download | mc-14e71694588d2f1b28bbdb65ad3b54b411d72b47.tar.gz |
Remove 'show' functionality from muse.
It was out of place *and* broken.
Diffstat (limited to 'muse')
-rw-r--r-- | muse/muse.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/muse/muse.c b/muse/muse.c index da55e99..a0f1c55 100644 --- a/muse/muse.c +++ b/muse/muse.c @@ -57,6 +57,7 @@ int main(int argc, char **argv) size_t i; FILE *f; + localincpath = "."; optinit(&ctx, "sd:hmo:p:I:l:", argv, argc); while (!optdone(&ctx)) { switch (optnext(&ctx)) { @@ -80,9 +81,6 @@ int main(int argc, char **argv) case 'l': lappend(&extralibs, &nextralibs, ctx.optarg); break; - case 's': - show = 1; - break; default: usage(argv[0]); exit(0); @@ -91,13 +89,14 @@ int main(int argc, char **argv) } lappend(&incpaths, &nincpaths, Instroot "/lib/myr"); - if (!outfile) { + if (!outfile && !show) { fprintf(stderr, "output file needed when merging usefiles.\n"); exit(1); } - localincpath = "."; - if (!pkgname) - pkgname = outfile; + if (!pkgname) { + fprintf(stderr, "package needed when merging usefiles.\n"); + exit(1); + } /* read and parse the file */ file = mkfile("internal"); @@ -112,10 +111,7 @@ int main(int argc, char **argv) /* generate the usefile */ f = fopen(outfile, "w"); - if (debugopt['s'] || show) - dumpstab(file->file.globls, stdout); - else - writeuse(f, file); + writeuse(f, file); fclose(f); return 0; } |