* Return what color this condition should * be displayed in based on user settings. */
| 1360 | * be displayed in based on user settings. |
| 1361 | */ |
| 1362 | static int |
| 1363 | condcolor(long bm, unsigned long *bmarray) |
| 1364 | { |
| 1365 | int i; |
| 1366 | |
| 1367 | if (bm && bmarray) |
| 1368 | for (i = 0; i < CLR_MAX; ++i) { |
| 1369 | if ((bmarray[i] & bm) != 0) |
| 1370 | return i; |
| 1371 | } |
| 1372 | return NO_COLOR; |
| 1373 | } |
| 1374 | |
| 1375 | static int |
| 1376 | condattr(long bm, unsigned long *bmarray) |