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

Function clear_status_hilites

src/botl.c:3350–3366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3348}
3349
3350void
3351clear_status_hilites(void)
3352{
3353 int i;
3354
3355 for (i = 0; i < MAXBLSTATS; ++i) {
3356 struct hilite_s *temp, *next;
3357
3358 for (temp = gb.blstats[0][i].thresholds; temp; temp = next) {
3359 next = temp->next;
3360 free(temp);
3361 }
3362 gb.blstats[0][i].thresholds = gb.blstats[1][i].thresholds = 0;
3363 /* pointer into thresholds list, now stale */
3364 gb.blstats[0][i].hilite_rule = gb.blstats[1][i].hilite_rule = 0;
3365 }
3366}
3367
3368staticfn char *
3369hlattr2attrname(int attrib, char *buf, size_t bufsz)

Callers 1

optfn_hilite_statusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected