projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Apply UNUSED and include additional headers to avoid complaints from
[pspp]
/
src
/
language
/
dictionary
/
variable-display.c
diff --git
a/src/language/dictionary/variable-display.c
b/src/language/dictionary/variable-display.c
index e6afcb98f596a547c32716a8d7b6e132ef4a858e..13285918263d872d56d2e5a81e0828fd664be6f8 100644
(file)
--- a/
src/language/dictionary/variable-display.c
+++ b/
src/language/dictionary/variable-display.c
@@
-1,6
+1,5
@@
/* PSPP - computes sample statistics.
Copyright (C) 1997-9, 2000 Free Software Foundation, Inc.
/* PSPP - computes sample statistics.
Copyright (C) 1997-9, 2000 Free Software Foundation, Inc.
- Written by John Darrington <john@darrington.wattle.id.au>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@
-71,9
+70,8
@@
cmd_variable_alignment (struct lexer *lexer, struct dataset *ds)
return CMD_FAILURE;
}
return CMD_FAILURE;
}
- for( i = 0 ; i < nv ; ++i )
- v[i]->alignment = align;
-
+ for( i = 0 ; i < nv ; ++i )
+ var_set_alignment (v[i], align);
while (lex_token (lexer) == '/')
lex_get (lexer);
while (lex_token (lexer) == '/')
lex_get (lexer);
@@
-110,7
+108,7
@@
cmd_variable_width (struct lexer *lexer, struct dataset *ds)
}
for( i = 0 ; i < nv ; ++i )
}
for( i = 0 ; i < nv ; ++i )
-
v[i]->display_width = lex_tokval (lexer
);
+
var_set_display_width (v[i], lex_integer (lexer)
);
while (lex_token (lexer) == '/')
lex_get (lexer);
while (lex_token (lexer) == '/')
lex_get (lexer);
@@
-158,7
+156,7
@@
cmd_variable_level (struct lexer *lexer, struct dataset *ds)
}
for( i = 0 ; i < nv ; ++i )
}
for( i = 0 ; i < nv ; ++i )
- v
[i]->measure = level
;
+ v
ar_set_measure (v[i], level)
;
while (lex_token (lexer) == '/')
while (lex_token (lexer) == '/')