projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lexer: Change the functions for retrieving token strings.
[pspp-builds.git]
/
src
/
language
/
stats
/
rank.q
diff --git
a/src/language/stats/rank.q
b/src/language/stats/rank.q
index 386ef03a877c9baf08e1d86c623e2abca8574416..f53ef2d01475a8c76040615898449e51f554f301 100644
(file)
--- a/
src/language/stats/rank.q
+++ b/
src/language/stats/rank.q
@@
-798,7
+798,7
@@
rank_custom_variables (struct lexer *lexer, struct dataset *ds, struct cmd_rank
{
lex_match (lexer, T_EQUALS);
{
lex_match (lexer, T_EQUALS);
- if ((lex_token (lexer) != T_ID || dict_lookup_var (dataset_dict (ds), lex_tok
id
(lexer)) == NULL)
+ if ((lex_token (lexer) != T_ID || dict_lookup_var (dataset_dict (ds), lex_tok
cstr
(lexer)) == NULL)
&& lex_token (lexer) != T_ALL)
return 2;
&& lex_token (lexer) != T_ALL)
return 2;
@@
-808,7
+808,7
@@
rank_custom_variables (struct lexer *lexer, struct dataset *ds, struct cmd_rank
if ( lex_match (lexer, T_BY) )
{
if ( lex_match (lexer, T_BY) )
{
- if ((lex_token (lexer) != T_ID || dict_lookup_var (dataset_dict (ds), lex_tok
id
(lexer)) == NULL))
+ if ((lex_token (lexer) != T_ID || dict_lookup_var (dataset_dict (ds), lex_tok
cstr
(lexer)) == NULL))
{
return 2;
}
{
return 2;
}
@@
-847,9
+847,9
@@
parse_rank_function (struct lexer *lexer, struct dictionary *dict, struct cmd_ra
while( lex_token (lexer) == T_ID )
{
while( lex_token (lexer) == T_ID )
{
- if ( dict_lookup_var (dict, lex_tok
id
(lexer)) != NULL )
+ if ( dict_lookup_var (dict, lex_tok
cstr
(lexer)) != NULL )
{
{
- msg(SE, _("Variable %s already exists."), lex_tok
id
(lexer));
+ msg(SE, _("Variable %s already exists."), lex_tok
cstr
(lexer));
return 0;
}
if ( var_count >= subcase_get_n_fields (&sc) )
return 0;
}
if ( var_count >= subcase_get_n_fields (&sc) )
@@
-858,7
+858,7
@@
parse_rank_function (struct lexer *lexer, struct dictionary *dict, struct cmd_ra
return 0;
}
return 0;
}
- destvar = create_rank_variable (dict, f, src_vars[var_count], lex_tok
id
(lexer));
+ destvar = create_rank_variable (dict, f, src_vars[var_count], lex_tok
cstr
(lexer));
rank_specs[n_rank_specs - 1].destvars[var_count] = destvar ;
lex_get (lexer);
rank_specs[n_rank_specs - 1].destvars[var_count] = destvar ;
lex_get (lexer);