2 |
7u83 |
1 |
/*
|
|
|
2 |
Crown Copyright (c) 1997
|
7 |
7u83 |
3 |
|
2 |
7u83 |
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:-
|
7 |
7u83 |
12 |
|
2 |
7u83 |
13 |
(1) Its Recipients shall ensure that this Notice is
|
|
|
14 |
reproduced upon any copies or amended versions of it;
|
7 |
7u83 |
15 |
|
2 |
7u83 |
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;
|
7 |
7u83 |
19 |
|
2 |
7u83 |
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;
|
7 |
7u83 |
23 |
|
2 |
7u83 |
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 errors (VERSION 1.0)
|
|
|
32 |
BY calculus (VERSION 1.2)
|
|
|
33 |
*/
|
|
|
34 |
|
|
|
35 |
#ifndef PARAM_OPS_H_INCLUDED
|
|
|
36 |
#define PARAM_OPS_H_INCLUDED
|
|
|
37 |
|
|
|
38 |
/* Operations for union PARAM */
|
|
|
39 |
|
7 |
7u83 |
40 |
#define TAG_param(P) ((unsigned) 0)
|
2 |
7u83 |
41 |
|
|
|
42 |
|
|
|
43 |
/* Operations for component type of union PARAM */
|
|
|
44 |
|
7 |
7u83 |
45 |
#define param_type(P) (CHECK_NULL(P) + 0)
|
2 |
7u83 |
46 |
|
|
|
47 |
|
|
|
48 |
/* Operations for component name of union PARAM */
|
|
|
49 |
|
7 |
7u83 |
50 |
#define param_name(P) (CHECK_NULL(P) + 1)
|
2 |
7u83 |
51 |
|
|
|
52 |
|
|
|
53 |
/* Operations for component number of union PARAM */
|
|
|
54 |
|
7 |
7u83 |
55 |
#define param_number(P) (CHECK_NULL(P) + 2)
|
2 |
7u83 |
56 |
|
|
|
57 |
|
|
|
58 |
/* Operations for field basic of union PARAM */
|
|
|
59 |
|
7 |
7u83 |
60 |
#define param_basic_tag ((unsigned)0)
|
|
|
61 |
#define IS_param_basic(P) 1
|
2 |
7u83 |
62 |
|
|
|
63 |
|
7 |
7u83 |
64 |
#define MAKE_param_basic(type_, name_, number_, errors_param)\
|
2 |
7u83 |
65 |
{\
|
7 |
7u83 |
66 |
errors *x62_ = GEN_errors(3, TYPEID_param);\
|
|
|
67 |
COPY_name(x62_ + 0, (type_));\
|
|
|
68 |
COPY_string(x62_ + 1, (name_));\
|
|
|
69 |
COPY_int(x62_ + 2, (number_));\
|
|
|
70 |
(errors_param) = x62_;\
|
2 |
7u83 |
71 |
}
|
|
|
72 |
|
7 |
7u83 |
73 |
#define DECONS_param_basic(type_, name_, number_, errors_param)\
|
2 |
7u83 |
74 |
{\
|
7 |
7u83 |
75 |
errors *x63_ = (errors_param);\
|
|
|
76 |
(type_) = DEREF_name(x63_ + 0);\
|
|
|
77 |
(name_) = DEREF_string(x63_ + 1);\
|
|
|
78 |
(number_) = DEREF_int(x63_ + 2);\
|
2 |
7u83 |
79 |
}
|
|
|
80 |
|
7 |
7u83 |
81 |
#define DESTROY_param_basic(destroyer_, type_, name_, number_, errors_param)\
|
2 |
7u83 |
82 |
{\
|
7 |
7u83 |
83 |
errors *x64_ = (errors_param);\
|
|
|
84 |
(type_) = DEREF_name(x64_ + 0);\
|
|
|
85 |
(name_) = DEREF_string(x64_ + 1);\
|
|
|
86 |
(number_) = DEREF_int(x64_ + 2);\
|
|
|
87 |
(destroyer_)(x64_, (unsigned)3);\
|
2 |
7u83 |
88 |
}
|
|
|
89 |
|
|
|
90 |
|
|
|
91 |
#endif
|