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 -... 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 74... Line 104...
74
 *
104
 *
75
**********************************************************************/
105
**********************************************************************/
76
 
106
 
77
#ifndef entries_tag
107
#ifndef entries_tag
78
#define entries_tag 1
108
#define entries_tag 1
79
 
109
 
80
 
110
 
81
typedef struct 
111
typedef struct {
82
{
-
 
83
  int		index;
112
	int	index;
84
  long *	attr;
113
	long	*attr;
85
  long		valid;
114
	long	valid;
86
  long		special;
115
	long	special;
87
#if 1
116
#if 1
88
  char *	aname;
117
	char	*aname;
89
#endif
118
#endif
90
} abbrev_entry;
119
} abbrev_entry;
91
 
120
 
92
extern abbrev_entry
121
extern abbrev_entry
93
  dwe_comp_unit,
122
  dwe_comp_unit,
Line 207... Line 236...
207
  dwe_moved_x,
236
  dwe_moved_x,
208
  dwe_moved_xr,
237
  dwe_moved_xr,
209
  dwe_optim,
238
  dwe_optim,
210
  dwe_proc;
239
  dwe_proc;
211
 
240
 
212
extern void init_dw_entries PROTO_S ((void));
241
extern void init_dw_entries(void);
213
 
242
 
214
extern long dw_entry PROTO_S ((abbrev_entry en, long attr));
243
extern long dw_entry(abbrev_entry en, long attr);
215
 
244
 
216
 
245
 
217
 
246
 
218
	/* general attributes */
247
	/* general attributes */
219
 
248
 
Line 269... Line 298...
269
	/* attributes for bounds */
298
	/* attributes for bounds */
270
 
299
 
271
#define H_LB	0x40000		/* lower bound */
300
#define H_LB	0x40000		/* lower bound */
272
#define H_UB	0x80000		/* upper bound */
301
#define H_UB	0x80000		/* upper bound */
273
#define H_CN	0x100000	/* count */
302
#define H_CN	0x100000	/* count */
274
 
303
 
275
	/* attributes for members */
304
	/* attributes for members */
276
 
305
 
277
/*	H_LC	0x20000	*/
306
/*	H_LC	0x20000	*/
278
#define H_BF	0x10000		/* bitfield */
307
#define H_BF	0x10000		/* bitfield */
279
#define H_DS	0x40000		/* discriminant */
308
#define H_DS	0x40000		/* discriminant */
280
/*	H_DF	0x100000 */
309
/*	H_DF	0x100000 */
281
/*	H_DX	0x200000 REMOVE	*/
310
/*	H_DX	0x200000 REMOVE	*/
282
 
311
 
283
	/* attributes for class types */
312
	/* attributes for class types */
284
 
313
 
285
/*	H_AD	0x40000 */
314
/*	H_AD	0x40000 */
286
#define H_VS	0x100000	/* vtable static */
315
#define H_VS	0x100000	/* vtable static */
287
#define H_VD	0x200000	/* vtable dynamic */
316
#define H_VD	0x200000	/* vtable dynamic */
288
#define H_RS	0x400000	/* rtti static */
317
#define H_RS	0x400000	/* rtti static */
289
#define H_RD	0x800000	/* rtti dynamic */
318
#define H_RD	0x800000	/* rtti dynamic */
290
 
319
 
291
	/* attributes for Ada tasks and Synchronised types */
320
	/* attributes for Ada tasks and Synchronised types */
292
 
321
 
293
#define H_CB	0x100000	/* control block */
322
#define H_CB	0x100000	/* control block */
294
#define H_ID	0x200000	/* task id */
323
#define H_ID	0x200000	/* task id */
295
 
324
 
296
	/* attributes for constraints */
325
	/* attributes for constraints */
297
 
326
 
298
#define	H_RM	0x800000	/* ref member */
327
#define	H_RM	0x800000	/* ref member */
299
/*	H_TP	0x100 */
328
/*	H_TP	0x100 */
300
/*	H_CV	0x10000 */
329
/*	H_CV	0x10000 */
301
 
330
 
302
	/* attributes for fixed point type */
331
	/* attributes for fixed point type */
303
 
332
 
304
/*	H_DF	0x100000    delta */
333
/*	H_DF	0x100000    delta */
305
/*	H_DS	0x40000     digits */
334
/*	H_DS	0x40000     digits */
306
 
-
 
307
 
335
 
308
 
-
 
309
#define H_EXTN	0x80000000
336
#define H_EXTN	0x80000000
310
 
-
 
311
 
-
 
312
 
337
 
313
#endif
338
#endif