X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=diagnostic.h;h=cdcd6df56563c709a67bb8930a092242f2f03c0b;hb=refs%2Fheads%2Falias;hp=36b57b901091352c09176c6a267f36d6f012f930;hpb=a658f09be6166f1bbb091105fec1b9bcd4a51c00;p=cparser diff --git a/diagnostic.h b/diagnostic.h index 36b57b9..cdcd6df 100644 --- a/diagnostic.h +++ b/diagnostic.h @@ -1,21 +1,6 @@ /* * This file is part of cparser. - * 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 - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. + * Copyright (C) 2012 Matthias Braun */ #ifndef DIAGNOSTIC_H #define DIAGNOSTIC_H @@ -51,7 +36,7 @@ * %#k va_list*, char const* * %N entity_t const* * %#N entity_t const* - * %P source_position_t const* + * %P position_t const* * %Q unsigned (qualifier) * %S string_t const* * %T type_t const* @@ -59,11 +44,10 @@ * %Y symbol_t const* */ void diagnosticf(const char *fmt, ...); -void errorf(const source_position_t *pos, const char *fmt, ...); -void warningf(warning_t, const source_position_t *pos, const char *fmt, ...); -NORETURN internal_errorf(const source_position_t *pos, const char *fmt, ...); +void errorf(const position_t *pos, const char *fmt, ...); +void warningf(warning_t, const position_t *pos, const char *fmt, ...); +NORETURN internal_errorf(const position_t *pos, const char *fmt, ...); -extern unsigned diagnostic_count; extern unsigned error_count; extern unsigned warning_count; extern bool show_column; /**< Show column in diagnostic messages */