X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=diagnostic.h;h=cb114ef856def5a97bdd1a341b117e7de2cc2bcb;hb=50591e27ad6276fa0b1d31c61486c9798e9031a4;hp=820c7194a0b88549274f75018245f11f1091602b;hpb=5c804a26fbf22e58afedba1551d31f63d81d4d84;p=cparser diff --git a/diagnostic.h b/diagnostic.h index 820c719..cb114ef 100644 --- a/diagnostic.h +++ b/diagnostic.h @@ -41,16 +41,25 @@ # endif /* ifndef NORETURN */ #endif /* ifndef NORETURN */ +/** + * Issue a diagnostic message. + * Format types: + * %Y const symbol_t * + * %E const expression_t * + * %Q unsigned (qualifier) + * %T const type_t* + * %K const token_t* + * %k token_kind_t + * %P const source_position_t * + * + */ void diagnosticf(const char *fmt, ...); -void errorf(source_position_t pos, const char *fmt, ...); -void warningf(source_position_t pos, const char *fmt, ...); -NORETURN internal_errorf(source_position_t pos, const char *fmt, ...); +void errorf(const source_position_t *pos, const char *fmt, ...); +void warningf(const source_position_t *pos, const char *fmt, ...); +NORETURN internal_errorf(const source_position_t *pos, const char *fmt, ...); extern unsigned diagnostic_count; extern unsigned error_count; extern unsigned warning_count; -/* true if warnings should be inhibited */ -extern bool inhibit_all_warnings; - #endif