2 |
7u83 |
1 |
/*
|
|
|
2 |
Crown Copyright (c) 1997
|
6 |
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:-
|
6 |
7u83 |
12 |
|
2 |
7u83 |
13 |
(1) Its Recipients shall ensure that this Notice is
|
|
|
14 |
reproduced upon any copies or amended versions of it;
|
6 |
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;
|
6 |
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;
|
6 |
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 MAP_OPS_H_INCLUDED
|
|
|
36 |
#define MAP_OPS_H_INCLUDED
|
|
|
37 |
|
|
|
38 |
/* Operations for union MAP */
|
|
|
39 |
|
6 |
7u83 |
40 |
#define TAG_map(P) ((unsigned) 0)
|
2 |
7u83 |
41 |
|
|
|
42 |
|
|
|
43 |
/* Operations for component key of union MAP */
|
|
|
44 |
|
6 |
7u83 |
45 |
#define map_key(P) (CHECK_NULL(P) + 0)
|
2 |
7u83 |
46 |
|
|
|
47 |
|
|
|
48 |
/* Operations for component msg of union MAP */
|
|
|
49 |
|
6 |
7u83 |
50 |
#define map_msg(P) (CHECK_NULL(P) + 1)
|
2 |
7u83 |
51 |
|
|
|
52 |
|
|
|
53 |
/* Operations for component alt_msg of union MAP */
|
|
|
54 |
|
6 |
7u83 |
55 |
#define map_alt_msg(P) (CHECK_NULL(P) + 2)
|
2 |
7u83 |
56 |
|
|
|
57 |
|
|
|
58 |
/* Operations for field basic of union MAP */
|
|
|
59 |
|
6 |
7u83 |
60 |
#define map_basic_tag ((unsigned)0)
|
|
|
61 |
#define IS_map_basic(P) 1
|
2 |
7u83 |
62 |
|
|
|
63 |
|
6 |
7u83 |
64 |
#define MAKE_map_basic(key_, msg_, alt_msg_, errors_map)\
|
2 |
7u83 |
65 |
{\
|
6 |
7u83 |
66 |
errors *x59_ = GEN_errors(3, TYPEID_map);\
|
|
|
67 |
COPY_name(x59_ + 0, (key_));\
|
|
|
68 |
COPY_list(x59_ + 1, (msg_));\
|
|
|
69 |
COPY_list(x59_ + 2, (alt_msg_));\
|
|
|
70 |
(errors_map) = x59_;\
|
2 |
7u83 |
71 |
}
|
|
|
72 |
|
6 |
7u83 |
73 |
#define DECONS_map_basic(key_, msg_, alt_msg_, errors_map)\
|
2 |
7u83 |
74 |
{\
|
6 |
7u83 |
75 |
errors *x60_ = (errors_map);\
|
|
|
76 |
(key_) = DEREF_name(x60_ + 0);\
|
|
|
77 |
(msg_) = DEREF_list(x60_ + 1);\
|
|
|
78 |
(alt_msg_) = DEREF_list(x60_ + 2);\
|
2 |
7u83 |
79 |
}
|
|
|
80 |
|
6 |
7u83 |
81 |
#define DESTROY_map_basic(destroyer_, key_, msg_, alt_msg_, errors_map)\
|
2 |
7u83 |
82 |
{\
|
6 |
7u83 |
83 |
errors *x61_ = (errors_map);\
|
|
|
84 |
(key_) = DEREF_name(x61_ + 0);\
|
|
|
85 |
(msg_) = DEREF_list(x61_ + 1);\
|
|
|
86 |
(alt_msg_) = DEREF_list(x61_ + 2);\
|
|
|
87 |
(destroyer_)(x61_, (unsigned)3);\
|
2 |
7u83 |
88 |
}
|
|
|
89 |
|
|
|
90 |
|
|
|
91 |
#endif
|