X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=color.h;h=170ff4074d220e7e62264c4c63d1419f4a59d664;hb=c27e559da5b26faa31858fe6dc5492d4f605b867;hp=5c264b0ce3b95edb5f86cc003d2aca04033d098f;hpb=206af7c96b134b4962fa04fa174a25f29efd7e5e;p=git.git diff --git a/color.h b/color.h index 5c264b0ce..170ff4074 100644 --- a/color.h +++ b/color.h @@ -43,6 +43,9 @@ #define GIT_COLOR_BG_MAGENTA "\033[45m" #define GIT_COLOR_BG_CYAN "\033[46m" +/* A special value meaning "no color selected" */ +#define GIT_COLOR_NIL "NIL" + /* * This variable stores the value of color.ui */ @@ -61,6 +64,7 @@ __attribute__((format (printf, 3, 4))) int color_fprintf(FILE *fp, const char *color, const char *fmt, ...); __attribute__((format (printf, 3, 4))) int color_fprintf_ln(FILE *fp, const char *color, const char *fmt, ...); -int color_fwrite_lines(FILE *fp, const char *color, size_t count, const char *buf); + +int color_is_nil(const char *color); #endif /* COLOR_H */