errors.h revision 117395
1130561Sobrien/* Basic error reporting routines. 2130561Sobrien Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. 3130561Sobrien 4130561SobrienThis file is part of GCC. 5130561Sobrien 6130561SobrienGCC is free software; you can redistribute it and/or modify it under 7130561Sobrienthe terms of the GNU General Public License as published by the Free 8130561SobrienSoftware Foundation; either version 2, or (at your option) any later 9130561Sobrienversion. 10130561Sobrien 11130561SobrienGCC is distributed in the hope that it will be useful, but WITHOUT ANY 12130561SobrienWARRANTY; without even the implied warranty of MERCHANTABILITY or 13130561SobrienFITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14130561Sobrienfor more details. 15130561Sobrien 16130561SobrienYou should have received a copy of the GNU General Public License 17130561Sobrienalong with GCC; see the file COPYING. If not, write to the Free 18130561SobrienSoftware Foundation, 59 Temple Place - Suite 330, Boston, MA 19130561Sobrien02111-1307, USA. */ 20218822Sdim 21218822Sdim/* warning, error, and fatal. These definitions are suitable for use 22130561Sobrien in the generator programs; eventually we would like to use them in 23130561Sobrien cc1 too, but that's a longer term project. 24130561Sobrien 25130561Sobrien N.B. We cannot presently use ATTRIBUTE_PRINTF with these functions, 26130561Sobrien because they can be extended with additional format specifiers which 27130561Sobrien GCC does not know about. */ 28130561Sobrien 29130561Sobrien#ifndef GCC_ERRORS_H 30130561Sobrien#define GCC_ERRORS_H 31130561Sobrien 32130561Sobrienextern void warning PARAMS ((const char *, ...)); 33130561Sobrienextern void error PARAMS ((const char *, ...)); 34130561Sobrienextern void fatal PARAMS ((const char *, ...)) ATTRIBUTE_NORETURN; 35130561Sobrienextern void internal_error PARAMS ((const char *, ...)) ATTRIBUTE_NORETURN; 36130561Sobrienextern const char *trim_filename PARAMS ((const char *)); 37130561Sobrienextern void fancy_abort PARAMS ((const char *, int, const char *)) 38130561Sobrien ATTRIBUTE_NORETURN; 39130561Sobrien 40130561Sobrienextern int have_error; 41130561Sobrienextern const char *progname; 42130561Sobrien 43130561Sobrien#endif /* ! GCC_ERRORS_H */ 44130561Sobrien