Subversion Repositories tendra.SVN

Rev

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
#include "implement.h"
32
#pragma implement interface "basic.h"
33
 
34
 
35
/*
36
    IMPLEMENTATION OF BASIC TYPES
37
 
38
    These declarations and macro definitions give the implementation of
39
    the basic type interface.
40
*/
41
 
42
typedef BOOLEAN bool_type ;
43
typedef PTR_MEMBER ptr_mem_type ;
44
typedef PTR_MEM_FUNC ptr_mem_func_type ;
45
typedef VTABLE_1 vtable_diag ;
46
 
47
 
48
/*
49
    IMPLEMENTATION OF RUN-TIME TYPE INFORMATION INTERFACE
50
 
51
    These declarations and macro definitions give the implementation of
52
    the run-time type information tokens.
53
*/
54
 
55
typedef TYPE_INFO typeid_type ;
56
typedef BASE_INFO baseid_type ;
57
 
58
#define typeid_make( X, Y, Z )\
59
	{ ( X ), ( Y ), ( Z ), &__TCPPLUS_ti_vtbl }
60
 
61
#define typeid_basic( X )\
62
	( __TCPPLUS_typeid + ( X ) )
63
 
64
#define baseid_make( X, Y, Z, A, B )\
65
	{ ( X ), offset ( Y ), ( Z ), ( A ), ( B ) }
66
 
67
#define dyn_cast( X, Y )\
68
	( __TCPPLUS_dynamic_cast ( ( X ), ( Y ) ) )
69
 
70
 
71
/*
72
    IMPLEMENTATION OF TERMINATION FUNCTION INTERFACE
73
 
74
    These declarations and macro definitions give the implementation of
75
    the termination function tokens.
76
*/
77
 
78
typedef DTOR_LIST destr_type ;
79
 
80
#define destr_init()\
81
	__TCPPLUS_init () ;
82
 
83
#define destr_global( X, Y, Z )\
84
	{\
85
	    ( X )->arg = ( Y ) ;\
86
	    ( X )->func = ( Z ) ;\
87
	    ( X )->next = __TCPPLUS_dtors ;\
88
	    __TCPPLUS_dtors = ( X ) ;\
89
	}
90
 
91
#define destr_local( X, Y, Z )\
92
	{\
93
	    ( X )->arg = ( Y ) ;\
94
	    ( X )->func = ( Z ) ;\
95
	    ( X )->next = __TCPPLUS_except.buf [0]->dtors ;\
96
	    __TCPPLUS_except.buf [0]->dtors = ( X ) ;\
97
	}
98
 
99
#define destr_end( X )\
100
	{\
101
	    __TCPPLUS_except.buf [0]->dtors = ( X )->next ;\
102
	}
103
 
104
#define destr_null		{ NULL, NULL, NULL }
105
#define destr_ptr( X )		( ( X )->arg )
106
#define destr_atexit( X )	__TCPPLUS_atexit ( ( X ) )
107
#define destr_main		{}