Subversion Repositories tendra.SVN

Rev

Rev 2 | Details | Compare with Previous | 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 BASIC_INCLUDED
32
#define BASIC_INCLUDED
33
 
34
 
35
/*
36
    BASIC TYPES TOKEN INTERFACE
37
 
38
    These tokens describe the interface between the compiler and the
39
    library giving the basic types such as bool, pointers to members
40
    and pointers to member functions.
41
*/
42
 
43
#pragma token VARIETY bool_type # ~cpp.bool
44
#pragma token TYPE ptr_mem_type # ~cpp.pm.type
45
#pragma token TYPE ptr_mem_func_type # ~cpp.pmf.type
46
#pragma token TYPE vtable_diag # ~cpp.vtab.diag
47
 
48
#pragma interface bool_type ptr_mem_type ptr_mem_func_type vtable_diag
49
 
50
 
51
/*
52
    RUN-TIME TYPE INFORMATION TOKEN INTERFACE
53
 
54
    These tokens describe the interface between the compiler and the
55
    library used in the run-time type information routines.
56
*/
57
 
58
#pragma extend interface "offset.h"
59
 
60
#pragma token TYPE typeid_type # ~cpp.typeid.type
61
#pragma token TYPE baseid_type # ~cpp.baseid.type
62
 
63
#pragma token PROC ( INTEGER, EXP : char * :, EXP : baseid_type * : )\
64
    EXP : typeid_type : typeid_make # ~cpp.typeid.make
65
 
66
#pragma token PROC ( INTEGER )\
67
    EXP : typeid_type * : typeid_basic # ~cpp.typeid.basic
68
 
69
#pragma token PROC ( EXP : typeid_type * :, EXP : OFFSET :,\
70
    EXP : baseid_type * :, INTEGER, INTEGER )\
71
    EXP : baseid_type : baseid_make # ~cpp.baseid.make
72
 
73
#pragma token PROC ( EXP : VTABLE ** :, EXP : typeid_type * : )\
74
    EXP : void * : dyn_cast # ~cpp.dynam.cast
75
 
76
#pragma interface typeid_type typeid_make typeid_basic baseid_make dyn_cast
77
 
78
 
79
/*
80
    TERMINATION FUNCTION TOKEN INTERFACE
81
 
82
    These tokens describe interface between the compiler and the library
83
    used in termination functions.
84
*/
85
 
86
#pragma token TYPE destr_type # ~cpp.destr.type
87
#pragma token PROC () STATEMENT destr_init # ~cpp.destr.init
88
#pragma token PROC ( EXP : destr_type * :, EXP : CLASS * :,\
89
    EXP : DESTRUCTOR : ) STATEMENT destr_global # ~cpp.destr.global
90
#pragma token PROC ( EXP : destr_type * :, EXP : CLASS * :,\
91
    EXP : DESTRUCTOR : ) STATEMENT destr_local # ~cpp.destr.local
92
#pragma token PROC ( EXP : destr_type * : )\
93
    STATEMENT destr_end # ~cpp.destr.end
94
#pragma token EXP const : destr_type : destr_null # ~cpp.destr.null
95
#pragma token PROC ( EXP : destr_type * : )\
96
    EXP : CLASS * : destr_ptr # ~cpp.destr.ptr
97
#pragma token FUNC int ( EXITER ) : destr_atexit # ~cpp.destr.atexit
98
#pragma token STATEMENT destr_main # ~cpp.start
99
 
100
#pragma interface destr_type destr_init destr_global destr_local
101
#pragma interface destr_end destr_null destr_ptr destr_atexit destr_main
102
 
103
 
104
#endif