diff options
author | Ori Bernstein <ori@eigenstate.org> | 2012-06-16 14:06:54 -0400 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2012-06-16 14:06:54 -0400 |
commit | 6b0e53468c9078efde8c5daaede91ea70bbd6e1d (patch) | |
tree | 1507b79824b1d0684fe08b3f6e3a998d6fe2f501 /util | |
parent | a6c7b6c46c1c4e9d8b4f246cdbc82ac5916cfd71 (diff) | |
download | mc-6b0e53468c9078efde8c5daaede91ea70bbd6e1d.tar.gz |
Work towards getting usefiles going.
Diffstat (limited to 'util')
-rw-r--r-- | util/Makefile | 2 | ||||
-rw-r--r-- | util/muse.c (renamed from util/main.c) | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/util/Makefile b/util/Makefile index d649ecd..0b60228 100644 --- a/util/Makefile +++ b/util/Makefile @@ -1,5 +1,5 @@ BIN=muse -OBJ=main.o +OBJ=muse.o DEPS=../parse/libparse.a diff --git a/util/main.c b/util/muse.c index 1255b76..325af40 100644 --- a/util/main.c +++ b/util/muse.c @@ -11,14 +11,18 @@ #include "parse.h" +/* FIXME: move into one place...? */ Node *file; -static char *outfile; +char *outfile; int debug; +char **incpaths; +size_t nincpaths; static void usage(char *prog) { printf("%s [-h] [-o outfile] inputs\n", prog); printf("\t-h\tPrint this help\n"); + printf("\t-I path\tAdd 'path' to use search path\n"); printf("\t-d\tPrint debug dumps\n"); printf("\t-o\tOutput to outfile\n"); } |