MCPcopy Create free account
hub / github.com/NetHack/NetHack / ff_ovld_from_indx

Function ff_ovld_from_indx

win/X11/winstat.c:1467–1481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1465}
1466
1467static const struct f_overload *
1468ff_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

Callers 1

create_widgetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected