added automake.mk files in src/language
[pspp] / src / command.c
index 0d557b2092e2c096e7ebfe21b68d6d86d33b8956..bdefcb22f266f759a711675774cac34851d11520 100644 (file)
@@ -618,7 +618,7 @@ error:
 int
 cmd_exit (void)
 {
-  if (getl_reading_script)
+  if (getl_reading_script())
     {
       msg (SE, _("This command is not accepted in a syntax file.  "
           "Instead, use FINISH to terminate a syntax file."));
@@ -739,7 +739,7 @@ shell (void)
        
        execl (shell_fn, shell_process, NULL);
 
-       err_hcf (1);
+       _exit (1);
       }
 
     case -1:
@@ -854,7 +854,7 @@ cmd_new_file (void)
 int
 cmd_clear_transformations (void)
 {
-  if (getl_reading_script)
+  if (getl_reading_script ())
     {
       msg (SW, _("This command is not valid in a syntax file."));
       return CMD_FAILURE;