TODO: turn this into a common helper; multiple identical implementations */
| 3037 | |
| 3038 | /* TODO: turn this into a common helper; multiple identical implementations */ |
| 3039 | static int |
| 3040 | mswin_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 | |
| 3052 | static int |
| 3053 | mswin_condattr(long bm, unsigned long *bmarray) |
no outgoing calls
no test coverage detected