Line -... |
Line 1... |
- |
|
1 |
/*
|
- |
|
2 |
* Copyright (c) 2002-2005 The TenDRA Project <http://www.tendra.org/>.
|
- |
|
3 |
* All rights reserved.
|
- |
|
4 |
*
|
- |
|
5 |
* Redistribution and use in source and binary forms, with or without
|
- |
|
6 |
* modification, are permitted provided that the following conditions are met:
|
- |
|
7 |
*
|
- |
|
8 |
* 1. Redistributions of source code must retain the above copyright notice,
|
- |
|
9 |
* this list of conditions and the following disclaimer.
|
- |
|
10 |
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
- |
|
11 |
* this list of conditions and the following disclaimer in the documentation
|
- |
|
12 |
* and/or other materials provided with the distribution.
|
- |
|
13 |
* 3. Neither the name of The TenDRA Project nor the names of its contributors
|
- |
|
14 |
* may be used to endorse or promote products derived from this software
|
- |
|
15 |
* without specific, prior written permission.
|
- |
|
16 |
*
|
- |
|
17 |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
|
- |
|
18 |
* IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
- |
|
19 |
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
- |
|
20 |
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
|
- |
|
21 |
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
- |
|
22 |
* EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
- |
|
23 |
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
- |
|
24 |
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
- |
|
25 |
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
- |
|
26 |
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
- |
|
27 |
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
- |
|
28 |
*
|
- |
|
29 |
* $Id$
|
- |
|
30 |
*/
|
1 |
/*
|
31 |
/*
|
2 |
Crown Copyright (c) 1997
|
32 |
Crown Copyright (c) 1997
|
3 |
|
33 |
|
4 |
This TenDRA(r) Computer Program is subject to Copyright
|
34 |
This TenDRA(r) Computer Program is subject to Copyright
|
5 |
owned by the United Kingdom Secretary of State for Defence
|
35 |
owned by the United Kingdom Secretary of State for Defence
|
6 |
acting through the Defence Evaluation and Research Agency
|
36 |
acting through the Defence Evaluation and Research Agency
|
7 |
(DERA). It is made available to Recipients with a
|
37 |
(DERA). It is made available to Recipients with a
|
8 |
royalty-free licence for its use, reproduction, transfer
|
38 |
royalty-free licence for its use, reproduction, transfer
|
9 |
to other parties and amendment for any purpose not excluding
|
39 |
to other parties and amendment for any purpose not excluding
|
10 |
product development provided that any such use et cetera
|
40 |
product development provided that any such use et cetera
|
11 |
shall be deemed to be acceptance of the following conditions:-
|
41 |
shall be deemed to be acceptance of the following conditions:-
|
12 |
|
42 |
|
13 |
(1) Its Recipients shall ensure that this Notice is
|
43 |
(1) Its Recipients shall ensure that this Notice is
|
14 |
reproduced upon any copies or amended versions of it;
|
44 |
reproduced upon any copies or amended versions of it;
|
15 |
|
45 |
|
16 |
(2) Any amended version of it shall be clearly marked to
|
46 |
(2) Any amended version of it shall be clearly marked to
|
17 |
show both the nature of and the organisation responsible
|
47 |
show both the nature of and the organisation responsible
|
18 |
for the relevant amendment or amendments;
|
48 |
for the relevant amendment or amendments;
|
19 |
|
49 |
|
20 |
(3) Its onward transfer from a recipient to another
|
50 |
(3) Its onward transfer from a recipient to another
|
21 |
party shall be deemed to be that party's acceptance of
|
51 |
party shall be deemed to be that party's acceptance of
|
22 |
these conditions;
|
52 |
these conditions;
|
23 |
|
53 |
|
24 |
(4) DERA gives no warranty or assurance as to its
|
54 |
(4) DERA gives no warranty or assurance as to its
|
25 |
quality or suitability for any purpose and DERA accepts
|
55 |
quality or suitability for any purpose and DERA accepts
|
26 |
no liability whatsoever in relation to any use to which
|
56 |
no liability whatsoever in relation to any use to which
|
27 |
it may be put.
|
57 |
it may be put.
|
28 |
*/
|
58 |
*/
|
Line 32... |
Line 62... |
32 |
#define TDF_INCLUDED
|
62 |
#define TDF_INCLUDED
|
33 |
|
63 |
|
34 |
|
64 |
|
35 |
/* AUTOMATICALLY GENERATED BY make_tdf VERSION 2.0 FROM TDF 4.1 */
|
65 |
/* AUTOMATICALLY GENERATED BY make_tdf VERSION 2.0 FROM TDF 4.1 */
|
36 |
|
66 |
|
37 |
extern void init_constructs PROTO_S ( ( void ) ) ;
|
67 |
extern void init_constructs(void);
|
38 |
extern sortname find_sort PROTO_S ( ( char ) ) ;
|
68 |
extern sortname find_sort(char);
|
39 |
|
69 |
|
40 |
extern node *de_access PROTO_S ( ( void ) ) ;
|
70 |
extern node *de_access(void);
|
41 |
extern node *de_al_tag PROTO_S ( ( void ) ) ;
|
71 |
extern node *de_al_tag(void);
|
42 |
extern long de_al_tagdef_bits PROTO_S ( ( void ) ) ;
|
72 |
extern long de_al_tagdef_bits(void);
|
43 |
extern node *de_alignment PROTO_S ( ( void ) ) ;
|
73 |
extern node *de_alignment(void);
|
44 |
extern node *de_bitfield_variety PROTO_S ( ( void ) ) ;
|
74 |
extern node *de_bitfield_variety(void);
|
45 |
extern node *de_bool PROTO_S ( ( void ) ) ;
|
75 |
extern node *de_bool(void);
|
46 |
extern node *de_callees PROTO_S ( ( void ) ) ;
|
76 |
extern node *de_callees(void);
|
47 |
extern node *de_error_code PROTO_S ( ( void ) ) ;
|
77 |
extern node *de_error_code(void);
|
48 |
extern node *de_error_treatment PROTO_S ( ( void ) ) ;
|
78 |
extern node *de_error_treatment(void);
|
49 |
extern node *de_exp PROTO_S ( ( void ) ) ;
|
79 |
extern node *de_exp(void);
|
50 |
extern long de_external_bits PROTO_S ( ( void ) ) ;
|
80 |
extern long de_external_bits(void);
|
51 |
extern node *de_floating_variety PROTO_S ( ( void ) ) ;
|
81 |
extern node *de_floating_variety(void);
|
52 |
extern node *de_label PROTO_S ( ( void ) ) ;
|
82 |
extern node *de_label(void);
|
53 |
extern node *de_nat PROTO_S ( ( void ) ) ;
|
83 |
extern node *de_nat(void);
|
54 |
extern node *de_ntest PROTO_S ( ( void ) ) ;
|
84 |
extern node *de_ntest(void);
|
55 |
extern node *de_procprops PROTO_S ( ( void ) ) ;
|
85 |
extern node *de_procprops(void);
|
56 |
extern node *de_rounding_mode PROTO_S ( ( void ) ) ;
|
86 |
extern node *de_rounding_mode(void);
|
57 |
extern node *de_shape PROTO_S ( ( void ) ) ;
|
87 |
extern node *de_shape(void);
|
58 |
extern node *de_signed_nat PROTO_S ( ( void ) ) ;
|
88 |
extern node *de_signed_nat(void);
|
59 |
extern long de_sortname_bits PROTO_S ( ( void ) ) ;
|
89 |
extern long de_sortname_bits(void);
|
60 |
extern node *de_string PROTO_S ( ( void ) ) ;
|
90 |
extern node *de_string(void);
|
61 |
extern node *de_tag PROTO_S ( ( void ) ) ;
|
91 |
extern node *de_tag(void);
|
62 |
extern long de_tagdec_bits PROTO_S ( ( void ) ) ;
|
92 |
extern long de_tagdec_bits(void);
|
63 |
extern long de_tagdef_bits PROTO_S ( ( void ) ) ;
|
93 |
extern long de_tagdef_bits(void);
|
64 |
extern long de_tokdec_bits PROTO_S ( ( void ) ) ;
|
94 |
extern long de_tokdec_bits(void);
|
65 |
extern long de_tokdef_bits PROTO_S ( ( void ) ) ;
|
95 |
extern long de_tokdef_bits(void);
|
66 |
extern long de_token_bits PROTO_S ( ( void ) ) ;
|
96 |
extern long de_token_bits(void);
|
67 |
extern long de_token_defn_bits PROTO_S ( ( void ) ) ;
|
97 |
extern long de_token_defn_bits(void);
|
68 |
extern node *de_transfer_mode PROTO_S ( ( void ) ) ;
|
98 |
extern node *de_transfer_mode(void);
|
69 |
extern node *de_variety PROTO_S ( ( void ) ) ;
|
99 |
extern node *de_variety(void);
|
70 |
extern long de_version_bits PROTO_S ( ( void ) ) ;
|
100 |
extern long de_version_bits(void);
|
71 |
|
101 |
|
72 |
#ifdef ENC_TYPES_INCLUDED
|
102 |
#ifdef ENC_TYPES_INCLUDED
|
73 |
extern void enc_al_tag_bits PROTO_S ( ( bitstream *, int ) ) ;
|
103 |
extern void enc_al_tag_bits(bitstream *, int);
|
74 |
extern void enc_al_tagdef_bits PROTO_S ( ( bitstream *, int ) ) ;
|
104 |
extern void enc_al_tagdef_bits(bitstream *, int);
|
75 |
extern void enc_external_bits PROTO_S ( ( bitstream *, int ) ) ;
|
105 |
extern void enc_external_bits(bitstream *, int);
|
76 |
extern void enc_label_bits PROTO_S ( ( bitstream *, int ) ) ;
|
106 |
extern void enc_label_bits(bitstream *, int);
|
77 |
extern void enc_sortname_bits PROTO_S ( ( bitstream *, int ) ) ;
|
107 |
extern void enc_sortname_bits(bitstream *, int);
|
78 |
extern void enc_tag_bits PROTO_S ( ( bitstream *, int ) ) ;
|
108 |
extern void enc_tag_bits(bitstream *, int);
|
79 |
extern void enc_tagdec_bits PROTO_S ( ( bitstream *, int ) ) ;
|
109 |
extern void enc_tagdec_bits(bitstream *, int);
|
80 |
extern void enc_tagdef_bits PROTO_S ( ( bitstream *, int ) ) ;
|
110 |
extern void enc_tagdef_bits(bitstream *, int);
|
81 |
extern void enc_tokdec_bits PROTO_S ( ( bitstream *, int ) ) ;
|
111 |
extern void enc_tokdec_bits(bitstream *, int);
|
82 |
extern void enc_tokdef_bits PROTO_S ( ( bitstream *, int ) ) ;
|
112 |
extern void enc_tokdef_bits(bitstream *, int);
|
83 |
extern void enc_token_bits PROTO_S ( ( bitstream *, int ) ) ;
|
113 |
extern void enc_token_bits(bitstream *, int);
|
84 |
extern void enc_token_defn_bits PROTO_S ( ( bitstream *, int ) ) ;
|
114 |
extern void enc_token_defn_bits(bitstream *, int);
|
85 |
extern void enc_version_bits PROTO_S ( ( bitstream *, int ) ) ;
|
115 |
extern void enc_version_bits(bitstream *, int);
|
86 |
#endif
|
116 |
#endif
|
87 |
|
117 |
|
88 |
extern node *read_access PROTO_S ( ( long ) ) ;
|
118 |
extern node *read_access(long);
|
89 |
extern node *read_al_tag PROTO_S ( ( long ) ) ;
|
119 |
extern node *read_al_tag(long);
|
90 |
extern node *read_alignment PROTO_S ( ( long ) ) ;
|
120 |
extern node *read_alignment(long);
|
91 |
extern node *read_bitfield_variety PROTO_S ( ( long ) ) ;
|
121 |
extern node *read_bitfield_variety(long);
|
92 |
extern node *read_bool PROTO_S ( ( long ) ) ;
|
122 |
extern node *read_bool(long);
|
93 |
extern node *read_callees PROTO_S ( ( long ) ) ;
|
123 |
extern node *read_callees(long);
|
94 |
extern node *read_error_code PROTO_S ( ( long ) ) ;
|
124 |
extern node *read_error_code(long);
|
95 |
extern node *read_error_treatment PROTO_S ( ( long ) ) ;
|
125 |
extern node *read_error_treatment(long);
|
96 |
extern node *read_exp PROTO_S ( ( long ) ) ;
|
126 |
extern node *read_exp(long);
|
97 |
extern node *read_floating_variety PROTO_S ( ( long ) ) ;
|
127 |
extern node *read_floating_variety(long);
|
98 |
extern node *read_label PROTO_S ( ( long ) ) ;
|
128 |
extern node *read_label(long);
|
99 |
extern node *read_nat PROTO_S ( ( long ) ) ;
|
129 |
extern node *read_nat(long);
|
100 |
extern node *read_ntest PROTO_S ( ( long ) ) ;
|
130 |
extern node *read_ntest(long);
|
101 |
extern node *read_procprops PROTO_S ( ( long ) ) ;
|
131 |
extern node *read_procprops(long);
|
102 |
extern node *read_rounding_mode PROTO_S ( ( long ) ) ;
|
132 |
extern node *read_rounding_mode(long);
|
103 |
extern node *read_shape PROTO_S ( ( long ) ) ;
|
133 |
extern node *read_shape(long);
|
104 |
extern node *read_signed_nat PROTO_S ( ( long ) ) ;
|
134 |
extern node *read_signed_nat(long);
|
105 |
extern node *read_string PROTO_S ( ( long ) ) ;
|
135 |
extern node *read_string(long);
|
106 |
extern node *read_tag PROTO_S ( ( long ) ) ;
|
136 |
extern node *read_tag(long);
|
107 |
extern node *read_transfer_mode PROTO_S ( ( long ) ) ;
|
137 |
extern node *read_transfer_mode(long);
|
108 |
extern node *read_variety PROTO_S ( ( long ) ) ;
|
138 |
extern node *read_variety(long);
|
109 |
|
139 |
|
110 |
#define VERSION_capsule "TDFC"
|
140 |
#define VERSION_capsule "TDFC"
|
111 |
#define VERSION_library "TDFL"
|
141 |
#define VERSION_library "TDFL"
|
112 |
#define VERSION_major 4
|
142 |
#define VERSION_major 4
|
113 |
#define VERSION_minor 1
|
143 |
#define VERSION_minor 1
|
Line 148... |
Line 178... |
148 |
#define SORT_foreign ENC_foreign_sort
|
178 |
#define SORT_foreign ENC_foreign_sort
|
149 |
#define SORT_callees 22
|
179 |
#define SORT_callees 22
|
150 |
#define SORT_error_code 23
|
180 |
#define SORT_error_code 23
|
151 |
#define SORT_sortname 0
|
181 |
#define SORT_sortname 0
|
152 |
#define SORT_unknown 0
|
182 |
#define SORT_unknown 0
|
153 |
#define SORT_repeat ( -1 )
|
183 |
#define SORT_repeat (-1)
|
154 |
#define SORT_option ( -2 )
|
184 |
#define SORT_option (-2)
|
155 |
#define SORT_completion ( -3 )
|
185 |
#define SORT_completion (-3)
|
156 |
#define SORT_small_tdfint ( -4 )
|
186 |
#define SORT_small_tdfint (-4)
|
157 |
#define SORT_bitstream ( -5 )
|
187 |
#define SORT_bitstream (-5)
|
158 |
#define SORT_bytestream ( -6 )
|
188 |
#define SORT_bytestream (-6)
|
159 |
#define SORT_tdfbool ( -7 )
|
189 |
#define SORT_tdfbool (-7)
|
160 |
#define SORT_tdfident ( -8 )
|
190 |
#define SORT_tdfident (-8)
|
161 |
#define SORT_tdfint ( -9 )
|
191 |
#define SORT_tdfint (-9)
|
162 |
#define SORT_tdfstring ( -10 )
|
192 |
#define SORT_tdfstring (-10)
|
163 |
#define SORT_max 21
|
193 |
#define SORT_max 21
|
164 |
#define SORT_no 24
|
194 |
#define SORT_no 24
|
165 |
|
195 |
|
166 |
#define ENC_access_apply_token 1
|
196 |
#define ENC_access_apply_token 1
|
167 |
#define ENC_access_cond 2
|
197 |
#define ENC_access_cond 2
|