From 7fc7e98df2ea9c34dd1e0cb188554bed933a16df Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 25 Dec 2018 18:00:14 -0500 Subject: diag: Unify diagnostic formatting This adds a bfs: prefix to error/warning messages for consistency with other command line tools, and leaves only the "error:"/"warning:" part colored like GCC. It also uniformly adds full stops after messages. --- color.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'color.h') diff --git a/color.h b/color.h index 419180c..a68378e 100644 --- a/color.h +++ b/color.h @@ -18,6 +18,7 @@ #define BFS_COLOR_H #include "bftw.h" +#include #include #include @@ -108,4 +109,9 @@ int cfclose(CFILE *cfile); */ int cfprintf(CFILE *cfile, const char *format, ...); +/** + * cfprintf() variant that takes a va_list. + */ +int cvfprintf(CFILE *cfile, const char *format, va_list args); + #endif // BFS_COLOR_H -- cgit v1.2.3