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

Function mswin_condcolor

win/win32/mswproc.c:3039–3050  ·  view source on GitHub ↗

TODO: turn this into a common helper; multiple identical implementations */

Source from the content-addressed store, hash-verified

3037
3038/* TODO: turn this into a common helper; multiple identical implementations */
3039static int
3040mswin_condcolor(long bm, unsigned long *bmarray)
3041{
3042 int i;
3043
3044 if (bm && bmarray)
3045 for (i = 0; i < CLR_MAX; ++i) {
3046 if ((bm & bmarray[i]) != 0)
3047 return i;
3048 }
3049 return NO_COLOR;
3050}
3051
3052static int
3053mswin_condattr(long bm, unsigned long *bmarray)

Callers 1

mswin_status_updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected