Got the text file import working again
[pspp] / src / ui / gui / page-first-line.c
index 4109f043eec0a699463b194ab9ea5197d6801ddd..3296b50a4381334735757e8ee3c7c1a57e77ee7f 100644 (file)
@@ -50,7 +50,6 @@
 #include "ui/gui/psppire-var-sheet.h"
 #include "ui/gui/psppire-var-store.h"
 #include "ui/gui/psppire-scanf.h"
-#include "ui/syntax-gen.h"
 
 #include "gl/error.h"
 #include "gl/intprops.h"
@@ -234,3 +233,12 @@ get_first_line (struct import_assistant *ia)
   gtk_widget_set_sensitive (ia->first_line->variable_names_cb,
                             ia->skip_lines > 0);
 }
+
+
+
+void
+first_line_append_syntax (struct import_assistant *ia, struct string *s)
+{
+  if (ia->skip_lines > 0)
+    ds_put_format (s, "  /FIRSTCASE=%d\n", ia->skip_lines + 1);
+}