summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-01-24 18:37:15 +0100
committerMattias Andrée <maandree@kth.se>2022-01-24 18:37:15 +0100
commit0650e17761ffc45b4fc5d32287514796d6da332d (patch)
tree1a4733cc429bf282fcd4e25928aa4e17bb9a12c9 /common.h
parentAdd more test cases (diff)
downloadmakel-0650e17761ffc45b4fc5d32287514796d6da332d.tar.gz
makel-0650e17761ffc45b4fc5d32287514796d6da332d.tar.bz2
makel-0650e17761ffc45b4fc5d32287514796d6da332d.tar.xz
Fix output and note which test cases are used to test each warning
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'common.h')
-rw-r--r--common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.h b/common.h
index 8d2a5f4..3647f49 100644
--- a/common.h
+++ b/common.h
@@ -125,13 +125,13 @@ int is_line_blank(struct line *line);
/* ui.c */
extern struct warning_class_data warning_classes[];
void xprintwarningf(enum warning_class class, int severity, const char *fmt, ...);
-#define printinfof(CLASS, ...) xprintwarningf(CLASS, 0, __VA_ARGS__)
#define warnf_style(CLASS, ...) xprintwarningf(CLASS, EXIT_STYLE, __VA_ARGS__)
#define warnf_confusing(CLASS, ...) xprintwarningf(CLASS, EXIT_CONFUSING, __VA_ARGS__)
#define warnf_warning(CLASS, ...) xprintwarningf(CLASS, EXIT_WARNING, __VA_ARGS__)
#define warnf_unspecified(CLASS, ...) xprintwarningf(CLASS, EXIT_UNSPECIFIED, __VA_ARGS__)
#define warnf_nonconforming(CLASS, ...) xprintwarningf(CLASS, EXIT_NONCONFORMING, __VA_ARGS__)
#define warnf_undefined(CLASS, ...) xprintwarningf(CLASS, EXIT_UNDEFINED, __VA_ARGS__)
+void printinfof(enum warning_class class, const char *fmt, ...);
void printerrorf(const char *fmt, ...);
void printtipf(enum warning_class class, const char *fmt, ...);