projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
First step in making struct variable opaque: the boring mechanical
[pspp-builds.git]
/
src
/
language
/
dictionary
/
weight.c
diff --git
a/src/language/dictionary/weight.c
b/src/language/dictionary/weight.c
index 33f0cbda38ea1115fd5cfb830e7876320b089348..56229a285d1e6b9f8fb90ef9212553f852b31820 100644
(file)
--- a/
src/language/dictionary/weight.c
+++ b/
src/language/dictionary/weight.c
@@
-47,12
+47,12
@@
cmd_weight (struct lexer *lexer, struct dataset *ds)
v = parse_variable (lexer, dict);
if (!v)
return CMD_CASCADING_FAILURE;
v = parse_variable (lexer, dict);
if (!v)
return CMD_CASCADING_FAILURE;
- if (v
->type == ALPHA
)
+ if (v
ar_is_alpha (v)
)
{
msg (SE, _("The weighting variable must be numeric."));
return CMD_CASCADING_FAILURE;
}
{
msg (SE, _("The weighting variable must be numeric."));
return CMD_CASCADING_FAILURE;
}
- if (dict_class_from_id (v
->name
) == DC_SCRATCH)
+ if (dict_class_from_id (v
ar_get_name (v)
) == DC_SCRATCH)
{
msg (SE, _("The weighting variable may not be scratch."));
return CMD_CASCADING_FAILURE;
{
msg (SE, _("The weighting variable may not be scratch."));
return CMD_CASCADING_FAILURE;