#include "spreadsheet-reader.h"
-#if !GNM_SUPPORT
+#if !GNM_READ_SUPPORT
struct casereader *
gnumeric_open_reader (const struct spreadsheet_read_options *opts, struct dictionary **dict)
gnumeric_make_reader (struct spreadsheet *spreadsheet,
const struct spreadsheet_read_options *opts)
{
+ int type = 0;
int x = 0;
struct gnumeric_reader *r = NULL;
unsigned long int vstart = 0;
n_cases --;
}
- int type = 0;
+
/* Read in the first row of cells,
including the headers if read_names was set */
while (
xmlChar *attr =
xmlTextReaderGetAttribute (r->rsd.xtr, _xml ("ValueType"));
- if ( NULL == attr || 60 != _xmlchar_to_int (attr))
+ if ( NULL == attr || VALUE_STRING != _xmlchar_to_int (attr))
var_spec [idx].width = 0;
free (attr);
}
-#endif /* GNM_SUPPORT */
+#endif /* GNM_READ_SUPPORT */