X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmodify-vars.c;h=aab05c6e0e029083241123c0cfa3e19e5c82cc89;hb=9b4b94c6d3b5fd98bf396e23d015380b87d2d296;hp=c68941a39dce48e290faa034cdf0cf02656785b5;hpb=5906e30c29662d12594199e1652ba3a7e5670944;p=pspp diff --git a/src/modify-vars.c b/src/modify-vars.c index c68941a39d..aab05c6e0e 100644 --- a/src/modify-vars.c +++ b/src/modify-vars.c @@ -19,7 +19,7 @@ #include #include -#include +#include "error.h" #include "algorithm.h" #include "alloc.h" #include "bitvector.h" @@ -83,8 +83,12 @@ cmd_modify_vars (void) size_t i; - lex_match_id ("MODIFY"); - lex_match_id ("VARS"); + if (temporary != 0) + { + msg (SE, _("MODIFY VARS may not be used after TEMPORARY. " + "Temporary transformations will be made permanent.")); + cancel_temporary (); + } vm.reorder_vars = NULL; vm.reorder_cnt = 0; @@ -309,7 +313,7 @@ cmd_modify_vars (void) if (already_encountered & (1 | 4)) { /* Read the data. */ - procedure (NULL, NULL, NULL, NULL); + procedure (NULL, NULL); } if (!rearrange_dict (default_dict, &vm))