errors.h revision 90075
1190207Srpaulo/* Basic error reporting routines.
2172683Smlaier   Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
3172683Smlaier
4172683SmlaierThis file is part of GCC.
5172683Smlaier
6172683SmlaierGCC is free software; you can redistribute it and/or modify it under
7172683Smlaierthe terms of the GNU General Public License as published by the Free
8172683SmlaierSoftware Foundation; either version 2, or (at your option) any later
9172683Smlaierversion.
10172683Smlaier
11172683SmlaierGCC is distributed in the hope that it will be useful, but WITHOUT ANY
12172683SmlaierWARRANTY; without even the implied warranty of MERCHANTABILITY or
13172683SmlaierFITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14172683Smlaierfor more details.
15172683Smlaier
16172683SmlaierYou should have received a copy of the GNU General Public License
17172683Smlaieralong with GCC; see the file COPYING.  If not, write to the Free
18172683SmlaierSoftware Foundation, 59 Temple Place - Suite 330, Boston, MA
19172683Smlaier02111-1307, USA.  */
20172683Smlaier
21172683Smlaier/* warning, error, and fatal.  These definitions are suitable for use
22172683Smlaier   in the generator programs; eventually we would like to use them in
23172683Smlaier   cc1 too, but that's a longer term project.
24172683Smlaier
25172683Smlaier   N.B. We cannot presently use ATTRIBUTE_PRINTF with these functions,
26172683Smlaier   because they can be extended with additional format specifiers which
27172683Smlaier   GCC does not know about.  */
28172683Smlaier
29172683Smlaier#ifndef GCC_ERRORS_H
30172683Smlaier#define GCC_ERRORS_H
31172683Smlaier
32172683Smlaierextern void warning PARAMS ((const char *, ...));
33172683Smlaierextern void error   PARAMS ((const char *, ...));
34172683Smlaierextern void fatal   PARAMS ((const char *, ...)) ATTRIBUTE_NORETURN;
35172683Smlaierextern void internal_error   PARAMS ((const char *, ...)) ATTRIBUTE_NORETURN;
36172683Smlaierextern const char *trim_filename   PARAMS ((const char *));
37172683Smlaierextern void fancy_abort PARAMS ((const char *, int, const char *))
38172683Smlaier    ATTRIBUTE_NORETURN;
39172683Smlaier
40172683Smlaierextern int have_error;
41172683Smlaierextern const char *progname;
42172683Smlaier
43172683Smlaier#endif /* ! GCC_ERRORS_H */
44172683Smlaier