projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Documented the EXAMINE subcommands. Fixed up the examine test. Fixed a problem...
[pspp]
/
src
/
modify-vars.c
diff --git
a/src/modify-vars.c
b/src/modify-vars.c
index c68941a39dce48e290faa034cdf0cf02656785b5..5cddfe15a349e3640e0a17e26d5a32de84871148 100644
(file)
--- a/
src/modify-vars.c
+++ b/
src/modify-vars.c
@@
-19,11
+19,12
@@
#include <config.h>
#include <stdlib.h>
#include <config.h>
#include <stdlib.h>
-#include
<assert.h>
+#include
"error.h"
#include "algorithm.h"
#include "alloc.h"
#include "bitvector.h"
#include "command.h"
#include "algorithm.h"
#include "alloc.h"
#include "bitvector.h"
#include "command.h"
+#include "dictionary.h"
#include "error.h"
#include "hash.h"
#include "lexer.h"
#include "error.h"
#include "hash.h"
#include "lexer.h"
@@
-83,8
+84,12
@@
cmd_modify_vars (void)
size_t i;
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;
vm.reorder_vars = NULL;
vm.reorder_cnt = 0;
@@
-309,7
+314,7
@@
cmd_modify_vars (void)
if (already_encountered & (1 | 4))
{
/* Read the data. */
if (already_encountered & (1 | 4))
{
/* Read the data. */
- procedure (NULL, NULL
, NULL, NULL
);
+ procedure (NULL, NULL);
}
if (!rearrange_dict (default_dict, &vm))
}
if (!rearrange_dict (default_dict, &vm))