decl.h revision 169689
172209Sasmodai/* Variables and structures for declaration processing.
272209Sasmodai   Copyright (C) 1993, 2000, 2002, 2004, 2005 Free Software Foundation, Inc.
372209Sasmodai
472209SasmodaiThis file is part of GCC.
572209Sasmodai
672209SasmodaiGCC is free software; you can redistribute it and/or modify
772209Sasmodaiit under the terms of the GNU General Public License as published by
872209Sasmodaithe Free Software Foundation; either version 2, or (at your option)
972209Sasmodaiany later version.
1072277Sache
1172329SacheGCC is distributed in the hope that it will be useful,
1272209Sasmodaibut 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 GCC; see the file COPYING.  If not, write to
18the Free Software Foundation, 51 Franklin Street, Fifth Floor,
19Boston, MA 02110-1301, USA.  */
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 */
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  MEMFUNCDEF			/* Member function definition */
31};
32
33/* We need this in here to get the decl_context definition.  */
34extern tree grokdeclarator (const cp_declarator *,
35			    const cp_decl_specifier_seq *,
36			    enum decl_context, int, tree*);
37