summaryrefslogtreecommitdiffstats
path: root/color.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2018-12-25 18:00:14 -0500
committerTavian Barnes <tavianator@tavianator.com>2019-01-02 16:33:02 -0500
commit7fc7e98df2ea9c34dd1e0cb188554bed933a16df (patch)
tree6318a0afd2da2b2343a361e8abbc3896cd10a5a4 /color.h
parentebcef71ef803940bff9ceb2c8d3ac5a1018bc084 (diff)
downloadbfs-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.h6
1 files changed, 6 insertions, 0 deletions
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 <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