Subversion Repositories tendra.SVN

Rev

Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 7
Line 1... Line 1...
1
/*
1
/*
2
    		 Crown Copyright (c) 1997
2
    		 Crown Copyright (c) 1997
3
    
3
 
4
    This TenDRA(r) Computer Program is subject to Copyright
4
    This TenDRA(r) Computer Program is subject to Copyright
5
    owned by the United Kingdom Secretary of State for Defence
5
    owned by the United Kingdom Secretary of State for Defence
6
    acting through the Defence Evaluation and Research Agency
6
    acting through the Defence Evaluation and Research Agency
7
    (DERA).  It is made available to Recipients with a
7
    (DERA).  It is made available to Recipients with a
8
    royalty-free licence for its use, reproduction, transfer
8
    royalty-free licence for its use, reproduction, transfer
9
    to other parties and amendment for any purpose not excluding
9
    to other parties and amendment for any purpose not excluding
10
    product development provided that any such use et cetera
10
    product development provided that any such use et cetera
11
    shall be deemed to be acceptance of the following conditions:-
11
    shall be deemed to be acceptance of the following conditions:-
12
    
12
 
13
        (1) Its Recipients shall ensure that this Notice is
13
        (1) Its Recipients shall ensure that this Notice is
14
        reproduced upon any copies or amended versions of it;
14
        reproduced upon any copies or amended versions of it;
15
    
15
 
16
        (2) Any amended version of it shall be clearly marked to
16
        (2) Any amended version of it shall be clearly marked to
17
        show both the nature of and the organisation responsible
17
        show both the nature of and the organisation responsible
18
        for the relevant amendment or amendments;
18
        for the relevant amendment or amendments;
19
    
19
 
20
        (3) Its onward transfer from a recipient to another
20
        (3) Its onward transfer from a recipient to another
21
        party shall be deemed to be that party's acceptance of
21
        party shall be deemed to be that party's acceptance of
22
        these conditions;
22
        these conditions;
23
    
23
 
24
        (4) DERA gives no warranty or assurance as to its
24
        (4) DERA gives no warranty or assurance as to its
25
        quality or suitability for any purpose and DERA accepts
25
        quality or suitability for any purpose and DERA accepts
26
        no liability whatsoever in relation to any use to which
26
        no liability whatsoever in relation to any use to which
27
        it may be put.
27
        it may be put.
28
*/
28
*/
Line 35... Line 35...
35
#ifndef MAP_OPS_H_INCLUDED
35
#ifndef MAP_OPS_H_INCLUDED
36
#define MAP_OPS_H_INCLUDED
36
#define MAP_OPS_H_INCLUDED
37
 
37
 
38
/* Operations for union MAP */
38
/* Operations for union MAP */
39
 
39
 
40
#define TAG_map( P )			( ( unsigned ) 0 )
40
#define TAG_map(P)			((unsigned) 0)
41
 
41
 
42
 
42
 
43
/* Operations for component key of union MAP */
43
/* Operations for component key of union MAP */
44
 
44
 
45
#define map_key( P )			( CHECK_NULL ( P ) + 0 )
45
#define map_key(P)			(CHECK_NULL(P) + 0)
46
 
46
 
47
 
47
 
48
/* Operations for component msg of union MAP */
48
/* Operations for component msg of union MAP */
49
 
49
 
50
#define map_msg( P )			( CHECK_NULL ( P ) + 1 )
50
#define map_msg(P)			(CHECK_NULL(P) + 1)
51
 
51
 
52
 
52
 
53
/* Operations for component alt_msg of union MAP */
53
/* Operations for component alt_msg of union MAP */
54
 
54
 
55
#define map_alt_msg( P )		( CHECK_NULL ( P ) + 2 )
55
#define map_alt_msg(P)			(CHECK_NULL(P) + 2)
56
 
56
 
57
 
57
 
58
/* Operations for field basic of union MAP */
58
/* Operations for field basic of union MAP */
59
 
59
 
60
#define map_basic_tag			( ( unsigned ) 0 )
60
#define map_basic_tag			((unsigned)0)
61
#define IS_map_basic( P )		1
61
#define IS_map_basic(P)			1
62
 
62
 
63
 
63
 
64
#define MAKE_map_basic( key_, msg_, alt_msg_, errors_map )\
64
#define MAKE_map_basic(key_, msg_, alt_msg_, errors_map)\
65
    {\
65
    {\
66
	errors *x59_ = GEN_errors ( 3, TYPEID_map ) ;\
66
	errors *x59_ = GEN_errors(3, TYPEID_map);\
67
	COPY_name ( x59_ + 0, ( key_ ) ) ;\
67
	COPY_name(x59_ + 0, (key_));\
68
	COPY_list ( x59_ + 1, ( msg_ ) ) ;\
68
	COPY_list(x59_ + 1, (msg_));\
69
	COPY_list ( x59_ + 2, ( alt_msg_ ) ) ;\
69
	COPY_list(x59_ + 2, (alt_msg_));\
70
	( errors_map ) = x59_ ;\
70
	(errors_map) = x59_;\
71
    }
71
    }
72
 
72
 
73
#define DECONS_map_basic( key_, msg_, alt_msg_, errors_map )\
73
#define DECONS_map_basic(key_, msg_, alt_msg_, errors_map)\
74
    {\
74
    {\
75
	errors *x60_ = ( errors_map ) ;\
75
	errors *x60_ = (errors_map);\
76
	( key_ ) = DEREF_name ( x60_ + 0 ) ;\
76
	(key_) = DEREF_name(x60_ + 0);\
77
	( msg_ ) = DEREF_list ( x60_ + 1 ) ;\
77
	(msg_) = DEREF_list(x60_ + 1);\
78
	( alt_msg_ ) = DEREF_list ( x60_ + 2 ) ;\
78
	(alt_msg_) = DEREF_list(x60_ + 2);\
79
    }
79
    }
80
 
80
 
81
#define DESTROY_map_basic( destroyer_, key_, msg_, alt_msg_, errors_map )\
81
#define DESTROY_map_basic(destroyer_, key_, msg_, alt_msg_, errors_map)\
82
    {\
82
    {\
83
	errors *x61_ = ( errors_map ) ;\
83
	errors *x61_ = (errors_map);\
84
	( key_ ) = DEREF_name ( x61_ + 0 ) ;\
84
	(key_) = DEREF_name(x61_ + 0);\
85
	( msg_ ) = DEREF_list ( x61_ + 1 ) ;\
85
	(msg_) = DEREF_list(x61_ + 1);\
86
	( alt_msg_ ) = DEREF_list ( x61_ + 2 ) ;\
86
	(alt_msg_) = DEREF_list(x61_ + 2);\
87
	( destroyer_ ) ( x61_, ( unsigned ) 3 ) ;\
87
	(destroyer_)(x61_, (unsigned)3);\
88
    }
88
    }
89
 
89
 
90
 
90
 
91
#endif
91
#endif