Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – tendra.SVN – Blame – /branches/tendra4/src/tools/pl/templ/encodings.h – Rev 2

Subversion Repositories tendra.SVN

Rev

Go to most recent revision | Details | 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
#ifndef ENCODING_INCLUDED
32
#define ENCODING_INCLUDED
33
 
34
 
35
@use all
36
@loop sort
37
@if sort.simple
38
/* CONSTRUCTS FOR %ST */
39
@loop sort.cons
40
 
41
@if cons.params
42
#define o_%CN(%
43
@loop cons.param
44
 p%PE,%
45
@end
46
%b )\
47
@else
48
#define o_%CN\
49
@endif
50
@if cons.token
51
    TOK_APP (\
52
@if cons.extends
53
	out_extendable_int ( ( unsigned long ) e_%CN, ( unsigned ) %SB ),\
54
@else
55
	out_basic_int ( ( unsigned long ) e_%CN, ( unsigned ) %SB ),\
56
@endif
57
	s_%SN, p0, p1 )
58
@else
59
@if cons.cond
60
    TDF_COND (\
61
@if cons.extends
62
	out_extendable_int ( ( unsigned long ) e_%CN, ( unsigned ) %SB ),\
63
@else
64
	out_basic_int ( ( unsigned long ) e_%CN, ( unsigned ) %SB ),\
65
@endif
66
	s_%SN, p0, p1, p2 )
67
@else
68
    {\
69
@if sort.basic
70
@if cons.extends
71
	out_extendable_int ( ( unsigned long ) e_%CN, ( unsigned ) %SB ) ;\
72
@else
73
	out_basic_int ( ( unsigned long ) e_%CN, ( unsigned ) %SB ) ;\
74
@endif
75
@endif
76
@loop cons.param
77
@if param.sort.compound
78
	o_%PSN ( p%PE ) ;\
79
@else
80
	p%PE ; ASSERT_SORT ( s_%PSN ) ;\
81
@endif
82
@end
83
	SET_RSORT ( s_%SN ) ;\
84
    }
85
@endif
86
@endif
87
@end
88
 
89
 
90
@endif
91
@end
92
/* CONSTRUCTS FOR COMPOUND SORTS */
93
 
94
@loop sort
95
@if sort.option
96
#define o_%SN( p )	%40tTDF_OPTION ( p, s_%SSN )
97
@else
98
@if sort.list
99
#define o_%SN( p )	%40tTDF_LIST ( p, s_%SSN )
100
@else
101
@if sort.slist
102
#define o_%SN( p )	%40tTDF_SLIST ( p, s_%SSN )
103
@endif
104
@endif
105
@endif
106
@end
107
 
108
 
109
#endif