]> gcc.gnu.org Git - gcc.git/blame - gcc/cp/decl.h
Get ready for garbage collection.
[gcc.git] / gcc / cp / decl.h
CommitLineData
8d08fdba
MS
1/* Variables and structures for declaration processing.
2 Copyright (C) 1993 Free Software Foundation, Inc.
3
4This file is part of GNU CC.
5
6GNU CC is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11GNU CC is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GNU CC; see the file COPYING. If not, write to
e9fa0c7c
RK
18the Free Software Foundation, 59 Temple Place - Suite 330,
19Boston, MA 02111-1307, USA. */
8d08fdba
MS
20
21/* In grokdeclarator, distinguish syntactic contexts of declarators. */
22enum decl_context
23{ NORMAL, /* Ordinary declaration */
24 FUNCDEF, /* Function definition */
25 PARM, /* Declaration of parm before function body */
db5ae43f 26 CATCHPARM, /* Declaration of catch parm */
8d08fdba
MS
27 FIELD, /* Declaration inside struct or union */
28 BITFIELD, /* Likewise but with specified width */
29 TYPENAME, /* Typename (inside cast or sizeof) */
30 MEMFUNCDEF /* Member function definition */
31};
32
f30432d7 33/* We need this in here to get the decl_context definition. */
c11b6f21 34extern tree grokdeclarator PROTO((tree, tree, enum decl_context, int, tree));
f30432d7 35
8d08fdba
MS
36/* Parsing a function declarator leaves a list of parameter names
37 or a chain or parameter decls here. */
38extern tree last_function_parms;
39
8d08fdba
MS
40/* A list of objects which have constructors or destructors
41 which reside in the global scope. The decl is stored in
42 the TREE_VALUE slot and the initializer is stored
43 in the TREE_PURPOSE slot. */
44extern tree static_aggregates;
45
8d08fdba
MS
46#ifdef DEBUG_CP_BINDING_LEVELS
47/* Purely for debugging purposes. */
48extern int debug_bindings_indentation;
49#endif
This page took 0.485053 seconds and 5 git commands to generate.