projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
VECTOR: Improve error messages and coding style.
[pspp]
/
src
/
language
/
dictionary
/
sys-file-info.c
diff --git
a/src/language/dictionary/sys-file-info.c
b/src/language/dictionary/sys-file-info.c
index 7f5216134c8e1d869700ce3437db2ea7e7209845..3dc375213788f6b1c4d65d403596ac4276596f64 100644
(file)
--- a/
src/language/dictionary/sys-file-info.c
+++ b/
src/language/dictionary/sys-file-info.c
@@
-144,7
+144,7
@@
cmd_sysfile_info (struct lexer *lexer, struct dataset *ds)
if (h == NULL)
{
if (h == NULL)
{
- lex_sbc_missing ("FILE");
+ lex_sbc_missing (
lexer,
"FILE");
goto error;
}
goto error;
}
@@
-389,7
+389,7
@@
cmd_display (struct lexer *lexer, struct dataset *ds)
vl, n, attribute_flags);
}
else
vl, n, attribute_flags);
}
else
- msg (S
W
, _("No variables to display."));
+ msg (S
N
, _("No variables to display."));
free (vl);
}
free (vl);
}
@@
-718,7
+718,7
@@
display_vectors (const struct dictionary *dict, int sorted)
size_t n_vectors = dict_get_n_vectors (dict);
if (n_vectors == 0)
{
size_t n_vectors = dict_get_n_vectors (dict);
if (n_vectors == 0)
{
- msg (S
W
, _("No vectors defined."));
+ msg (S
N
, _("No vectors defined."));
return;
}
return;
}
@@
-836,7
+836,7
@@
recode_strings (struct pool *pool,
ss_rtrim (&utf8, ss_cstr (" "));
utf8.string[utf8.length] = '\0';
ss_rtrim (&utf8, ss_cstr (" "));
utf8.string[utf8.length] = '\0';
- if (ids[i] && !id_is_plausible (utf8.string
, false
))
+ if (ids[i] && !id_is_plausible (utf8.string))
error = EINVAL;
}
error = EINVAL;
}