188 |
static int normal; /* FIXME */ |
static int normal; /* FIXME */ |
189 |
|
|
190 |
/* Variables for which to calculate statistics. */ |
/* Variables for which to calculate statistics. */ |
191 |
static int n_variables; |
static size_t n_variables; |
192 |
static struct variable **v_variables; |
static struct variable **v_variables; |
193 |
|
|
194 |
/* Arenas used to store semi-permanent storage. */ |
/* Arenas used to store semi-permanent storage. */ |
493 |
calc (struct ccase *c, void *aux UNUSED) |
calc (struct ccase *c, void *aux UNUSED) |
494 |
{ |
{ |
495 |
double weight; |
double weight; |
496 |
int i; |
size_t i; |
497 |
int bad_warn = 1; |
int bad_warn = 1; |
498 |
|
|
499 |
weight = dict_get_case_weight (default_dict, c, &bad_warn); |
weight = dict_get_case_weight (default_dict, c, &bad_warn); |
547 |
static void |
static void |
548 |
precalc (void *aux UNUSED) |
precalc (void *aux UNUSED) |
549 |
{ |
{ |
550 |
int i; |
size_t i; |
551 |
|
|
552 |
pool_destroy (gen_pool); |
pool_destroy (gen_pool); |
553 |
gen_pool = pool_create (); |
gen_pool = pool_create (); |
591 |
static void |
static void |
592 |
postcalc (void *aux UNUSED) |
postcalc (void *aux UNUSED) |
593 |
{ |
{ |
594 |
int i; |
size_t i; |
595 |
|
|
596 |
for (i = 0; i < n_variables; i++) |
for (i = 0; i < n_variables; i++) |
597 |
{ |
{ |
773 |
int mode; |
int mode; |
774 |
int min = 0, max = 0; |
int min = 0, max = 0; |
775 |
|
|
776 |
int old_n_variables = n_variables; |
size_t old_n_variables = n_variables; |
777 |
int i; |
size_t i; |
778 |
|
|
779 |
lex_match ('='); |
lex_match ('='); |
780 |
if (token != T_ALL && (token != T_ID |
if (token != T_ALL && (token != T_ID |
856 |
|| token == T_ID) |
|| token == T_ID) |
857 |
for (;;) |
for (;;) |
858 |
{ |
{ |
859 |
int i; |
size_t i; |
860 |
|
|
861 |
/* Max, current size of list; list itself. */ |
/* Max, current size of list; list itself. */ |
862 |
int nl, ml; |
int nl, ml; |
863 |
double *dl; |
double *dl; |
864 |
|
|
865 |
/* Variable list. */ |
/* Variable list. */ |
866 |
int n; |
size_t n; |
867 |
struct variable **v; |
struct variable **v; |
868 |
|
|
869 |
if (!parse_variables (default_dict, &v, &n, |
if (!parse_variables (default_dict, &v, &n, |