2 |
7u83 |
1 |
/*
|
|
|
2 |
Crown Copyright (c) 1997
|
|
|
3 |
|
|
|
4 |
This TenDRA(r) Computer Program is subject to Copyright
|
|
|
5 |
owned by the United Kingdom Secretary of State for Defence
|
|
|
6 |
acting through the Defence Evaluation and Research Agency
|
|
|
7 |
(DERA). It is made available to Recipients with a
|
|
|
8 |
royalty-free licence for its use, reproduction, transfer
|
|
|
9 |
to other parties and amendment for any purpose not excluding
|
|
|
10 |
product development provided that any such use et cetera
|
|
|
11 |
shall be deemed to be acceptance of the following conditions:-
|
|
|
12 |
|
|
|
13 |
(1) Its Recipients shall ensure that this Notice is
|
|
|
14 |
reproduced upon any copies or amended versions of it;
|
|
|
15 |
|
|
|
16 |
(2) Any amended version of it shall be clearly marked to
|
|
|
17 |
show both the nature of and the organisation responsible
|
|
|
18 |
for the relevant amendment or amendments;
|
|
|
19 |
|
|
|
20 |
(3) Its onward transfer from a recipient to another
|
|
|
21 |
party shall be deemed to be that party's acceptance of
|
|
|
22 |
these conditions;
|
|
|
23 |
|
|
|
24 |
(4) DERA gives no warranty or assurance as to its
|
|
|
25 |
quality or suitability for any purpose and DERA accepts
|
|
|
26 |
no liability whatsoever in relation to any use to which
|
|
|
27 |
it may be put.
|
|
|
28 |
*/
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
#ifndef IDENTIFIER_INCLUDED
|
|
|
32 |
#define IDENTIFIER_INCLUDED
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
/*
|
|
|
36 |
IDENTIFIER DECLARATIONS
|
|
|
37 |
|
|
|
38 |
The routines in this module are concerned with the construction and
|
|
|
39 |
manipulation of identifiers.
|
|
|
40 |
*/
|
|
|
41 |
|
|
|
42 |
extern void use_id PROTO_S ( ( IDENTIFIER, int ) ) ;
|
|
|
43 |
extern void use_func_id PROTO_S ( ( IDENTIFIER, int, int ) ) ;
|
|
|
44 |
extern void reuse_id PROTO_S ( ( IDENTIFIER, int ) ) ;
|
|
|
45 |
extern void define_id PROTO_S ( ( IDENTIFIER ) ) ;
|
|
|
46 |
extern IDENTIFIER chase_alias PROTO_S ( ( IDENTIFIER ) ) ;
|
|
|
47 |
extern EXP make_id_exp PROTO_S ( ( IDENTIFIER ) ) ;
|
|
|
48 |
extern EXP implicit_id_exp PROTO_S ( ( IDENTIFIER, int ) ) ;
|
|
|
49 |
extern EXP make_this_exp PROTO_S ( ( void ) ) ;
|
|
|
50 |
extern EXP make_this_ref PROTO_S ( ( NAMESPACE * ) ) ;
|
|
|
51 |
extern EXP make_this_decl PROTO_S ( ( IDENTIFIER ) ) ;
|
|
|
52 |
extern int is_this_exp PROTO_S ( ( EXP ) ) ;
|
|
|
53 |
extern IDENTIFIER this_param PROTO_S ( ( IDENTIFIER, int ) ) ;
|
|
|
54 |
extern EXP make_ellipsis_exp PROTO_S ( ( void ) ) ;
|
|
|
55 |
extern void make_ellipsis_decl PROTO_S ( ( void ) ) ;
|
|
|
56 |
extern IDENTIFIER ellipsis_param PROTO_S ( ( IDENTIFIER ) ) ;
|
|
|
57 |
extern IDENTIFIER report_ambiguous PROTO_S ( ( IDENTIFIER, int, int, int ) ) ;
|
|
|
58 |
extern DECL_SPEC find_ambig_dspec PROTO_S ( ( LIST ( IDENTIFIER ) ) ) ;
|
|
|
59 |
extern ERROR check_id_name PROTO_S ( ( IDENTIFIER, int ) ) ;
|
|
|
60 |
extern IDENTIFIER declare_func PROTO_S ( ( DECL_SPEC, IDENTIFIER, TYPE, TYPE *, int, LIST ( TYPE ) ) ) ;
|
|
|
61 |
extern QUALIFIER crt_id_qualifier ;
|
|
|
62 |
extern int crt_templ_qualifier ;
|
|
|
63 |
extern int suppress_usage ;
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
/*
|
|
|
67 |
IDENTIFIER CONTEXTS
|
|
|
68 |
|
|
|
69 |
These values are used to indicate the contexts for an identifier
|
|
|
70 |
to check_id_name.
|
|
|
71 |
*/
|
|
|
72 |
|
|
|
73 |
#define CONTEXT_OBJECT 0
|
|
|
74 |
#define CONTEXT_FUNCTION 1
|
|
|
75 |
#define CONTEXT_PARAMETER 2
|
|
|
76 |
#define CONTEXT_MEMBER 3
|
|
|
77 |
#define CONTEXT_FUNC_MEMBER 4
|
|
|
78 |
#define CONTEXT_CLASS 5
|
|
|
79 |
#define CONTEXT_ENUM 6
|
|
|
80 |
#define CONTEXT_ENUMERATOR 7
|
|
|
81 |
#define CONTEXT_TEMPL_PARAM 8
|
|
|
82 |
#define CONTEXT_WEAK_PARAM 9
|
|
|
83 |
|
|
|
84 |
|
|
|
85 |
#endif
|