Prevent var sheet from traversing to an invalid cell
[pspp-builds.git] / src / language / syntax-string-source.c
index bcdcbd3767c5b671df04bf1ac2d46477f3d880e2..94a56f97aacb55ae642b3eac0290cd8531f2b2c3 100644 (file)
@@ -18,7 +18,6 @@
 #include <config.h>
 
 #include <libpspp/getl.h>
-#include <libpspp/alloc.h>
 #include <libpspp/compiler.h>
 #include <libpspp/str.h>
 
@@ -26,6 +25,8 @@
 
 #include "syntax-string-source.h"
 
+#include "xalloc.h"
+
 struct syntax_string_source
   {
     struct getl_interface parent;
@@ -70,8 +71,7 @@ do_close (struct getl_interface *i )
 
 static bool
 read_single_line (struct getl_interface *i,
-                 struct string *line,
-                 enum getl_syntax *syntax_rules UNUSED)
+                 struct string *line)
 {
   struct syntax_string_source *sss = (struct syntax_string_source *) i;