~ubuntu-branches/ubuntu/vivid/gcl/vivid

« back to all changes in this revision

Viewing changes to h/ptable.h

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2002-03-04 14:29:59 UTC
  • Revision ID: james.westby@ubuntu.com-20020304142959-dey14w08kr7lldu3
Tags: upstream-2.5.0.cvs20020219
ImportĀ upstreamĀ versionĀ 2.5.0.cvs20020219

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* format of a rsyms output file:
 
2
struct lsymbol_table tab;   gives number of symbols, and sum of length of 
 
3
                         strings 
 
4
addr,char[],addr,char[],...
 
5
This can be read since the addr is sizeof(int) and the char[] is null
 
6
terminated, immediately followed by and addr...
 
7
there are tab.n_symbols pairs occurring.
 
8
 
 
9
*/
 
10
#ifndef HEADER_SEEK
 
11
#define HEADER_SEEK(x)
 
12
#endif
 
13
 
 
14
 
 
15
typedef unsigned int addr;
 
16
 
 
17
struct node{
 
18
  char *string;
 
19
  addr address;
 
20
#ifdef AIX3
 
21
  unsigned short tc_offset;
 
22
#endif  
 
23
};
 
24
 
 
25
struct lsymbol_table{
 
26
  unsigned int n_symbols ;
 
27
  unsigned int tot_leng;};
 
28
 
 
29
#define SYM_ADDRESS(table,i) ((*(table).ptable))[i].address
 
30
#define SYM_STRING(table,i) ((*(table).ptable))[i].string
 
31
#define SYM_TC_OFF(table,i) ((*(table).ptable))[i].tc_offset
 
32
 
 
33
/* typedef struct node *TABL;  */
 
34
/* gcc does not like typedef struct node TABL[];*/
 
35
 
 
36
typedef struct node TABL[]; 
 
37
 
 
38
struct node * find_sym_ptable();
 
39
 
 
40
struct  string_address_table
 
41
{ TABL *ptable;
 
42
  unsigned int length;
 
43
  unsigned int alloc_length;
 
44
};
 
45
 
 
46
struct string_address_table c_table;
 
47
struct string_address_table combined_table;
 
48
 
 
49
#define PTABLE_EXTRA 20
 
50
 
 
51
char *malloc();