summaryrefslogtreecommitdiff
path: root/myrbuild
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-09-27 19:20:29 -0400
committerOri Bernstein <ori@eigenstate.org>2012-09-27 19:20:29 -0400
commitb43c9855d957cb62e91425cf645a379e44bb883d (patch)
treea1c94ecb7e1677263ac9d987e01665dad64044d2 /myrbuild
parentbccf793446bc1afadce825b98000c3664544d114 (diff)
downloadmc-b43c9855d957cb62e91425cf645a379e44bb883d.tar.gz
Make CLI args work on OSX.
Diffstat (limited to 'myrbuild')
-rw-r--r--myrbuild/myrbuild.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/myrbuild/myrbuild.c b/myrbuild/myrbuild.c
index b727465..432e0f2 100644
--- a/myrbuild/myrbuild.c
+++ b/myrbuild/myrbuild.c
@@ -15,6 +15,7 @@
/* make libparse happy */
Node *file;
+char *filename;
char *libname;
char *binname;
@@ -86,21 +87,7 @@ int main(int argc, char **argv)
if (libname && binname)
die("Can't specify both library and binary names");
- switch (regcomp(&usepat, "^[[:space:]]*use[[:space:]]+([^[:space:]]+)", REG_EXTENDED)) {
- case REG_BADBR: die("case REG_BADBR:"); break;
- case REG_BADPAT: die("case REG_BADPAT:"); break;
- case REG_BADRPT: die("case REG_BADRPT:"); break;
- case REG_EBRACE: die("case REG_EBRACE:"); break;
- case REG_EBRACK: die("case REG_EBRACK:"); break;
- case REG_ECOLLATE: die("case REG_ECOLLATE:"); break;
- case REG_EEND: die("case REG_EEND:"); break;
- case REG_EESCAPE: die("case REG_EESCAPE:"); break;
- case REG_EPAREN: die("case REG_EPAREN:"); break;
- case REG_ERANGE: die("case REG_ERANGE:"); break;
- case REG_ESIZE: die("case REG_ESIZE:"); break;
- case REG_ESPACE: die("case REG_ESPACE:"); break;
- case REG_ESUBREG: die("case REG_ESUBREG:"); break;
- }
+ regcomp(&usepat, "^[[:space:]]*use[[:space:]]+([^[:space:]]+)", REG_EXTENDED);
for (i = optind; i < argc; i++)
getdeps(argv[i]);