X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Frename-vars.c;h=0219f28345a0c99d017add9407c8764281686ed0;hb=4255c7e5a693e09a97dc7a3cca0634bb2adaba2d;hp=212d7bdfb78c8a3fe3d9dd13a6ccbe320edb3b8d;hpb=3a7fba81ceae5b049d0f7d671e9e3c3c43bbf703;p=pspp diff --git a/src/rename-vars.c b/src/rename-vars.c index 212d7bdfb7..0219f28345 100644 --- a/src/rename-vars.c +++ b/src/rename-vars.c @@ -19,9 +19,10 @@ #include #include -#include +#include "error.h" #include "alloc.h" #include "command.h" +#include "dictionary.h" #include "error.h" #include "hash.h" #include "lexer.h" @@ -42,8 +43,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 {