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 |
/* $Id: symbol.h,v 1.1.1.1 1998/01/17 15:56:00 release Exp $ */
|
|
|
32 |
|
|
|
33 |
/*
|
|
|
34 |
$Log: symbol.h,v $
|
|
|
35 |
* Revision 1.1.1.1 1998/01/17 15:56:00 release
|
|
|
36 |
* First version to be checked into rolling release.
|
|
|
37 |
*
|
|
|
38 |
* Revision 1.1.1.1 1995/03/23 10:39:31 john
|
|
|
39 |
* Entered into CVS
|
|
|
40 |
*
|
|
|
41 |
* Revision 1.3 1995/01/31 14:27:39 john
|
|
|
42 |
* Minor change
|
|
|
43 |
*
|
|
|
44 |
*/
|
|
|
45 |
|
|
|
46 |
#include "common_types.h"
|
|
|
47 |
|
|
|
48 |
void init_table_space PROTO_S ((int, int));
|
|
|
49 |
/* parameters - number of files to be translated and total number of
|
|
|
50 |
procedures. Sets up tables for symbol table etc storage */
|
|
|
51 |
|
|
|
52 |
int get_sym_index PROTO_S ((int));
|
|
|
53 |
/* returns the index into the symbol table for the given file */
|
|
|
54 |
|
|
|
55 |
int add_dense_no PROTO_S ((int, int));
|
|
|
56 |
/* returns a dense number (index into dense number table) corresponding
|
|
|
57 |
to the parameters filenum and symbol table index */
|
|
|
58 |
|
|
|
59 |
/* The following 4 procedures take parameters:-
|
|
|
60 |
|
|
|
61 |
char* string ... identifier of symbol
|
|
|
62 |
|
|
|
63 |
long value ... value required in symbol table
|
|
|
64 |
|
|
|
65 |
short symtype ... symbol type as given in sym.h
|
|
|
66 |
|
|
|
67 |
short symclass ... symbol class as given in sym.h
|
|
|
68 |
|
|
|
69 |
type s ... typeof the symbol (except for stFile, stEnd etc) - this is
|
|
|
70 |
converted to an AUXU which is added to the auxillary table. Structs and
|
|
|
71 |
unions must correspond to a type previously entered in the symbol table
|
|
|
72 |
which can be found by find_aux. Bitfields are negative shapes with
|
|
|
73 |
size = abs and btUInt in auxillary table. For a symtype stProc or
|
|
|
74 |
stStaticProc this shape should be the return type.
|
|
|
75 |
|
|
|
76 |
long filenum ... index for the file
|
|
|
77 |
*/
|
|
|
78 |
|
|
|
79 |
|
|
|
80 |
int new_lsym PROTO_S ((char *,int,int,int,diag_type,int));
|
|
|
81 |
/* adds symbol to local symbol table */
|
|
|
82 |
|
|
|
83 |
int new_lsym_d PROTO_S ((char *,int,int,int,diag_type,int));
|
|
|
84 |
/* adds symbol to local symbol table and returns its dense number */
|
|
|
85 |
|
|
|
86 |
int new_esym PROTO_S ((char *,int,int,int,diag_type,int));
|
|
|
87 |
/* adds symbol to external symbol table */
|
|
|
88 |
|
|
|
89 |
int new_esym_d PROTO_S ((char *,int,int,int,diag_type,int));
|
|
|
90 |
/* adds symbol to external symbol table and returns its dense number */
|
|
|
91 |
|
|
|
92 |
|
|
|
93 |
/* procedure to make the symbol table file given its name */
|
|
|
94 |
|
|
|
95 |
void output_symtab PROTO_S ((char*));
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
|