Subversion Repositories tendra.SVN

Rev

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

Rev 2 Rev 7
Line -... Line 1...
-
 
1
/*
-
 
2
 * Copyright (c) 2002-2006 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 65... Line 95...
65
#include "ostream.h"
95
#include "ostream.h"
66
 
96
 
67
/*--------------------------------------------------------------------------*/
97
/*--------------------------------------------------------------------------*/
68
 
98
 
69
extern void			debug_set_file
99
extern void			debug_set_file
70
	PROTO_S ((OStreamP));
100
(OStreamP);
71
 
101
 
72
extern void			debug_info_u_name
102
extern void			debug_info_u_name
73
	PROTO_S ((NStringP));
103
(NStringP);
74
 
104
 
75
extern void			debug_info_r_start_capsule
105
extern void			debug_info_r_start_capsule
76
	PROTO_S ((CStringP));
106
(CStringP);
77
extern void			debug_info_r_versions
107
extern void			debug_info_r_versions
78
	PROTO_S ((unsigned, unsigned));
108
(unsigned, unsigned);
79
extern void			debug_info_r_start_unit_decs
109
extern void			debug_info_r_start_unit_decs
80
	PROTO_S ((unsigned));
110
(unsigned);
81
extern void			debug_info_r_unit_dec
111
extern void			debug_info_r_unit_dec
82
	PROTO_S ((NStringP));
112
(NStringP);
83
extern void			debug_info_r_start_shapes
113
extern void			debug_info_r_start_shapes
84
	PROTO_S ((unsigned));
114
(unsigned);
85
extern void			debug_info_r_shape
115
extern void			debug_info_r_shape
86
	PROTO_S ((NStringP, unsigned));
116
(NStringP, unsigned);
87
extern void			debug_info_r_start_names
117
extern void			debug_info_r_start_names
88
	PROTO_S ((unsigned));
118
(unsigned);
89
extern void			debug_info_r_start_shape_names
119
extern void			debug_info_r_start_shape_names
90
	PROTO_S ((NStringP, unsigned));
120
(NStringP, unsigned);
91
extern void			debug_info_r_name
121
extern void			debug_info_r_name
92
	PROTO_S ((NameKeyP, unsigned, unsigned, NameKeyP));
122
(NameKeyP, unsigned, unsigned, NameKeyP);
93
extern void			debug_info_r_start_unit_sets
123
extern void			debug_info_r_start_unit_sets
94
	PROTO_S ((unsigned));
124
(unsigned);
95
extern void			debug_info_r_start_units
125
extern void			debug_info_r_start_units
96
	PROTO_S ((NStringP, unsigned));
126
(NStringP, unsigned);
97
extern void			debug_info_r_start_unit
127
extern void			debug_info_r_start_unit
98
	PROTO_S ((NStringP, unsigned, unsigned));
128
(NStringP, unsigned, unsigned);
99
extern void			debug_info_r_start_counts
129
extern void			debug_info_r_start_counts
100
	PROTO_S ((unsigned));
130
(unsigned);
101
extern void			debug_info_r_count
131
extern void			debug_info_r_count
102
	PROTO_S ((unsigned, NStringP));
132
(unsigned, NStringP);
103
extern void			debug_info_r_start_maps
133
extern void			debug_info_r_start_maps
104
	PROTO_S ((unsigned));
134
(unsigned);
105
extern void			debug_info_r_start_shape_maps
135
extern void			debug_info_r_start_shape_maps
106
	PROTO_S ((NStringP, unsigned));
136
(NStringP, unsigned);
107
extern void			debug_info_r_map
137
extern void			debug_info_r_map
108
	PROTO_S ((unsigned, unsigned, unsigned));
138
(unsigned, unsigned, unsigned);
109
extern void			debug_info_r_unit_body
139
extern void			debug_info_r_unit_body
110
	PROTO_S ((unsigned));
140
(unsigned);
111
extern void			debug_info_r_tld_version
141
extern void			debug_info_r_tld_version
112
	PROTO_S ((unsigned));
142
(unsigned);
113
extern void			debug_info_r_start_usages
143
extern void			debug_info_r_start_usages
114
	PROTO_S ((NStringP, unsigned));
144
(NStringP, unsigned);
115
extern void			debug_info_r_usage
145
extern void			debug_info_r_usage
116
	PROTO_S ((unsigned, unsigned, NameKeyP));
146
(unsigned, unsigned, NameKeyP);
117
extern void			debug_info_r_end_capsule
147
extern void			debug_info_r_end_capsule
118
	PROTO_S ((void));
148
(void);
119
extern void			debug_info_r_abort_capsule
149
extern void			debug_info_r_abort_capsule
120
	PROTO_S ((void));
150
(void);
121
 
151
 
122
extern void			debug_info_w_start_capsule
152
extern void			debug_info_w_start_capsule
123
	PROTO_S ((CStringP));
153
(CStringP);
124
extern void			debug_info_w_versions
154
extern void			debug_info_w_versions
125
	PROTO_S ((unsigned, unsigned));
155
(unsigned, unsigned);
126
extern void			debug_info_w_start_unit_decs
156
extern void			debug_info_w_start_unit_decs
127
	PROTO_S ((unsigned));
157
(unsigned);
128
extern void			debug_info_w_unit_dec
158
extern void			debug_info_w_unit_dec
129
	PROTO_S ((NStringP));
159
(NStringP);
130
extern void			debug_info_w_start_shapes
160
extern void			debug_info_w_start_shapes
131
	PROTO_S ((unsigned));
161
(unsigned);
132
extern void			debug_info_w_shape
162
extern void			debug_info_w_shape
133
	PROTO_S ((NStringP, unsigned));
163
(NStringP, unsigned);
134
extern void			debug_info_w_start_names
164
extern void			debug_info_w_start_names
135
	PROTO_S ((unsigned));
165
(unsigned);
136
extern void			debug_info_w_start_shape_names
166
extern void			debug_info_w_start_shape_names
137
	PROTO_S ((NStringP, unsigned));
167
(NStringP, unsigned);
138
extern void			debug_info_w_name
168
extern void			debug_info_w_name
139
	PROTO_S ((NameKeyP, unsigned));
169
(NameKeyP, unsigned);
140
extern void			debug_info_w_start_unit_sets
170
extern void			debug_info_w_start_unit_sets
141
	PROTO_S ((unsigned));
171
(unsigned);
142
extern void			debug_info_w_start_units
172
extern void			debug_info_w_start_units
143
	PROTO_S ((NStringP, unsigned));
173
(NStringP, unsigned);
144
extern void			debug_info_w_start_unit
174
extern void			debug_info_w_start_unit
145
	PROTO_S ((NStringP, unsigned, unsigned));
175
(NStringP, unsigned, unsigned);
146
extern void			debug_info_w_start_counts
176
extern void			debug_info_w_start_counts
147
	PROTO_S ((unsigned));
177
(unsigned);
148
extern void			debug_info_w_count
178
extern void			debug_info_w_count
149
	PROTO_S ((unsigned, NStringP));
179
(unsigned, NStringP);
150
extern void			debug_info_w_start_maps
180
extern void			debug_info_w_start_maps
151
	PROTO_S ((unsigned));
181
(unsigned);
152
extern void			debug_info_w_start_shape_maps
182
extern void			debug_info_w_start_shape_maps
153
	PROTO_S ((NStringP, unsigned));
183
(NStringP, unsigned);
154
extern void			debug_info_w_map
184
extern void			debug_info_w_map
155
	PROTO_S ((unsigned, unsigned));
185
(unsigned, unsigned);
156
extern void			debug_info_w_unit_body
186
extern void			debug_info_w_unit_body
157
	PROTO_S ((unsigned));
187
(unsigned);
158
extern void			debug_info_w_tld_version
188
extern void			debug_info_w_tld_version
159
	PROTO_S ((unsigned));
189
(unsigned);
160
extern void			debug_info_w_start_usages
190
extern void			debug_info_w_start_usages
161
	PROTO_S ((NStringP));
191
(NStringP);
162
extern void			debug_info_w_usage
192
extern void			debug_info_w_usage
163
	PROTO_S ((unsigned, NameKeyP));
193
(unsigned, NameKeyP);
164
extern void			debug_info_w_end_capsule
194
extern void			debug_info_w_end_capsule
165
	PROTO_S ((void));
195
(void);
166
 
196
 
167
extern void			debug_info_r_start_library
197
extern void			debug_info_r_start_library
168
	PROTO_S ((CStringP));
198
(CStringP);
169
extern void			debug_info_r_lib_versions
199
extern void			debug_info_r_lib_versions
170
	PROTO_S ((unsigned, unsigned));
200
(unsigned, unsigned);
171
extern void			debug_info_r_library_version
201
extern void			debug_info_r_library_version
172
	PROTO_S ((unsigned));
202
(unsigned);
173
extern void			debug_info_r_start_capsules
203
extern void			debug_info_r_start_capsules
174
	PROTO_S ((unsigned));
204
(unsigned);
175
extern void			debug_info_r_capsule
205
extern void			debug_info_r_capsule
176
	PROTO_S ((NStringP, unsigned));
206
(NStringP, unsigned);
177
extern void			debug_info_r_start_index
207
extern void			debug_info_r_start_index
178
	PROTO_S ((unsigned));
208
(unsigned);
179
extern void			debug_info_r_start_shape_index
209
extern void			debug_info_r_start_shape_index
180
	PROTO_S ((NStringP, unsigned));
210
(NStringP, unsigned);
181
extern void			debug_info_r_index_entry
211
extern void			debug_info_r_index_entry
182
	PROTO_S ((NameKeyP, unsigned, unsigned, NameKeyP, CStringP));
212
(NameKeyP, unsigned, unsigned, NameKeyP, CStringP);
183
extern void			debug_info_r_end_library
213
extern void			debug_info_r_end_library
184
	PROTO_S ((void));
214
(void);
185
extern void			debug_info_r_abort_library
215
extern void			debug_info_r_abort_library
186
	PROTO_S ((void));
216
(void);
187
 
217
 
188
extern void			debug_info_w_start_library
218
extern void			debug_info_w_start_library
189
	PROTO_S ((CStringP));
219
(CStringP);
190
extern void			debug_info_w_lib_versions
220
extern void			debug_info_w_lib_versions
191
	PROTO_S ((unsigned, unsigned));
221
(unsigned, unsigned);
192
extern void			debug_info_w_library_version
222
extern void			debug_info_w_library_version
193
	PROTO_S ((unsigned));
223
(unsigned);
194
extern void			debug_info_w_start_capsules
224
extern void			debug_info_w_start_capsules
195
	PROTO_S ((unsigned));
225
(unsigned);
196
extern void			debug_info_w_capsule
226
extern void			debug_info_w_capsule
197
	PROTO_S ((CStringP, unsigned));
227
(CStringP, unsigned);
198
extern void			debug_info_w_start_index
228
extern void			debug_info_w_start_index
199
	PROTO_S ((unsigned));
229
(unsigned);
200
extern void			debug_info_w_start_shape_index
230
extern void			debug_info_w_start_shape_index
201
	PROTO_S ((NStringP, unsigned));
231
(NStringP, unsigned);
202
extern void			debug_info_w_index_entry
232
extern void			debug_info_w_index_entry
203
	PROTO_S ((NameKeyP, unsigned, CStringP, unsigned));
233
(NameKeyP, unsigned, CStringP, unsigned);
204
extern void			debug_info_w_end_library
234
extern void			debug_info_w_end_library
205
	PROTO_S ((void));
235
(void);
206
 
236
 
207
extern void			debug_info_l_not_needed
237
extern void			debug_info_l_not_needed
208
	PROTO_S ((NameKeyP, NStringP, unsigned));
238
(NameKeyP, NStringP, unsigned);
209
extern void			debug_info_l_not_found
239
extern void			debug_info_l_not_found
210
	PROTO_S ((NameKeyP, NStringP, unsigned));
240
(NameKeyP, NStringP, unsigned);
211
extern void			debug_info_l_found
241
extern void			debug_info_l_found
212
	PROTO_S ((NameKeyP, NStringP, unsigned, CStringP));
242
(NameKeyP, NStringP, unsigned, CStringP);
213
extern void			debug_info_l_hide
243
extern void			debug_info_l_hide
214
	PROTO_S ((NStringP, NameKeyP));
244
(NStringP, NameKeyP);
215
extern void			debug_info_l_keep
245
extern void			debug_info_l_keep
216
	PROTO_S ((NStringP, NameKeyP));
246
(NStringP, NameKeyP);
217
extern void			debug_info_l_suppress
247
extern void			debug_info_l_suppress
218
	PROTO_S ((NStringP, NameKeyP));
248
(NStringP, NameKeyP);
219
extern void			debug_info_l_rename
249
extern void			debug_info_l_rename
220
	PROTO_S ((NStringP, NameKeyP, NameKeyP));
250
(NStringP, NameKeyP, NameKeyP);
221
 
251
 
222
#endif /* !defined (H_DEBUG) */
252
#endif /* !defined (H_DEBUG) */
223

253

224
/*
254
/*
225
 * Local variables(smf):
255
 * Local variables(smf):