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
7 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:-
7 7u83 12
 
2 7u83 13
        (1) Its Recipients shall ensure that this Notice is
14
        reproduced upon any copies or amended versions of it;
7 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;
7 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;
7 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 MSG_OPS_H_INCLUDED
36
#define MSG_OPS_H_INCLUDED
37
 
38
/* Operations for union MESSAGE */
39
 
7 7u83 40
#define TAG_msg(P)			(CHECK_NULL(P)->ag_tag)
2 7u83 41
 
42
 
43
/* Operations for field param of union MESSAGE */
44
 
7 7u83 45
#define msg_param_tag			((unsigned)0)
46
#define IS_msg_param(P)			(CHECK_NULL(P)->ag_tag == 0)
2 7u83 47
 
7 7u83 48
#define msg_param_arg(P)		(CHECK_TAG((P), 0) + 1)
2 7u83 49
 
7 7u83 50
#define MAKE_msg_param(arg_, errors_msg)\
2 7u83 51
    {\
7 7u83 52
	errors *x53_ = GEN_errors(2, TYPEID_msg);\
53
	x53_->ag_tag = 0;\
54
	COPY_param(x53_ + 1, (arg_));\
55
	(errors_msg) = x53_;\
2 7u83 56
    }
57
 
7 7u83 58
#define DECONS_msg_param(arg_, errors_msg)\
2 7u83 59
    {\
7 7u83 60
	errors *x54_ = CHECK_TAG((errors_msg), 0);\
61
	(arg_) = DEREF_param(x54_ + 1);\
2 7u83 62
    }
63
 
7 7u83 64
#define DESTROY_msg_param(destroyer_, arg_, errors_msg)\
2 7u83 65
    {\
7 7u83 66
	errors *x55_ = CHECK_TAG((errors_msg), 0);\
67
	(arg_) = DEREF_param(x55_ + 1);\
68
	(destroyer_)(x55_, (unsigned)2);\
2 7u83 69
    }
70
 
71
 
72
/* Operations for field text of union MESSAGE */
73
 
7 7u83 74
#define msg_text_tag			((unsigned)1)
75
#define IS_msg_text(P)			(CHECK_NULL(P)->ag_tag == 1)
2 7u83 76
 
7 7u83 77
#define msg_text_arg(P)			(CHECK_TAG((P), 1) + 1)
2 7u83 78
 
7 7u83 79
#define MAKE_msg_text(arg_, errors_msg)\
2 7u83 80
    {\
7 7u83 81
	errors *x56_ = GEN_errors(2, TYPEID_msg);\
82
	x56_->ag_tag = 1;\
83
	COPY_string(x56_ + 1, (arg_));\
84
	(errors_msg) = x56_;\
2 7u83 85
    }
86
 
7 7u83 87
#define DECONS_msg_text(arg_, errors_msg)\
2 7u83 88
    {\
7 7u83 89
	errors *x57_ = CHECK_TAG((errors_msg), 1);\
90
	(arg_) = DEREF_string(x57_ + 1);\
2 7u83 91
    }
92
 
7 7u83 93
#define DESTROY_msg_text(destroyer_, arg_, errors_msg)\
2 7u83 94
    {\
7 7u83 95
	errors *x58_ = CHECK_TAG((errors_msg), 1);\
96
	(arg_) = DEREF_string(x58_ + 1);\
97
	(destroyer_)(x58_, (unsigned)2);\
2 7u83 98
    }
99
 
100
 
101
#endif