110 |
|
lastin = -1; /* flag full sort */ |
111 |
|
break; |
112 |
|
} |
113 |
– |
if (lastin < 0) /* sort updated list */ |
114 |
– |
sortcomplist(); |
113 |
|
return; /* no display */ |
114 |
|
default: |
115 |
|
error(CONSISTENCY, "bundle_set called with unknown operation"); |
289 |
|
complist+listpos, complen-listpos); |
290 |
|
free((char *)list2); |
291 |
|
} |
294 |
– |
/* check for all finished */ |
295 |
– |
if (complist[0].nr <= bnrays(hdlist[complist[0].hd],complist[0].bi)) { |
296 |
– |
free((char *)complist); |
297 |
– |
complist = NULL; |
298 |
– |
complen = 0; |
299 |
– |
} |
292 |
|
/* drop satisfied requests */ |
293 |
|
for (i = complen; i-- && complist[i].nr <= |
294 |
|
bnrays(hdlist[complist[i].hd],complist[i].bi); ) |
328 |
|
int ncomp; |
329 |
|
register int i; |
330 |
|
|
339 |
– |
if (complen <= 0) |
340 |
– |
return(0); |
331 |
|
if (listpos > lastin) /* time to sort the list */ |
332 |
|
sortcomplist(); |
333 |
+ |
if (complen <= 0) |
334 |
+ |
return(0); |
335 |
|
p->hd = complist[listpos].hd; |
336 |
|
p->bi = complist[listpos].bi; |
337 |
|
ncomp = bnrays(hdlist[p->hd],p->bi); |