Added (some of the) calculations for the examine command.
[pspp] / src / rename-vars.c
index 212d7bdfb78c8a3fe3d9dd13a6ccbe320edb3b8d..70243468b743888633f82e14d974c71e53d8820b 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <config.h>
 #include <stdlib.h>
-#include <assert.h>
+#include "error.h"
 #include "alloc.h"
 #include "command.h"
 #include "error.h"
@@ -42,8 +42,12 @@ cmd_rename_variables (void)
 
   int i;
 
-  lex_match_id ("RENAME");
-  lex_match_id ("VARIABLES");
+  if (temporary != 0)
+    {
+      msg (SE, _("RENAME VARS may not be used after TEMPORARY.  "
+                 "Temporary transformations will be made permanent."));
+      cancel_temporary (); 
+    }
 
   do
     {