X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=diagnostic.h;h=2ce3b5d852eb8a6fcafc99898c14e0a9b625c160;hb=412b79e2cac1e0e0682906c0f49e31eb6feab5b7;hp=69fb0825210dff930a630b383008fe06692e36b5;hpb=5d0b63cc092ec22d2f17687688becc841bca6936;p=cparser diff --git a/diagnostic.h b/diagnostic.h index 69fb082..2ce3b5d 100644 --- a/diagnostic.h +++ b/diagnostic.h @@ -44,19 +44,19 @@ /** * Issue a diagnostic message. * Format types: - * %Y symbol_t - * %E expression_t + * %Y const symbol_t * + * %E const expression_t * * %Q unsigned (qualifier) * %T type_t * %K token_t * %k token_kind_t - * %P source_position_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;