X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=src%2Fcmdline.c;h=c280728a05626bf1646c055eab31cc9febe52822;hb=304c185799902df1dd96a8ff2d13d279005a82e5;hp=630aab88526727bd468bd9fc4a9a24faf89c1a50;hpb=8bc8a011fa9df5b9f5aa00144c8d3478fd7b93fa;p=pspp-builds.git diff --git a/src/cmdline.c b/src/cmdline.c index 630aab88..c280728a 100644 --- a/src/cmdline.c +++ b/src/cmdline.c @@ -36,19 +36,19 @@ #include "var.h" #include "version.h" #include "copyleft.h" +#include "glob.h" void welcome (void); static void usage (void); char *subst_vars (char *); -static int testing_mode=0; - /* Parses the command line specified by ARGC and ARGV as received by main(). */ void parse_command_line (int argc, char **argv) { + static int testing_mode = 0; static struct option long_options[] = { {"algorithm", required_argument, NULL, 'a'}, @@ -78,7 +78,6 @@ parse_command_line (int argc, char **argv) int c, i; int cleared_device_defaults = 0; - int no_statrc = 0; for (;;) @@ -201,6 +200,7 @@ parse_command_line (int argc, char **argv) { /* FIXME: Later this option should do some other things, too. */ force_long_view(); + test_mode = 1; }