projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gui: For text data import, use the same parser for preview as for import.
[pspp]
/
src
/
ui
/
gui
/
psppire-delimited-text.h
diff --git
a/src/ui/gui/psppire-delimited-text.h
b/src/ui/gui/psppire-delimited-text.h
index b5c919f4fbc16872e91cb05b007e5be6fc2700be..c24ce10c9375d2f1c5d07efeff68eb996928a49e 100644
(file)
--- a/
src/ui/gui/psppire-delimited-text.h
+++ b/
src/ui/gui/psppire-delimited-text.h
@@
-18,6
+18,7
@@
#define __PSPPIRE_DELIMITED_TEXT_H__
#include "libpspp/str.h"
#define __PSPPIRE_DELIMITED_TEXT_H__
#include "libpspp/str.h"
+#include "libpspp/string-array.h"
#include <glib-object.h>
#include <gtk/gtk.h>
#include <glib-object.h>
#include <gtk/gtk.h>
@@
-59,7
+60,7
@@
struct _PsppireDelimitedText
gint first_line;
GSList *delimiters;
gint first_line;
GSList *delimiters;
- gint max_
delimiter
s;
+ gint max_
field
s;
gunichar quote;
gunichar quote;
@@
-68,9
+69,9
@@
struct _PsppireDelimitedText
gint stamp;
/* caching */
gint stamp;
/* caching */
- const char *cache_starts[512];
- struct substring const_cache;
int cache_row;
int cache_row;
+ struct string_array cache;
+ struct data_parser *parser;
};
struct _PsppireDelimitedTextClass
};
struct _PsppireDelimitedTextClass