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 SPEC_OPS_H_INCLUDED
36
#define SPEC_OPS_H_INCLUDED
37
 
38
/* Operations for union SPECIFICATION */
39
 
7 7u83 40
#define TAG_spec(P)			((unsigned) 0)
2 7u83 41
 
42
 
43
/* Operations for component major of union SPECIFICATION */
44
 
7 7u83 45
#define spec_major(P)			(CHECK_NULL(P) + 0)
2 7u83 46
 
47
 
48
/* Operations for component minor of union SPECIFICATION */
49
 
7 7u83 50
#define spec_minor(P)			(CHECK_NULL(P) + 1)
2 7u83 51
 
52
 
53
/* Operations for component sorts of union SPECIFICATION */
54
 
7 7u83 55
#define spec_sorts(P)			(CHECK_NULL(P) + 2)
2 7u83 56
 
57
 
58
/* Operations for component vars of union SPECIFICATION */
59
 
7 7u83 60
#define spec_vars(P)			(CHECK_NULL(P) + 3)
2 7u83 61
 
62
 
63
/* Operations for component eqns of union SPECIFICATION */
64
 
7 7u83 65
#define spec_eqns(P)			(CHECK_NULL(P) + 4)
2 7u83 66
 
67
 
68
/* Operations for component foreign of union SPECIFICATION */
69
 
7 7u83 70
#define spec_foreign(P)			(CHECK_NULL(P) + 5)
2 7u83 71
 
72
 
73
/* Operations for field basic of union SPECIFICATION */
74
 
7 7u83 75
#define spec_basic_tag			((unsigned)0)
76
#define IS_spec_basic(P)		1
2 7u83 77
 
78
 
7 7u83 79
#define MAKE_spec_basic(major_, minor_, sorts_, vars_, eqns_, foreign_, tdf_spec)\
2 7u83 80
    {\
7 7u83 81
	tdf *x99_ = GEN_tdf(6, TYPEID_spec);\
82
	COPY_unsigned(x99_ + 0, (major_));\
83
	COPY_unsigned(x99_ + 1, (minor_));\
84
	COPY_list(x99_ + 2, (sorts_));\
85
	COPY_list(x99_ + 3, (vars_));\
86
	COPY_list(x99_ + 4, (eqns_));\
87
	COPY_list(x99_ + 5, (foreign_));\
88
	(tdf_spec) = x99_;\
2 7u83 89
    }
90
 
7 7u83 91
#define DECONS_spec_basic(major_, minor_, sorts_, vars_, eqns_, foreign_, tdf_spec)\
2 7u83 92
    {\
7 7u83 93
	tdf *x100_ = (tdf_spec);\
94
	(major_) = DEREF_unsigned(x100_ + 0);\
95
	(minor_) = DEREF_unsigned(x100_ + 1);\
96
	(sorts_) = DEREF_list(x100_ + 2);\
97
	(vars_) = DEREF_list(x100_ + 3);\
98
	(eqns_) = DEREF_list(x100_ + 4);\
99
	(foreign_) = DEREF_list(x100_ + 5);\
2 7u83 100
    }
101
 
7 7u83 102
#define DESTROY_spec_basic(destroyer_, major_, minor_, sorts_, vars_, eqns_, foreign_, tdf_spec)\
2 7u83 103
    {\
7 7u83 104
	tdf *x101_ = (tdf_spec);\
105
	(major_) = DEREF_unsigned(x101_ + 0);\
106
	(minor_) = DEREF_unsigned(x101_ + 1);\
107
	(sorts_) = DEREF_list(x101_ + 2);\
108
	(vars_) = DEREF_list(x101_ + 3);\
109
	(eqns_) = DEREF_list(x101_ + 4);\
110
	(foreign_) = DEREF_list(x101_ + 5);\
111
	(destroyer_)(x101_, (unsigned)6);\
2 7u83 112
    }
113
 
114
 
115
#endif