Subversion Repositories tendra.SVN

Rev

Rev 5 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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 ENTRY_OPS_H_INCLUDED
36
#define ENTRY_OPS_H_INCLUDED
37
 
38
/* Operations for union ENTRY */
39
 
6 7u83 40
#define TAG_entry(P)			((unsigned) 0)
2 7u83 41
 
42
 
43
/* Operations for component name of union ENTRY */
44
 
6 7u83 45
#define entry_name(P)			(CHECK_NULL(P) + 0)
2 7u83 46
 
47
 
48
/* Operations for component alt_name of union ENTRY */
49
 
6 7u83 50
#define entry_alt_name(P)		(CHECK_NULL(P) + 1)
2 7u83 51
 
52
 
53
/* Operations for component signature of union ENTRY */
54
 
6 7u83 55
#define entry_signature(P)		(CHECK_NULL(P) + 2)
2 7u83 56
 
57
 
58
/* Operations for component use of union ENTRY */
59
 
6 7u83 60
#define entry_use(P)			(CHECK_NULL(P) + 3)
2 7u83 61
 
62
 
63
/* Operations for component alt_use of union ENTRY */
64
 
6 7u83 65
#define entry_alt_use(P)		(CHECK_NULL(P) + 4)
2 7u83 66
 
67
 
68
/* Operations for component props of union ENTRY */
69
 
6 7u83 70
#define entry_props(P)			(CHECK_NULL(P) + 5)
2 7u83 71
 
72
 
73
/* Operations for component maps of union ENTRY */
74
 
6 7u83 75
#define entry_maps(P)			(CHECK_NULL(P) + 6)
2 7u83 76
 
77
 
78
/* Operations for field basic of union ENTRY */
79
 
6 7u83 80
#define entry_basic_tag			((unsigned)0)
81
#define IS_entry_basic(P)		1
2 7u83 82
 
83
 
6 7u83 84
#define MAKE_entry_basic(name_, alt_name_, signature_, use_, alt_use_, props_, maps_, errors_entry)\
2 7u83 85
    {\
6 7u83 86
	errors *x65_ = GEN_errors(7, TYPEID_entry);\
87
	COPY_string(x65_ + 0, (name_));\
88
	COPY_string(x65_ + 1, (alt_name_));\
89
	COPY_list(x65_ + 2, (signature_));\
90
	COPY_name(x65_ + 3, (use_));\
91
	COPY_name(x65_ + 4, (alt_use_));\
92
	COPY_list(x65_ + 5, (props_));\
93
	COPY_list(x65_ + 6, (maps_));\
94
	(errors_entry) = x65_;\
2 7u83 95
    }
96
 
6 7u83 97
#define DECONS_entry_basic(name_, alt_name_, signature_, use_, alt_use_, props_, maps_, errors_entry)\
2 7u83 98
    {\
6 7u83 99
	errors *x66_ = (errors_entry);\
100
	(name_) = DEREF_string(x66_ + 0);\
101
	(alt_name_) = DEREF_string(x66_ + 1);\
102
	(signature_) = DEREF_list(x66_ + 2);\
103
	(use_) = DEREF_name(x66_ + 3);\
104
	(alt_use_) = DEREF_name(x66_ + 4);\
105
	(props_) = DEREF_list(x66_ + 5);\
106
	(maps_) = DEREF_list(x66_ + 6);\
2 7u83 107
    }
108
 
6 7u83 109
#define DESTROY_entry_basic(destroyer_, name_, alt_name_, signature_, use_, alt_use_, props_, maps_, errors_entry)\
2 7u83 110
    {\
6 7u83 111
	errors *x67_ = (errors_entry);\
112
	(name_) = DEREF_string(x67_ + 0);\
113
	(alt_name_) = DEREF_string(x67_ + 1);\
114
	(signature_) = DEREF_list(x67_ + 2);\
115
	(use_) = DEREF_name(x67_ + 3);\
116
	(alt_use_) = DEREF_name(x67_ + 4);\
117
	(props_) = DEREF_list(x67_ + 5);\
118
	(maps_) = DEREF_list(x67_ + 6);\
119
	(destroyer_)(x67_, (unsigned)7);\
2 7u83 120
    }
121
 
122
 
123
#endif