ref: 14e71694588d2f1b28bbdb65ad3b54b411d72b47
parent: 61a91a2cc9be621ee517b2cb4114922bd5da351f
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Feb 17 18:14:20 EST 2017
Remove 'show' functionality from muse. It was out of place *and* broken.
--- a/muse/muse.c
+++ b/muse/muse.c
@@ -57,6 +57,7 @@
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 @@
case 'l':
lappend(&extralibs, &nextralibs, ctx.optarg);
break;
- case 's':
- show = 1;
- break;
default:
usage(argv[0]);
exit(0);
@@ -91,13 +89,14 @@
}
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 @@
/* 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;
}