Subversion Repositories tendra.SVN

Rev

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

Rev Author Line No. Line
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 CONS_OPS_H_INCLUDED
36
#define CONS_OPS_H_INCLUDED
37
 
38
/* Operations for union CONSTRUCT */
39
 
7 7u83 40
#define TAG_cons(P)			((unsigned) 0)
2 7u83 41
 
42
 
43
/* Operations for component name of union CONSTRUCT */
44
 
7 7u83 45
#define cons_name(P)			(CHECK_NULL(P) + 0)
2 7u83 46
 
47
 
48
/* Operations for component encode of union CONSTRUCT */
49
 
7 7u83 50
#define cons_encode(P)			(CHECK_NULL(P) + 1)
2 7u83 51
 
52
 
53
/* Operations for component res of union CONSTRUCT */
54
 
7 7u83 55
#define cons_res(P)			(CHECK_NULL(P) + 2)
2 7u83 56
 
57
 
58
/* Operations for component pars of union CONSTRUCT */
59
 
7 7u83 60
#define cons_pars(P)			(CHECK_NULL(P) + 3)
2 7u83 61
 
62
 
63
/* Operations for component kind of union CONSTRUCT */
64
 
7 7u83 65
#define cons_kind(P)			(CHECK_NULL(P) + 4)
2 7u83 66
 
67
 
68
/* Operations for field basic of union CONSTRUCT */
69
 
7 7u83 70
#define cons_basic_tag			((unsigned)0)
71
#define IS_cons_basic(P)		1
2 7u83 72
 
73
 
7 7u83 74
#define MAKE_cons_basic(name_, encode_, res_, pars_, kind_, tdf_cons)\
2 7u83 75
    {\
7 7u83 76
	tdf *x68_ = GEN_tdf(5, TYPEID_cons);\
77
	COPY_string(x68_ + 0, (name_));\
78
	COPY_unsigned(x68_ + 1, (encode_));\
79
	COPY_sort(x68_ + 2, (res_));\
80
	COPY_list(x68_ + 3, (pars_));\
81
	COPY_unsigned(x68_ + 4, (kind_));\
82
	(tdf_cons) = x68_;\
2 7u83 83
    }
84
 
7 7u83 85
#define DECONS_cons_basic(name_, encode_, res_, pars_, kind_, tdf_cons)\
2 7u83 86
    {\
7 7u83 87
	tdf *x69_ = (tdf_cons);\
88
	(name_) = DEREF_string(x69_ + 0);\
89
	(encode_) = DEREF_unsigned(x69_ + 1);\
90
	(res_) = DEREF_sort(x69_ + 2);\
91
	(pars_) = DEREF_list(x69_ + 3);\
92
	(kind_) = DEREF_unsigned(x69_ + 4);\
2 7u83 93
    }
94
 
7 7u83 95
#define DESTROY_cons_basic(destroyer_, name_, encode_, res_, pars_, kind_, tdf_cons)\
2 7u83 96
    {\
7 7u83 97
	tdf *x70_ = (tdf_cons);\
98
	(name_) = DEREF_string(x70_ + 0);\
99
	(encode_) = DEREF_unsigned(x70_ + 1);\
100
	(res_) = DEREF_sort(x70_ + 2);\
101
	(pars_) = DEREF_list(x70_ + 3);\
102
	(kind_) = DEREF_unsigned(x70_ + 4);\
103
	(destroyer_)(x70_, (unsigned)5);\
2 7u83 104
    }
105
 
106
 
107
#endif