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 |
AUTOMATICALLY GENERATED FROM ALGEBRA tdf (VERSION 1.0)
|
|
|
32 |
BY calculus (VERSION 1.2)
|
|
|
33 |
*/
|
|
|
34 |
|
|
|
35 |
#ifndef SORT_OPS_H_INCLUDED
|
|
|
36 |
#define SORT_OPS_H_INCLUDED
|
|
|
37 |
|
|
|
38 |
/* Operations for union SORT */
|
|
|
39 |
|
|
|
40 |
#define TAG_sort( P ) ( ( unsigned ) 0 )
|
|
|
41 |
|
|
|
42 |
|
|
|
43 |
/* Operations for component name of union SORT */
|
|
|
44 |
|
|
|
45 |
#define sort_name( P ) ( CHECK_NULL ( P ) + 0 )
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
/* Operations for component caps of union SORT */
|
|
|
49 |
|
|
|
50 |
#define sort_caps( P ) ( CHECK_NULL ( P ) + 1 )
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
/* Operations for component link of union SORT */
|
|
|
54 |
|
|
|
55 |
#define sort_link( P ) ( CHECK_NULL ( P ) + 2 )
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
/* Operations for component unit of union SORT */
|
|
|
59 |
|
|
|
60 |
#define sort_unit( P ) ( CHECK_NULL ( P ) + 3 )
|
|
|
61 |
|
|
|
62 |
|
|
|
63 |
/* Operations for component code of union SORT */
|
|
|
64 |
|
|
|
65 |
#define sort_code( P ) ( CHECK_NULL ( P ) + 4 )
|
|
|
66 |
|
|
|
67 |
|
|
|
68 |
/* Operations for component mark of union SORT */
|
|
|
69 |
|
|
|
70 |
#define sort_mark( P ) ( CHECK_NULL ( P ) + 5 )
|
|
|
71 |
|
|
|
72 |
|
|
|
73 |
/* Operations for component special of union SORT */
|
|
|
74 |
|
|
|
75 |
#define sort_special( P ) ( CHECK_NULL ( P ) + 6 )
|
|
|
76 |
|
|
|
77 |
|
|
|
78 |
/* Operations for component edge of union SORT */
|
|
|
79 |
|
|
|
80 |
#define sort_edge( P ) ( CHECK_NULL ( P ) + 7 )
|
|
|
81 |
|
|
|
82 |
|
|
|
83 |
/* Operations for component info of union SORT */
|
|
|
84 |
|
|
|
85 |
#define sort_info( P ) ( CHECK_NULL ( P ) + 8 )
|
|
|
86 |
|
|
|
87 |
|
|
|
88 |
/* Operations for field basic of union SORT */
|
|
|
89 |
|
|
|
90 |
#define sort_basic_tag ( ( unsigned ) 0 )
|
|
|
91 |
#define IS_sort_basic( P ) 1
|
|
|
92 |
|
|
|
93 |
|
|
|
94 |
#define MAKE_sort_basic( name_, caps_, link_, unit_, code_, mark_, special_, edge_, info_, tdf_sort )\
|
|
|
95 |
{\
|
|
|
96 |
tdf *x93_ = GEN_tdf ( 9, TYPEID_sort ) ;\
|
|
|
97 |
COPY_string ( x93_ + 0, ( name_ ) ) ;\
|
|
|
98 |
COPY_string ( x93_ + 1, ( caps_ ) ) ;\
|
|
|
99 |
COPY_string ( x93_ + 2, ( link_ ) ) ;\
|
|
|
100 |
COPY_string ( x93_ + 3, ( unit_ ) ) ;\
|
|
|
101 |
COPY_int ( x93_ + 4, ( code_ ) ) ;\
|
|
|
102 |
COPY_int ( x93_ + 5, ( mark_ ) ) ;\
|
|
|
103 |
COPY_int ( x93_ + 6, ( special_ ) ) ;\
|
|
|
104 |
COPY_int ( x93_ + 7, ( edge_ ) ) ;\
|
|
|
105 |
COPY_info ( x93_ + 8, ( info_ ) ) ;\
|
|
|
106 |
( tdf_sort ) = x93_ ;\
|
|
|
107 |
}
|
|
|
108 |
|
|
|
109 |
#define DECONS_sort_basic( name_, caps_, link_, unit_, code_, mark_, special_, edge_, info_, tdf_sort )\
|
|
|
110 |
{\
|
|
|
111 |
tdf *x94_ = ( tdf_sort ) ;\
|
|
|
112 |
( name_ ) = DEREF_string ( x94_ + 0 ) ;\
|
|
|
113 |
( caps_ ) = DEREF_string ( x94_ + 1 ) ;\
|
|
|
114 |
( link_ ) = DEREF_string ( x94_ + 2 ) ;\
|
|
|
115 |
( unit_ ) = DEREF_string ( x94_ + 3 ) ;\
|
|
|
116 |
( code_ ) = DEREF_int ( x94_ + 4 ) ;\
|
|
|
117 |
( mark_ ) = DEREF_int ( x94_ + 5 ) ;\
|
|
|
118 |
( special_ ) = DEREF_int ( x94_ + 6 ) ;\
|
|
|
119 |
( edge_ ) = DEREF_int ( x94_ + 7 ) ;\
|
|
|
120 |
( info_ ) = DEREF_info ( x94_ + 8 ) ;\
|
|
|
121 |
}
|
|
|
122 |
|
|
|
123 |
#define DESTROY_sort_basic( destroyer_, name_, caps_, link_, unit_, code_, mark_, special_, edge_, info_, tdf_sort )\
|
|
|
124 |
{\
|
|
|
125 |
tdf *x95_ = ( tdf_sort ) ;\
|
|
|
126 |
( name_ ) = DEREF_string ( x95_ + 0 ) ;\
|
|
|
127 |
( caps_ ) = DEREF_string ( x95_ + 1 ) ;\
|
|
|
128 |
( link_ ) = DEREF_string ( x95_ + 2 ) ;\
|
|
|
129 |
( unit_ ) = DEREF_string ( x95_ + 3 ) ;\
|
|
|
130 |
( code_ ) = DEREF_int ( x95_ + 4 ) ;\
|
|
|
131 |
( mark_ ) = DEREF_int ( x95_ + 5 ) ;\
|
|
|
132 |
( special_ ) = DEREF_int ( x95_ + 6 ) ;\
|
|
|
133 |
( edge_ ) = DEREF_int ( x95_ + 7 ) ;\
|
|
|
134 |
( info_ ) = DEREF_info ( x95_ + 8 ) ;\
|
|
|
135 |
( destroyer_ ) ( x95_, ( unsigned ) 9 ) ;\
|
|
|
136 |
}
|
|
|
137 |
|
|
|
138 |
|
|
|
139 |
#endif
|