| 97 |
|
/* complete list operations */ |
| 98 |
|
switch (op) { |
| 99 |
|
case BS_NEW: /* new computation set */ |
| 100 |
< |
listpos = 0; |
| 101 |
< |
lastin = -1; |
| 100 |
> |
listpos = 0; lastin = -1; |
| 101 |
|
if (complen) /* free old list */ |
| 102 |
|
free((char *)complist); |
| 103 |
|
complist = NULL; |
| 229 |
|
frac = 1024.*1024.*16384. / (wtotal*sizeof(RAYVAL)); |
| 230 |
|
while (k--) |
| 231 |
|
complist[k].nr = frac * complist[k].nr; |
| 232 |
< |
listpos = 0; lastin = -1; /* flag initial sort */ |
| 232 |
> |
listpos = 0; lastin = -1; /* perform initial sort */ |
| 233 |
> |
sortcomplist(); |
| 234 |
|
} |
| 235 |
|
|
| 236 |
|
|