Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / libcpp / include / cpp-id-data.h
blob2445186c228ce24acba7f537e5bf007ab9001ee1
1 /* Structures that hang off cpp_identifier, for PCH.
2 Copyright (C) 1986, 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
3 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
5 This program is free software; you can redistribute it and/or modify it
6 under the terms of the GNU General Public License as published by the
7 Free Software Foundation; either version 2, or (at your option) any
8 later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
19 #include "cpplib.h"
21 #if !defined (HAVE_UCHAR) && !defined (IN_GCC)
22 typedef unsigned char uchar;
23 #endif
25 #define U (const unsigned char *) /* Intended use: U"string" */
27 /* Chained list of answers to an assertion. */
28 struct answer GTY(())
30 struct answer *next;
31 unsigned int count;
32 cpp_token GTY ((length ("%h.count"))) first[1];
35 /* Each macro definition is recorded in a cpp_macro structure.
36 Variadic macros cannot occur with traditional cpp. */
37 struct cpp_macro GTY(())
39 /* Parameters, if any. */
40 cpp_hashnode ** GTY ((nested_ptr (union tree_node,
41 "%h ? CPP_HASHNODE (GCC_IDENT_TO_HT_IDENT (%h)) : NULL",
42 "%h ? HT_IDENT_TO_GCC_IDENT (HT_NODE (%h)) : NULL"),
43 length ("%h.paramc")))
44 params;
46 /* Replacement tokens (ISO) or replacement text (traditional). See
47 comment at top of cpptrad.c for how traditional function-like
48 macros are encoded. */
49 union cpp_macro_u
51 cpp_token * GTY ((tag ("0"), length ("%0.count"))) tokens;
52 const unsigned char * GTY ((tag ("1"))) text;
53 } GTY ((desc ("%1.traditional"))) exp;
55 /* Definition line number. */
56 source_location line;
58 /* Number of tokens in expansion, or bytes for traditional macros. */
59 unsigned int count;
61 /* Number of parameters. */
62 unsigned short paramc;
64 /* If a function-like macro. */
65 unsigned int fun_like : 1;
67 /* If a variadic macro. */
68 unsigned int variadic : 1;
70 /* If macro defined in system header. */
71 unsigned int syshdr : 1;
73 /* Nonzero if it has been expanded or had its existence tested. */
74 unsigned int used : 1;
76 /* Indicate which field of 'exp' is in use. */
77 unsigned int traditional : 1;