Subversion Repositories tendra.SVN

Rev

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

Rev 5 Rev 6
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 NAME_OPS_H_INCLUDED
35
#ifndef NAME_OPS_H_INCLUDED
36
#define NAME_OPS_H_INCLUDED
36
#define NAME_OPS_H_INCLUDED
37
 
37
 
38
/* Operations for union NAME */
38
/* Operations for union NAME */
39
 
39
 
40
#define TAG_name( P )			( ( unsigned ) 0 )
40
#define TAG_name(P)			((unsigned) 0)
41
 
41
 
42
 
42
 
43
/* Operations for component id of union NAME */
43
/* Operations for component id of union NAME */
44
 
44
 
45
#define name_id( P )			( CHECK_NULL ( P ) + 0 )
45
#define name_id(P)			(CHECK_NULL(P) + 0)
46
 
46
 
47
 
47
 
48
/* Operations for component number of union NAME */
48
/* Operations for component number of union NAME */
49
 
49
 
50
#define name_number( P )		( CHECK_NULL ( P ) + 1 )
50
#define name_number(P)			(CHECK_NULL(P) + 1)
51
 
51
 
52
 
52
 
53
/* Operations for field basic of union NAME */
53
/* Operations for field basic of union NAME */
54
 
54
 
55
#define name_basic_tag			( ( unsigned ) 0 )
55
#define name_basic_tag			((unsigned)0)
56
#define IS_name_basic( P )		1
56
#define IS_name_basic(P)		1
57
 
57
 
58
 
58
 
59
#define MAKE_name_basic( id_, number_, errors_name )\
59
#define MAKE_name_basic(id_, number_, errors_name)\
60
    {\
60
    {\
61
	errors *x50_ = GEN_errors ( 2, TYPEID_name ) ;\
61
	errors *x50_ = GEN_errors(2, TYPEID_name);\
62
	COPY_string ( x50_ + 0, ( id_ ) ) ;\
62
	COPY_string(x50_ + 0, (id_));\
63
	COPY_int ( x50_ + 1, ( number_ ) ) ;\
63
	COPY_int(x50_ + 1, (number_));\
64
	( errors_name ) = x50_ ;\
64
	(errors_name) = x50_;\
65
    }
65
    }
66
 
66
 
67
#define DECONS_name_basic( id_, number_, errors_name )\
67
#define DECONS_name_basic(id_, number_, errors_name)\
68
    {\
68
    {\
69
	errors *x51_ = ( errors_name ) ;\
69
	errors *x51_ = (errors_name);\
70
	( id_ ) = DEREF_string ( x51_ + 0 ) ;\
70
	(id_) = DEREF_string(x51_ + 0);\
71
	( number_ ) = DEREF_int ( x51_ + 1 ) ;\
71
	(number_) = DEREF_int(x51_ + 1);\
72
    }
72
    }
73
 
73
 
74
#define DESTROY_name_basic( destroyer_, id_, number_, errors_name )\
74
#define DESTROY_name_basic(destroyer_, id_, number_, errors_name)\
75
    {\
75
    {\
76
	errors *x52_ = ( errors_name ) ;\
76
	errors *x52_ = (errors_name);\
77
	( id_ ) = DEREF_string ( x52_ + 0 ) ;\
77
	(id_) = DEREF_string(x52_ + 0);\
78
	( number_ ) = DEREF_int ( x52_ + 1 ) ;\
78
	(number_) = DEREF_int(x52_ + 1);\
79
	( destroyer_ ) ( x52_, ( unsigned ) 2 ) ;\
79
	(destroyer_)(x52_, (unsigned)2);\
80
    }
80
    }
81
 
81
 
82
 
82
 
83
#endif
83
#endif