X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=color.h;h=c0528cf08713ac8e101cfdeac2b3de193a0c5094;hb=f6aca0dc4d6b7ed9bf2bff399e3fcb47eafdce4b;hp=170ff4074d220e7e62264c4c63d1419f4a59d664;hpb=663ee1a4c9b9caa4c8f446934410ca636f998df6;p=git.git diff --git a/color.h b/color.h index 170ff4074..c0528cf08 100644 --- a/color.h +++ b/color.h @@ -1,6 +1,8 @@ #ifndef COLOR_H #define COLOR_H +struct strbuf; + /* 2 + (2 * num_attrs) + 8 + 1 + 8 + 'm' + NUL */ /* "\033[1;2;4;5;7;38;5;2xx;48;5;2xxm\0" */ /* @@ -64,6 +66,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, ...); +void color_print_strbuf(FILE *fp, const char *color, const struct strbuf *sb); int color_is_nil(const char *color);