X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=diagnostic.h;h=4c12e4c35a42f1ac3c8f7e3d9b4731ea0f02480b;hb=22d24ddd2209686fa723a62ccc19b7c2eea2d172;hp=69fb0825210dff930a630b383008fe06692e36b5;hpb=5d0b63cc092ec22d2f17687688becc841bca6936;p=cparser diff --git a/diagnostic.h b/diagnostic.h index 69fb082..4c12e4c 100644 --- a/diagnostic.h +++ b/diagnostic.h @@ -1,6 +1,6 @@ /* * This file is part of cparser. - * Copyright (C) 2007-2008 Matthias Braun + * Copyright (C) 2007-2009 Matthias Braun * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -44,25 +44,22 @@ /** * 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 + * %T const type_t* + * %K const 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; extern unsigned warning_count; -/* true if warnings should be inhibited */ -extern bool inhibit_all_warnings; - #endif