projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
psppire-output-window: Factor out output view as psppire-output-view.
[pspp]
/
src
/
language
/
dictionary
/
variable-display.c
diff --git
a/src/language/dictionary/variable-display.c
b/src/language/dictionary/variable-display.c
index 9e50551c92b9a17359af658d947014762fb78bc2..67c2e13d637ac31cd3f1bc4682381cec531d68ea 100644
(file)
--- a/
src/language/dictionary/variable-display.c
+++ b/
src/language/dictionary/variable-display.c
@@
-198,7
+198,7
@@
cmd_variable_role (struct lexer *lexer, struct dataset *ds)
if ( lex_match_id (lexer, "INPUT"))
role = ROLE_INPUT;
else if ( lex_match_id (lexer, "TARGET"))
if ( lex_match_id (lexer, "INPUT"))
role = ROLE_INPUT;
else if ( lex_match_id (lexer, "TARGET"))
- role = ROLE_
OUTPU
T;
+ role = ROLE_
TARGE
T;
else if ( lex_match_id (lexer, "BOTH"))
role = ROLE_BOTH;
else if ( lex_match_id (lexer, "NONE"))
else if ( lex_match_id (lexer, "BOTH"))
role = ROLE_BOTH;
else if ( lex_match_id (lexer, "NONE"))
@@
-208,7
+208,10
@@
cmd_variable_role (struct lexer *lexer, struct dataset *ds)
else if ( lex_match_id (lexer, "SPLIT"))
role = ROLE_SPLIT;
else
else if ( lex_match_id (lexer, "SPLIT"))
role = ROLE_SPLIT;
else
- return CMD_FAILURE;
+ {
+ lex_error (lexer, NULL);
+ return CMD_FAILURE;
+ }
if (!parse_variables (lexer, dataset_dict (ds), &v, &nv, PV_NONE))
return CMD_FAILURE;
if (!parse_variables (lexer, dataset_dict (ds), &v, &nv, PV_NONE))
return CMD_FAILURE;