1 /* Define constants for communication with c-parse.y.
2 Copyright (C) 1987, 1992, 1998 Free Software Foundation, Inc.
4 This file is part of GNU CC.
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING. If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
61 #define NORID RID_UNUSED
63 #define RID_FIRST_MODIFIER RID_UNSIGNED
65 /* The elements of `ridpointers' are identifier nodes
66 for the reserved type names and storage classes.
67 It is indexed by a RID_... value. */
68 extern tree ridpointers
[(int) RID_MAX
];
70 /* the declaration found for the last IDENTIFIER token read in.
71 yylex must look this up to detect typedefs, which get token type TYPENAME,
72 so it is left around in case the identifier is not a typedef but is
73 used in a context which makes it a reference to a variable. */
74 extern tree lastiddecl
;
76 extern char *token_buffer
; /* Pointer to token buffer. */
78 extern tree make_pointer_declarator
PROTO((tree
, tree
));
79 extern void reinit_parse_for_function
PROTO((void));
80 extern void position_after_white_space
PROTO((void));
81 extern int check_newline
PROTO((void));
83 extern int yylex
PROTO((void));
84 extern void yyerror
PROTO((const char *));
86 extern void forget_protocol_qualifiers
PROTO((void));
87 extern void remember_protocol_qualifiers
PROTO((void));
88 extern tree is_class_name
PROTO((tree
));