| 1465 | } |
| 1466 | |
| 1467 | static const struct f_overload * |
| 1468 | ff_ovld_from_indx(int indx) /* F_foo number, index into shown_stats[] */ |
| 1469 | { |
| 1470 | const struct f_overload *fo; |
| 1471 | int i, ff; |
| 1472 | |
| 1473 | if (indx > 0) { /* skip 0 (F_DUMMY) */ |
| 1474 | for (fo = cond_ovl; fo < cond_ovl + SIZE(cond_ovl); ++fo) { |
| 1475 | for (i = 0; i < NUM_OVLD && (ff = fo->conds[i].ff) > 0; ++i) |
| 1476 | if (ff == indx) |
| 1477 | return fo; |
| 1478 | } |
| 1479 | } |
| 1480 | return (struct f_overload *) 0; |
| 1481 | } |
| 1482 | |
| 1483 | /* |
| 1484 | * Set all widget values to a null string. This is used after all spacings |