* Return what color this condition should * be displayed in based on user settings. */
| 4905 | * be displayed in based on user settings. |
| 4906 | */ |
| 4907 | static int |
| 4908 | condcolor(long bm, unsigned long *bmarray) |
| 4909 | { |
| 4910 | int i; |
| 4911 | |
| 4912 | if (bm && bmarray) |
| 4913 | for (i = 0; i < CLR_MAX; ++i) { |
| 4914 | if ((bm & bmarray[i]) != 0) |
| 4915 | return i; |
| 4916 | } |
| 4917 | return NO_COLOR; |
| 4918 | } |
| 4919 | |
| 4920 | static int |
| 4921 | condattr(long bm, unsigned long *bmarray) |