projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed nsprintf(), nvsprintf().
[pspp-builds.git]
/
src
/
language
/
xforms
/
select-if.c
diff --git
a/src/language/xforms/select-if.c
b/src/language/xforms/select-if.c
index f5b55ff9be7f7ed46c59382f9fd6971198ef6fb7..ddeb4a05f4e9187afc058217d044fd9f8becd3e2 100644
(file)
--- a/
src/language/xforms/select-if.c
+++ b/
src/language/xforms/select-if.c
@@
-95,6
+95,12
@@
cmd_filter (void)
{
if (lex_match_id ("OFF"))
dict_set_filter (default_dict, NULL);
{
if (lex_match_id ("OFF"))
dict_set_filter (default_dict, NULL);
+ else if (token == '.')
+ {
+ msg (SW, _("Syntax error expecting OFF or BY. "
+ "Turning off case filtering."));
+ dict_set_filter (default_dict, NULL);
+ }
else
{
struct variable *v;
else
{
struct variable *v;
@@
-102,22
+108,22
@@
cmd_filter (void)
lex_match (T_BY);
v = parse_variable ();
if (!v)
lex_match (T_BY);
v = parse_variable ();
if (!v)
- return CMD_
CASCADING_
FAILURE;
+ return CMD_FAILURE;
if (v->type == ALPHA)
{
msg (SE, _("The filter variable must be numeric."));
if (v->type == ALPHA)
{
msg (SE, _("The filter variable must be numeric."));
- return CMD_
CASCADING_
FAILURE;
+ return CMD_FAILURE;
}
if (dict_class_from_id (v->name) == DC_SCRATCH)
{
msg (SE, _("The filter variable may not be scratch."));
}
if (dict_class_from_id (v->name) == DC_SCRATCH)
{
msg (SE, _("The filter variable may not be scratch."));
- return CMD_
CASCADING_
FAILURE;
+ return CMD_FAILURE;
}
dict_set_filter (default_dict, v);
}
}
dict_set_filter (default_dict, v);
}
- return
CMD_SUCCESS
;
+ return
lex_end_of_command ()
;
}
}