2 |
7u83 |
1 |
/*
|
|
|
2 |
Crown Copyright (c) 1997, 1998
|
|
|
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 |
AUTOMATICALLY GENERATED FROM ALGEBRA c_class (VERSION 1.1)
|
|
|
32 |
BY calculus (VERSION 1.2)
|
|
|
33 |
*/
|
|
|
34 |
|
|
|
35 |
#ifndef CTYPE_OPS_H_INCLUDED
|
|
|
36 |
#define CTYPE_OPS_H_INCLUDED
|
|
|
37 |
|
|
|
38 |
/* Operations for union CLASS_TYPE */
|
|
|
39 |
|
7 |
7u83 |
40 |
#define TAG_ctype(P) ((unsigned) 0)
|
2 |
7u83 |
41 |
|
|
|
42 |
|
|
|
43 |
/* Operations for component name of union CLASS_TYPE */
|
|
|
44 |
|
7 |
7u83 |
45 |
#define ctype_name(P) (CHECK_NULL(P) + 0)
|
2 |
7u83 |
46 |
|
|
|
47 |
|
|
|
48 |
/* Operations for component info of union CLASS_TYPE */
|
|
|
49 |
|
7 |
7u83 |
50 |
#define ctype_info(P) (CHECK_NULL(P) + 1)
|
2 |
7u83 |
51 |
|
|
|
52 |
|
|
|
53 |
/* Operations for component usage of union CLASS_TYPE */
|
|
|
54 |
|
7 |
7u83 |
55 |
#define ctype_usage(P) (CHECK_NULL(P) + 2)
|
2 |
7u83 |
56 |
|
|
|
57 |
|
|
|
58 |
/* Operations for component member of union CLASS_TYPE */
|
|
|
59 |
|
7 |
7u83 |
60 |
#define ctype_member(P) (CHECK_NULL(P) + 3)
|
2 |
7u83 |
61 |
|
|
|
62 |
|
|
|
63 |
/* Operations for component base of union CLASS_TYPE */
|
|
|
64 |
|
7 |
7u83 |
65 |
#define ctype_base(P) (CHECK_NULL(P) + 4)
|
2 |
7u83 |
66 |
|
|
|
67 |
|
|
|
68 |
/* Operations for component no_bases of union CLASS_TYPE */
|
|
|
69 |
|
7 |
7u83 |
70 |
#define ctype_no_bases(P) (CHECK_NULL(P) + 5)
|
2 |
7u83 |
71 |
|
|
|
72 |
|
|
|
73 |
/* Operations for component prev of union CLASS_TYPE */
|
|
|
74 |
|
7 |
7u83 |
75 |
#define ctype_prev(P) (CHECK_NULL(P) + 6)
|
2 |
7u83 |
76 |
|
|
|
77 |
|
|
|
78 |
/* Operations for component form of union CLASS_TYPE */
|
|
|
79 |
|
7 |
7u83 |
80 |
#define ctype_form(P) (CHECK_NULL(P) + 7)
|
2 |
7u83 |
81 |
|
|
|
82 |
|
|
|
83 |
/* Operations for component constr of union CLASS_TYPE */
|
|
|
84 |
|
7 |
7u83 |
85 |
#define ctype_constr(P) (CHECK_NULL(P) + 8)
|
2 |
7u83 |
86 |
|
|
|
87 |
|
|
|
88 |
/* Operations for component destr of union CLASS_TYPE */
|
|
|
89 |
|
7 |
7u83 |
90 |
#define ctype_destr(P) (CHECK_NULL(P) + 9)
|
2 |
7u83 |
91 |
|
|
|
92 |
|
|
|
93 |
/* Operations for component virt of union CLASS_TYPE */
|
|
|
94 |
|
7 |
7u83 |
95 |
#define ctype_virt(P) (CHECK_NULL(P) + 10)
|
2 |
7u83 |
96 |
|
|
|
97 |
|
|
|
98 |
/* Operations for component vbase of union CLASS_TYPE */
|
|
|
99 |
|
7 |
7u83 |
100 |
#define ctype_vbase(P) (CHECK_NULL(P) + 11)
|
2 |
7u83 |
101 |
|
|
|
102 |
|
|
|
103 |
/* Operations for component conv of union CLASS_TYPE */
|
|
|
104 |
|
7 |
7u83 |
105 |
#define ctype_conv(P) (CHECK_NULL(P) + 12)
|
2 |
7u83 |
106 |
|
|
|
107 |
|
|
|
108 |
/* Operations for component chums of union CLASS_TYPE */
|
|
|
109 |
|
7 |
7u83 |
110 |
#define ctype_chums(P) (CHECK_NULL(P) + 13)
|
2 |
7u83 |
111 |
|
|
|
112 |
|
|
|
113 |
/* Operations for component pals of union CLASS_TYPE */
|
|
|
114 |
|
7 |
7u83 |
115 |
#define ctype_pals(P) (CHECK_NULL(P) + 14)
|
2 |
7u83 |
116 |
|
|
|
117 |
|
|
|
118 |
/* Operations for component nest of union CLASS_TYPE */
|
|
|
119 |
|
7 |
7u83 |
120 |
#define ctype_nest(P) (CHECK_NULL(P) + 15)
|
2 |
7u83 |
121 |
|
|
|
122 |
|
|
|
123 |
/* Operations for component tok1 of union CLASS_TYPE */
|
|
|
124 |
|
7 |
7u83 |
125 |
#define ctype_tok1(P) (CHECK_NULL(P) + 16)
|
2 |
7u83 |
126 |
|
|
|
127 |
|
|
|
128 |
/* Operations for component tok2 of union CLASS_TYPE */
|
|
|
129 |
|
7 |
7u83 |
130 |
#define ctype_tok2(P) (CHECK_NULL(P) + 17)
|
2 |
7u83 |
131 |
|
|
|
132 |
|
|
|
133 |
/* Operations for field basic of union CLASS_TYPE */
|
|
|
134 |
|
7 |
7u83 |
135 |
#define ctype_basic_tag ((unsigned)0)
|
|
|
136 |
#define IS_ctype_basic(P) 1
|
2 |
7u83 |
137 |
|
|
|
138 |
|
7 |
7u83 |
139 |
#define MAKE_ctype_basic(name_, info_, usage_, member_, base_, no_bases_, prev_, c_class_ctype)\
|
2 |
7u83 |
140 |
{\
|
7 |
7u83 |
141 |
c_class *x199_ = GEN_c_class(18, TYPEID_ctype);\
|
|
|
142 |
COPY_id(x199_ + 0, (name_));\
|
|
|
143 |
COPY_cinfo(x199_ + 1, (info_));\
|
|
|
144 |
COPY_cusage(x199_ + 2, (usage_));\
|
|
|
145 |
COPY_nspace(x199_ + 3, (member_));\
|
|
|
146 |
COPY_graph(x199_ + 4, (base_));\
|
|
|
147 |
COPY_unsigned(x199_ + 5, (no_bases_));\
|
|
|
148 |
COPY_type(x199_ + 6, (prev_));\
|
|
|
149 |
COPY_type(x199_ + 7, NULL_type);\
|
|
|
150 |
COPY_id(x199_ + 8, NULL_id);\
|
|
|
151 |
COPY_id(x199_ + 9, NULL_id);\
|
|
|
152 |
COPY_virt(x199_ + 10, NULL_virt);\
|
|
|
153 |
COPY_list(x199_ + 11, NULL_list ( GRAPH ));\
|
|
|
154 |
COPY_list(x199_ + 12, NULL_list ( IDENTIFIER ));\
|
|
|
155 |
COPY_list(x199_ + 13, NULL_list ( CLASS_TYPE ));\
|
|
|
156 |
COPY_list(x199_ + 14, NULL_list ( IDENTIFIER ));\
|
|
|
157 |
COPY_list(x199_ + 15, NULL_list ( IDENTIFIER ));\
|
|
|
158 |
COPY_ulong(x199_ + 16, LINK_NONE);\
|
|
|
159 |
COPY_ulong(x199_ + 17, LINK_NONE);\
|
|
|
160 |
(c_class_ctype) = x199_;\
|
2 |
7u83 |
161 |
}
|
|
|
162 |
|
7 |
7u83 |
163 |
#define DECONS_ctype_basic(name_, info_, usage_, member_, base_, no_bases_, prev_, form_, constr_, destr_, virt_, vbase_, conv_, chums_, pals_, nest_, tok1_, tok2_, c_class_ctype)\
|
2 |
7u83 |
164 |
{\
|
7 |
7u83 |
165 |
c_class *x200_ = (c_class_ctype);\
|
|
|
166 |
(name_) = DEREF_id(x200_ + 0);\
|
|
|
167 |
(info_) = DEREF_cinfo(x200_ + 1);\
|
|
|
168 |
(usage_) = DEREF_cusage(x200_ + 2);\
|
|
|
169 |
(member_) = DEREF_nspace(x200_ + 3);\
|
|
|
170 |
(base_) = DEREF_graph(x200_ + 4);\
|
|
|
171 |
(no_bases_) = DEREF_unsigned(x200_ + 5);\
|
|
|
172 |
(prev_) = DEREF_type(x200_ + 6);\
|
|
|
173 |
(form_) = DEREF_type(x200_ + 7);\
|
|
|
174 |
(constr_) = DEREF_id(x200_ + 8);\
|
|
|
175 |
(destr_) = DEREF_id(x200_ + 9);\
|
|
|
176 |
(virt_) = DEREF_virt(x200_ + 10);\
|
|
|
177 |
(vbase_) = DEREF_list(x200_ + 11);\
|
|
|
178 |
(conv_) = DEREF_list(x200_ + 12);\
|
|
|
179 |
(chums_) = DEREF_list(x200_ + 13);\
|
|
|
180 |
(pals_) = DEREF_list(x200_ + 14);\
|
|
|
181 |
(nest_) = DEREF_list(x200_ + 15);\
|
|
|
182 |
(tok1_) = DEREF_ulong(x200_ + 16);\
|
|
|
183 |
(tok2_) = DEREF_ulong(x200_ + 17);\
|
2 |
7u83 |
184 |
}
|
|
|
185 |
|
7 |
7u83 |
186 |
#define DESTROY_ctype_basic(destroyer_, name_, info_, usage_, member_, base_, no_bases_, prev_, form_, constr_, destr_, virt_, vbase_, conv_, chums_, pals_, nest_, tok1_, tok2_, c_class_ctype)\
|
2 |
7u83 |
187 |
{\
|
7 |
7u83 |
188 |
c_class *x201_ = (c_class_ctype);\
|
|
|
189 |
(name_) = DEREF_id(x201_ + 0);\
|
|
|
190 |
(info_) = DEREF_cinfo(x201_ + 1);\
|
|
|
191 |
(usage_) = DEREF_cusage(x201_ + 2);\
|
|
|
192 |
(member_) = DEREF_nspace(x201_ + 3);\
|
|
|
193 |
(base_) = DEREF_graph(x201_ + 4);\
|
|
|
194 |
(no_bases_) = DEREF_unsigned(x201_ + 5);\
|
|
|
195 |
(prev_) = DEREF_type(x201_ + 6);\
|
|
|
196 |
(form_) = DEREF_type(x201_ + 7);\
|
|
|
197 |
(constr_) = DEREF_id(x201_ + 8);\
|
|
|
198 |
(destr_) = DEREF_id(x201_ + 9);\
|
|
|
199 |
(virt_) = DEREF_virt(x201_ + 10);\
|
|
|
200 |
(vbase_) = DEREF_list(x201_ + 11);\
|
|
|
201 |
(conv_) = DEREF_list(x201_ + 12);\
|
|
|
202 |
(chums_) = DEREF_list(x201_ + 13);\
|
|
|
203 |
(pals_) = DEREF_list(x201_ + 14);\
|
|
|
204 |
(nest_) = DEREF_list(x201_ + 15);\
|
|
|
205 |
(tok1_) = DEREF_ulong(x201_ + 16);\
|
|
|
206 |
(tok2_) = DEREF_ulong(x201_ + 17);\
|
|
|
207 |
(destroyer_)(x201_, (unsigned)18);\
|
2 |
7u83 |
208 |
}
|
|
|
209 |
|
|
|
210 |
|
|
|
211 |
#endif
|