310 |
assert(cmd.n_variables == 0); |
assert(cmd.n_variables == 0); |
311 |
cmd.n_variables = hsh_count(hash); |
cmd.n_variables = hsh_count(hash); |
312 |
|
|
313 |
cmd.v_variables = xrealloc(cmd.v_variables, |
cmd.v_variables = xnrealloc (cmd.v_variables, cmd.n_variables, |
314 |
sizeof(struct variable) * cmd.n_variables); |
sizeof *cmd.v_variables); |
315 |
/* Iterate through the hash */ |
/* Iterate through the hash */ |
316 |
for (i=0,v = (struct variable *) hsh_first(hash,&hi); |
for (i=0,v = (struct variable *) hsh_first(hash,&hi); |
317 |
v != 0; |
v != 0; |
509 |
|
|
510 |
|
|
511 |
/* Allocate storage for the pairs */ |
/* Allocate storage for the pairs */ |
512 |
pairs = xrealloc(pairs, sizeof(struct pair) * (n_pairs + n_pairs_local) ); |
pairs = xnrealloc (pairs, n_pairs + n_pairs_local, sizeof *pairs); |
513 |
|
|
514 |
/* Populate the pairs with the appropriate variables */ |
/* Populate the pairs with the appropriate variables */ |
515 |
if ( paired ) |
if ( paired ) |
1711 |
for (j=0 ; j < 2 ; ++j) |
for (j=0 ; j < 2 ; ++j) |
1712 |
{ |
{ |
1713 |
|
|
1714 |
struct group_statistics *gs = (struct group_statistics *) |
struct group_statistics *gs = xmalloc (sizeof *gs); |
|
xmalloc (sizeof(struct group_statistics)); |
|
1715 |
|
|
1716 |
gs->sum = 0; |
gs->sum = 0; |
1717 |
gs->n = 0; |
gs->n = 0; |