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

Function status_hilite_linestr_countfield

src/botl.c:3461–3473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3459}
3460
3461staticfn int
3462status_hilite_linestr_countfield(int fld)
3463{
3464 struct _status_hilite_line_str *tmp;
3465 boolean countall = (fld == BL_FLUSH);
3466 int count = 0;
3467
3468 for (tmp = status_hilite_str; tmp; tmp = tmp->next) {
3469 if (countall || tmp->fld == fld)
3470 count++;
3471 }
3472 return count;
3473}
3474
3475/* used by options handling, doset(options.c) */
3476int

Callers 3

count_status_hilitesFunction · 0.85
status_hilite_menu_fldFunction · 0.85
status_hilite_menuFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected