X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fdictionary%2Frename-variables.c;h=b2bd3d76899cf0dda8ed8f200ced8be14da4a170;hb=84e4d346b557748b62d43158c1b50f655e357f9f;hp=1c20c6a643519f12a9e684de1185a07c94969f9c;hpb=dcf9b154cbcaa35c3d8459a201b77eec8bcb30bd;p=pspp diff --git a/src/language/dictionary/rename-variables.c b/src/language/dictionary/rename-variables.c index 1c20c6a643..b2bd3d7689 100644 --- a/src/language/dictionary/rename-variables.c +++ b/src/language/dictionary/rename-variables.c @@ -18,16 +18,19 @@ 02110-1301, USA. */ #include + #include -#include "message.h" -#include "alloc.h" -#include "command.h" -#include "dictionary.h" -#include "message.h" -#include "hash.h" -#include "lexer.h" -#include "str.h" -#include "variable.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "gettext.h" #define _(msgid) gettext (msgid) @@ -44,12 +47,9 @@ cmd_rename_variables (void) int status = CMD_CASCADING_FAILURE; - if (temporary != 0) - { - msg (SE, _("RENAME VARS may not be used after TEMPORARY. " - "Temporary transformations will be made permanent.")); - cancel_temporary (); - } + if (proc_make_temporary_transformations_permanent ()) + msg (SE, _("RENAME VARS may not be used after TEMPORARY. " + "Temporary transformations will be made permanent.")); do {