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
/**********************************************************************
32
$Author: release $
33
$Date: 1998/02/04 10:43:44 $
34
$Revision: 1.2 $
35
$Log: new_symbol.h,v $
36
 * Revision 1.2  1998/02/04  10:43:44  release
37
 * Changes during testing.
38
 *
39
 * Revision 1.1.1.1  1998/01/17  15:56:06  release
40
 * First version to be checked into rolling release.
41
 *
42
 * Revision 1.1  1995/08/16  15:45:41  currie
43
 * Initial revision
44
 *
45
 * Revision 1.1  1995/04/13  09:08:06  currie
46
 * Initial revision
47
 *
48
***********************************************************************/
49
#include "common_types.h"
50
 
51
extern void init_table_space PROTO_S (( long, long ));
52
/* parameters - number of files to be translated and total number of procedures. Sets up tables for symbol table etc storage	*/
53
 
54
extern long get_sym_index PROTO_S (( long ));
55
/* returns the index into the symbol table for the given file	*/
56
 
57
extern long add_dense_no PROTO_S (( long, long ));
58
/* returns a dense number (index into dense number table) corresponding to the parameters filenum and symbol table index */
59
 
60
extern long add_aux PROTO_S (( AUXU, long ));
61
/* returns index into auxillary table after adding the AUXU to the table for the file number parameter */
62
 
63
/* The following 4 procedures take parameters:-
64
 
65
char* string ... identifier of symbol
66
 
67
long value ...  value required in symbol table
68
 
69
short symtype ... symbol type as given in sym.h
70
 
71
short symclass ... symbol class as given in sym.h
72
 
73
type s ... typeof the symbol (except for stFile, stEnd etc) - this is
74
converted to an AUXU which is added to the auxillary table. Structs and
75
unions must correspond to a type previously entered in the symbol table
76
which can be found by find_aux. Bitfields are negative shapes with
77
size = abs and btUInt in auxillary table. For a symtype stProc or
78
stStaticProc this shape should be the return type.
79
 
80
long filenum ... index for the file
81
*/
82
 
83
 
84
extern long new_lsym PROTO_S (( char*, long, short, short, diag_type, long ));
85
/* adds symbol to local symbol table */
86
 
87
extern long new_lsym_d PROTO_S (( char*, long, short, short, diag_type, long ));
88
/* adds symbol to local symbol table and returns its dense number */
89
 
90
extern long new_esym PROTO_S (( char*, long v, short, short, diag_type, long ));
91
/* adds symbol to external symbol table */
92
 
93
extern long new_esym_d PROTO_S (( char*, long, short, short, diag_type, long ));
94
/* adds symbol to external symbol table and returns its dense number */
95
 
96
 
97
extern void output_symtab PROTO_S (( char* ));
98
/* procedure to make the symbol table file given its name */
99
 
100
 
101
extern long add_lsym PROTO_S (( long, SYMR* ));
102
extern long add_string PROTO_S (( char*, STRINGS* ));
103
extern long add_st_aux PROTO_S (( long ));
104
extern long add_to_ext_strings PROTO_S (( char* ));
105
extern long add_to_loc_strings PROTO_S (( char*, int ));
106
extern long add_un_aux PROTO_S (( long ));
107
extern void add_proc PROTO_S (( long, long ));
108
 
109
extern AUXU* get_aux_ptr PROTO_S ((long, long));
110
extern DNR* get_dense_ptr PROTO_S (( long ));
111
extern long add_esym PROTO_S (( long, SYMR* ));
112
extern SYMR* get_sym_ptr PROTO_S (( long, long ));