#include "data/spreadsheet-reader.h"
#include "data/casereader.h"
#include "data/case.h"
+#include "data/settings.h"
#include "libpspp/message.h"
+#include "libpspp/i18n.h"
+
#include "gl/xalloc.h"
opts.sheet_index = -1;
opts.cell_range = spreadsheet_get_sheet_range (stuff->sp, x);
- opts.sheet_name = spreadsheet_get_sheet_name (stuff->sp, x);
+ opts.sheet_name = CONST_CAST (char *,
+ spreadsheet_get_sheet_name (stuff->sp, x));
opts.read_names = TRUE;
opts.asw = -1;
else
{
char *ss = xzalloc (width + 1);
- strncpy (ss, value_str (val, width), width);
+ memcpy (ss, value_str (val, width), width);
printf ("%s ", ss);
free (ss);
GtkWidget *button;
struct xxx stuff;
+ i18n_init ();
+ settings_init ();
+
gtk_init (&argc, &argv);
if ( argc < 2)