gui: For text data import, use the same parser for preview as for import.
[pspp] / src / ui / gui / psppire-delimited-text.h
index b5c919f4fbc16872e91cb05b007e5be6fc2700be..c24ce10c9375d2f1c5d07efeff68eb996928a49e 100644 (file)
@@ -18,6 +18,7 @@
 #define __PSPPIRE_DELIMITED_TEXT_H__
 
 #include "libpspp/str.h"
+#include "libpspp/string-array.h"
 
 #include <glib-object.h>
 #include <gtk/gtk.h>
@@ -59,7 +60,7 @@ struct _PsppireDelimitedText
   gint first_line;
 
   GSList *delimiters;
-  gint max_delimiters;
+  gint max_fields;
 
   gunichar quote;
 
@@ -68,9 +69,9 @@ struct _PsppireDelimitedText
   gint stamp;
 
   /* caching */
-  const char *cache_starts[512];
-  struct substring const_cache;
   int cache_row;
+  struct string_array cache;
+  struct data_parser *parser;
 };
 
 struct _PsppireDelimitedTextClass