Fixed bug reporting the significance of paired value t-test.
[pspp-builds.git] / src / ui / terminal / command-line.c
index 976af0c2191a7377e6e00d90209c8d9815d86bda..95b22cebf8bea93995e87833ed3fec52bf64f044 100644 (file)
@@ -23,7 +23,6 @@
 #include <errno.h>
 #include <getopt.h>
 #include <stdlib.h>
-#include <libpspp/alloc.h>
 #include <libpspp/assertion.h>
 #include <libpspp/copyleft.h>
 #include <libpspp/message.h>
@@ -38,6 +37,8 @@
 #include <libpspp/verbose-msg.h>
 #include "read-line.h"
 
+#include "xalloc.h"
+
 #include "gettext.h"
 #define _(msgid) gettext (msgid)
 #define N_(msgid) msgid
@@ -95,9 +96,9 @@ parse_command_line (int argc, char **argv, struct source_stream *ss)
          /* Compatibility options */
         case 'a':
          if ( 0 == strcmp(optarg,"compatible") )
-             set_algorithm(COMPATIBLE);
+             settings_set_algorithm(COMPATIBLE);
          else if ( 0 == strcmp(optarg,"enhanced"))
-             set_algorithm(ENHANCED);
+             settings_set_algorithm(ENHANCED);
          else
            {
              usage ();
@@ -107,9 +108,9 @@ parse_command_line (int argc, char **argv, struct source_stream *ss)
 
        case 'x':
          if ( 0 == strcmp(optarg,"compatible") )
-           set_syntax(COMPATIBLE);
+           settings_set_syntax (COMPATIBLE);
          else if ( 0 == strcmp(optarg,"enhanced"))
-           set_syntax(ENHANCED);
+           settings_set_syntax (ENHANCED);
          else
            {
              usage ();
@@ -161,7 +162,7 @@ parse_command_line (int argc, char **argv, struct source_stream *ss)
          process_statrc = false;
          break;
        case 's':
-         set_safer_mode ();
+         settings_set_safer_mode ();
          break;
        case 'v':
          verbose_increment_level ();
@@ -171,7 +172,7 @@ parse_command_line (int argc, char **argv, struct source_stream *ss)
          puts (legal);
          return false;
         case 'T':
-          set_testing_mode (true);
+          settings_set_testing_mode (true);
           break;
        case '?':
          usage ();