xref: /NextBSD/contrib/gcc/cp/decl.h (revision 95f7c2f56c7268d6ed9c2a56d357aeeac260363b)
1 /* Variables and structures for declaration processing.
2    Copyright (C) 1993, 2000, 2002, 2004, 2005 Free Software Foundation, Inc.
3 
4 This file is part of GCC.
5 
6 GCC 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)
9 any later version.
10 
11 GCC 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.
15 
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING.  If not, write to
18 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.  */
20 
21 /* In grokdeclarator, distinguish syntactic contexts of declarators.  */
22 enum decl_context
23 { NORMAL,			/* Ordinary declaration */
24   FUNCDEF,			/* Function definition */
25   PARM,				/* Declaration of parm before function body */
26   CATCHPARM,			/* Declaration of catch parm */
27   FIELD,			/* Declaration inside struct or union */
28   BITFIELD,			/* Likewise but with specified width */
29   TYPENAME,			/* Typename (inside cast or sizeof)  */
30   /* APPLE LOCAL blocks 6339747 */
31   BLOCKDEF,			/* Declaratin of block literal */
32   MEMFUNCDEF			/* Member function definition */
33 };
34 
35 /* We need this in here to get the decl_context definition.  */
36 extern tree grokdeclarator (const cp_declarator *,
37 			    const cp_decl_specifier_seq *,
38 			    enum decl_context, int, tree*);
39 /* APPLE LOCAL radar 4721858 */
40 extern void emit_instantiate_pending_templates (location_t *);
41 /* APPLE LOCAL blocks 6040305 (ce) */
42 extern tree grokparms (cp_parameter_declarator *first_parm, tree *parms);
43