Added abstract factory to create casefiles. Updated procedures to use
[pspp-builds.git] / src / ui / terminal / main.c
index 7e1f5c99f98fc80bf367c7c20b8f668aafbfb86c..9712fb8be5a80945bbaa2038cab25b9517471a75 100644 (file)
@@ -27,7 +27,7 @@
 #include "progname.h"
 #include "read-line.h"
 
-
+#include <data/fastfile-factory.h>
 #include <data/dictionary.h>
 #include <data/file-handle-def.h>
 #include <libpspp/getl.h>
@@ -82,6 +82,7 @@ static struct source_stream *the_source_stream ;
 int
 main (int argc, char **argv)
 {
+  struct casefile_factory *factory;
   signal (SIGABRT, bug_handler);
   signal (SIGSEGV, bug_handler);
   signal (SIGFPE, bug_handler);
@@ -104,7 +105,10 @@ main (int argc, char **argv)
   readln_initialize ();
   settings_init ();
   random_init ();
-  the_dataset = create_dataset ();
+
+  factory = fastfile_factory_create ();
+
+  the_dataset = create_dataset (factory);
 
   if (parse_command_line (argc, argv, the_source_stream))
     {