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 STR_OPS_H_INCLUDED
|
|
|
36 |
#define STR_OPS_H_INCLUDED
|
|
|
37 |
|
|
|
38 |
/* Operations for union STRING */
|
|
|
39 |
|
|
|
40 |
#define TAG_str( P ) ( ( unsigned ) 0 )
|
|
|
41 |
|
|
|
42 |
|
|
|
43 |
/* Operations for component next of union STRING */
|
|
|
44 |
|
|
|
45 |
#define str_next( P ) ( CHECK_NULL ( P ) + 0 )
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
/* Operations for field simple of union STRING */
|
|
|
49 |
|
|
|
50 |
#define str_simple_tag ( ( unsigned ) 0 )
|
|
|
51 |
#define IS_str_simple( P ) 1
|
|
|
52 |
|
|
|
53 |
#define str_simple_len( P ) ( ( P ) + 1 )
|
|
|
54 |
#define str_simple_text( P ) ( ( P ) + 2 )
|
|
|
55 |
#define str_simple_kind( P ) ( ( P ) + 3 )
|
|
|
56 |
#define str_simple_tok( P ) ( ( P ) + 4 )
|
|
|
57 |
|
|
|
58 |
#define MAKE_str_simple( len_, text_, kind_, c_class_str )\
|
|
|
59 |
{\
|
|
|
60 |
c_class *x483_ = GEN_c_class ( 5, TYPEID_str ) ;\
|
|
|
61 |
COPY_str ( x483_ + 0, NULL_str ) ;\
|
|
|
62 |
COPY_ulong ( x483_ + 1, ( len_ ) ) ;\
|
|
|
63 |
COPY_string ( x483_ + 2, ( text_ ) ) ;\
|
|
|
64 |
COPY_unsigned ( x483_ + 3, ( kind_ ) ) ;\
|
|
|
65 |
COPY_ulong ( x483_ + 4, LINK_NONE ) ;\
|
|
|
66 |
( c_class_str ) = x483_ ;\
|
|
|
67 |
}
|
|
|
68 |
|
|
|
69 |
#define DECONS_str_simple( next_, len_, text_, kind_, tok_, c_class_str )\
|
|
|
70 |
{\
|
|
|
71 |
c_class *x484_ = ( c_class_str ) ;\
|
|
|
72 |
( next_ ) = DEREF_str ( x484_ + 0 ) ;\
|
|
|
73 |
( len_ ) = DEREF_ulong ( x484_ + 1 ) ;\
|
|
|
74 |
( text_ ) = DEREF_string ( x484_ + 2 ) ;\
|
|
|
75 |
( kind_ ) = DEREF_unsigned ( x484_ + 3 ) ;\
|
|
|
76 |
( tok_ ) = DEREF_ulong ( x484_ + 4 ) ;\
|
|
|
77 |
}
|
|
|
78 |
|
|
|
79 |
#define DESTROY_str_simple( destroyer_, next_, len_, text_, kind_, tok_, c_class_str )\
|
|
|
80 |
{\
|
|
|
81 |
c_class *x485_ = ( c_class_str ) ;\
|
|
|
82 |
( next_ ) = DEREF_str ( x485_ + 0 ) ;\
|
|
|
83 |
( len_ ) = DEREF_ulong ( x485_ + 1 ) ;\
|
|
|
84 |
( text_ ) = DEREF_string ( x485_ + 2 ) ;\
|
|
|
85 |
( kind_ ) = DEREF_unsigned ( x485_ + 3 ) ;\
|
|
|
86 |
( tok_ ) = DEREF_ulong ( x485_ + 4 ) ;\
|
|
|
87 |
( destroyer_ ) ( x485_, ( unsigned ) 5 ) ;\
|
|
|
88 |
}
|
|
|
89 |
|
|
|
90 |
|
|
|
91 |
#endif
|