diff --git a/c/main.c b/c/main.c index f002d9b..dc5e5a4 100644 --- a/c/main.c +++ b/c/main.c @@ -32,6 +32,7 @@ char ** process_args(char **argv, + char* prog_name, long *heap_size, long *stack_size, char **object_file, @@ -65,7 +66,7 @@ main(argc, argv) char *me = *argv; /* Save program name. */ prog_name = *argv++; - argv=process_args(argv, + argv=process_args(argv, prog_name, &heap_size, &stack_size, &object_file, &image_name); for(argc=0, argp=argv; *argp; argc++, argp++); /* Recompute argc. */ diff --git a/scsh/process_args.c b/scsh/process_args.c index 75878fe..daec9db 100644 --- a/scsh/process_args.c +++ b/scsh/process_args.c @@ -1,10 +1,10 @@ #include #include -extern char *prog_name; - #define streq(a,b) (strcmp((a),(b))==0) +static char* prog_name; + static void usage(void) { fprintf(stderr, "Usage: %s [meta-arg] [vm-option+] [end-option scheme-args]\n" "meta-arg: \\