Subversion Repositories tendra.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
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 CONSTRUCT_INCLUDED
32
#define CONSTRUCT_INCLUDED
33
 
34
 
35
/*
36
    CONSTRUCTOR AND DESTRUCTOR FUNCTION DECLARATIONS
37
 
38
    The routines in this module are concerned with constructors, destructors
39
    and conversion functions.
40
*/
41
 
42
extern NAMESPACE ctor_begin PROTO_S ( ( void ) ) ;
43
extern EXP ctor_end PROTO_S ( ( NAMESPACE, EXP, int ) ) ;
44
extern void ctor_initialise PROTO_S ( ( NAMESPACE, IDENTIFIER, EXP ) ) ;
45
extern EXP ctor_none PROTO_S ( ( EXP, EXP * ) ) ;
46
extern EXP ctor_postlude PROTO_S ( ( EXP, EXP ) ) ;
47
extern EXP copy_ctor PROTO_S ( ( EXP, int ) ) ;
48
extern EXP except_postlude PROTO_S ( ( IDENTIFIER ) ) ;
49
 
50
extern TYPE check_constr PROTO_S ( ( TYPE, IDENTIFIER, NAMESPACE ) ) ;
51
extern TYPE check_destr PROTO_S ( ( TYPE, IDENTIFIER, NAMESPACE ) ) ;
52
extern TYPE check_conv PROTO_S ( ( TYPE, IDENTIFIER ) ) ;
53
extern TYPE inferred_return PROTO_S ( ( TYPE, IDENTIFIER ) ) ;
54
 
55
extern IDENTIFIER find_operator PROTO_S ( ( CLASS_TYPE, int ) ) ;
56
extern IDENTIFIER make_pseudo_destr PROTO_S ( ( IDENTIFIER, BASE_TYPE, IDENTIFIER, BASE_TYPE ) ) ;
57
extern CLASS_INFO implicit_decl PROTO_S ( ( CLASS_TYPE, CLASS_INFO, DECL_SPEC ) ) ;
58
extern void implicit_defn PROTO_S ( ( IDENTIFIER, int ) ) ;
59
 
60
extern EXP init_default PROTO_S ( ( TYPE, EXP *, int, int, ERROR * ) ) ;
61
extern EXP convert_constr PROTO_S ( ( TYPE, LIST ( EXP ), ERROR *, unsigned ) ) ;
62
extern EXP convert_conv_aux PROTO_S ( ( TYPE, EXP, ERROR *, unsigned ) ) ;
63
extern EXP convert_conv PROTO_S ( ( TYPE, EXP, ERROR *, unsigned ) ) ;
64
extern EXP convert_gen PROTO_S ( ( unsigned, EXP, ERROR * ) ) ;
65
extern EXP apply_constr PROTO_S ( ( IDENTIFIER, LIST ( EXP ) ) ) ;
66
extern EXP add_constr_args PROTO_S ( ( EXP, CLASS_TYPE, int ) ) ;
67
extern unsigned extra_constr_args PROTO_S ( ( IDENTIFIER, CLASS_TYPE ) ) ;
68
extern EXP apply_trivial_func PROTO_S ( ( IDENTIFIER, LIST ( EXP ) ) ) ;
69
extern EXP trivial_destr PROTO_S ( ( EXP ) ) ;
70
extern int have_constr_expl ;
71
extern int have_conv_expl ;
72
 
73
 
74
/*
75
    IMPLICIT CONSTRUCTOR IDENTIFIERS
76
 
77
    These values are used to represent the four member functions which
78
    may be implicitly declared for a class - the default constructor, the
79
    copy constructor, the default destructor and the copy assignment
80
    operator.  A dummy value for explicit constructors is provided.
81
*/
82
 
83
#define DEFAULT_USR			0
84
#define DEFAULT_CONSTR			1
85
#define DEFAULT_COPY			2
86
#define DEFAULT_DESTR			3
87
#define DEFAULT_ASSIGN			4
88
#define DEFAULT_DELETE			5
89
#define DEFAULT_PRELUDE			6
90
 
91
 
92
/*
93
    EXTRA CONSTRUCT ARGUMENT VALUES
94
 
95
    These values represent the extra argument which are passed to
96
    constructors and destructors.
97
*/
98
 
99
#define EXTRA_NONE			0
100
#define EXTRA_CONSTR			1
101
 
102
#define EXTRA_DELETE			1
103
#define EXTRA_DESTR			2
104
 
105
 
106
#endif