OSDN Git Service

* invoke.texi: Use @gol at ends of lines inside @gccoptlist.
[pf3gnuchains/gcc-fork.git] / gcc / tradcpp.h
1 /* C Compatible Compiler Preprocessor (CCCP)
2 Copyright (C) 1986, 1987, 1989, 2000 Free Software Foundation, Inc.
3                     Written by Paul Rubin, June 1986
4                     Adapted to ANSI C, Richard Stallman, Jan 1987
5                     Dusted off, polished, and adapted for use as traditional
6                     preprocessor only, Zack Weinberg, Jul 2000
7
8 This program is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by the
10 Free Software Foundation; either version 2, or (at your option) any
11 later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
21
22 #ifndef GCC_TRADCPP_H
23 #define GCC_TRADCPP_H
24
25 extern void error PARAMS ((const char *msgid, ...)) ATTRIBUTE_PRINTF_1;
26 extern void warning PARAMS ((const char *msgid, ...)) ATTRIBUTE_PRINTF_1;
27 extern void fatal PARAMS ((const char *msgid, ...)) ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN;
28 extern void error_with_line PARAMS ((int, const char *msgid, ...)) ATTRIBUTE_PRINTF_2;
29 extern void error_from_errno PARAMS ((const char *msgid));
30
31 extern void perror_with_name PARAMS ((const char *msgid));
32 extern void pfatal_with_name PARAMS ((const char *msgid)) ATTRIBUTE_NORETURN;
33 extern void fancy_abort PARAMS ((int, const char *)) ATTRIBUTE_NORETURN;
34
35 extern struct hashnode *lookup PARAMS ((const unsigned char *, int, int));
36 extern int parse_c_expression PARAMS ((const char *));  /* in tradcif.y */
37 extern int test_assertion PARAMS ((unsigned char **));
38 extern int flag_signed_char;
39
40 #define is_idchar(x)    ISIDNUM(x)
41 #define is_idstart(x)   ISIDST(x)
42 #define is_space(x)     ISSPACE(x)
43 #define is_nvspace(x)   (IS_NVSPACE(x) && x != '\0')
44
45 #endif /* ! GCC_TRADCPP_H */