diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2018-12-25 18:00:14 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-01-02 16:33:02 -0500 |
commit | 7fc7e98df2ea9c34dd1e0cb188554bed933a16df (patch) | |
tree | 6318a0afd2da2b2343a361e8abbc3896cd10a5a4 /color.h | |
parent | ebcef71ef803940bff9ceb2c8d3ac5a1018bc084 (diff) | |
download | bfs-7fc7e98df2ea9c34dd1e0cb188554bed933a16df.tar.xz |
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.
Diffstat (limited to 'color.h')
-rw-r--r-- | color.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -18,6 +18,7 @@ #define BFS_COLOR_H #include "bftw.h" +#include <stdarg.h> #include <stdbool.h> #include <stdio.h> @@ -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 |