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
/
value-labels.c
diff --git
a/src/language/dictionary/value-labels.c
b/src/language/dictionary/value-labels.c
index 09dee607cc977d0c63e450f273e9bf630d1ca40b..5ac8fb52a2ca4e11dd0b436a2c71e301e7864a80 100644
(file)
--- a/
src/language/dictionary/value-labels.c
+++ b/
src/language/dictionary/value-labels.c
@@
-118,10
+118,10
@@
verify_val_labs (struct variable **vars, size_t var_cnt)
{
struct variable *vp = vars[i];
{
struct variable *vp = vars[i];
- if (v
p->type == ALPHA && vp->width > MAX_SHORT_STRING
)
+ if (v
ar_is_long_string (vp)
)
{
msg (SE, _("It is not possible to assign value labels to long "
{
msg (SE, _("It is not possible to assign value labels to long "
- "string variables such as %s."), v
p->name
);
+ "string variables such as %s."), v
ar_get_name (vp)
);
return 0;
}
}
return 0;
}
}
@@
-152,7
+152,7
@@
get_label (struct lexer *lexer, struct variable **vars, size_t var_cnt)
size_t i;
/* Set value. */
size_t i;
/* Set value. */
- if (var
s[0]->type == ALPHA
)
+ if (var
_is_alpha (vars[0])
)
{
if (lex_token (lexer) != T_STRING)
{
{
if (lex_token (lexer) != T_STRING)
{