Clean up file handle code in preparation to add temporary file
[pspp] / src / main.c
index 0441d74a3c0cbc70fff6f8e7aa2fad7d08d9bd3f..d52741d1bd8605c35c73daf67f09fa541d933d3c 100644 (file)
@@ -26,7 +26,7 @@
 #include "command.h"
 #include "dictionary.h"
 #include "error.h"
-#include "file-handle.h"
+#include "file-handle-def.h"
 #include "filename.h"
 #include "getl.h"
 #include "glob.h"
@@ -217,7 +217,7 @@ handle_error (int code)
       assert (0);
     }
 
-  if (getl_reading_script)
+  if (getl_reading_script())
     {
       err_break ();
       while (token != T_STOP && token != '.')