224 |
static void group_postcalc (struct cmd_t_test *); |
static void group_postcalc (struct cmd_t_test *); |
225 |
|
|
226 |
|
|
|
static int compare_var_name (const void *a_, const void *b_, void *v_ UNUSED); |
|
|
static unsigned hash_var_name (const void *a_, void *v_ UNUSED); |
|
|
|
|
227 |
static void calculate(const struct casefile *cf, void *_mode); |
static void calculate(const struct casefile *cf, void *_mode); |
228 |
|
|
229 |
static int mode; |
static int mode; |
294 |
struct hsh_table *hash; |
struct hsh_table *hash; |
295 |
struct variable *v; |
struct variable *v; |
296 |
|
|
297 |
hash=hsh_create(n_pairs,compare_var_name,hash_var_name,0,0); |
hash = hsh_create (n_pairs, compare_var_names, hash_var_name, 0, 0); |
298 |
|
|
299 |
for (i=0; i < n_pairs; ++i) |
for (i=0; i < n_pairs; ++i) |
300 |
{ |
{ |
1581 |
} |
} |
1582 |
|
|
1583 |
|
|
|
|
|
|
static int |
|
|
compare_var_name (const void *a_, const void *b_, void *v_ UNUSED) |
|
|
{ |
|
|
const struct variable *a = a_; |
|
|
const struct variable *b = b_; |
|
|
|
|
|
return strcmp(a->name,b->name); |
|
|
} |
|
|
|
|
|
static unsigned |
|
|
hash_var_name (const void *a_, void *v_ UNUSED) |
|
|
{ |
|
|
const struct variable *a = a_; |
|
|
|
|
|
return hsh_hash_bytes (a->name, strlen(a->name)); |
|
|
} |
|
|
|
|
|
|
|
1584 |
|
|
1585 |
static void |
static void |
1586 |
paired_precalc (struct cmd_t_test *cmd UNUSED) |
paired_precalc (struct cmd_t_test *cmd UNUSED) |