| 465 | } |
| 466 | |
| 467 | staticfn struct fruit * |
| 468 | loadfruitchn(NHFILE *nhfp) |
| 469 | { |
| 470 | struct fruit *flist, *fnext; |
| 471 | |
| 472 | flist = 0; |
| 473 | for (;;) { |
| 474 | fnext = newfruit(); |
| 475 | Sfi_fruit(nhfp, fnext, "fruit"); |
| 476 | if (fnext->fid != 0) { |
| 477 | fnext->nextf = flist; |
| 478 | flist = fnext; |
| 479 | } else |
| 480 | break; |
| 481 | } |
| 482 | dealloc_fruit(fnext); |
| 483 | return flist; |
| 484 | } |
| 485 | |
| 486 | staticfn void |
| 487 | freefruitchn(struct fruit *flist) |
no outgoing calls
no test coverage detected