4 |
|
|
5 |
#include <stdlib.h> |
#include <stdlib.h> |
6 |
#include <unistd.h> |
#include <unistd.h> |
7 |
|
#include <string.h> |
8 |
|
|
9 |
#include "include.h" |
#include "include.h" |
10 |
#include "page.h" |
#include "page.h" |
70 |
|
|
71 |
|
|
72 |
#ifdef SPECIAL_RSYM |
#ifdef SPECIAL_RSYM |
73 |
|
void |
74 |
read_special_symbols(symfile) |
read_special_symbols(symfile) |
75 |
char *symfile; |
char *symfile; |
76 |
{FILE *symin; |
{FILE *symin; |
101 |
(SYM_ADDRESS(c_table,i))=jj; |
(SYM_ADDRESS(c_table,i))=jj; |
102 |
SYM_STRING(c_table,i)=symbols; |
SYM_STRING(c_table,i)=symbols; |
103 |
|
|
104 |
while( *(symbols++) = getc(symin)) |
while((*(symbols++) = getc(symin))) |
105 |
{;} |
{;} |
106 |
/* dprintf( name %s , SYM_STRING(c_table,i)); |
/* dprintf( name %s , SYM_STRING(c_table,i)); |
107 |
dprintf( addr %d , jj); |
dprintf( addr %d , jj); |
117 |
if (symin) fclose(symin); |
if (symin) fclose(symin); |
118 |
} |
} |
119 |
|
|
120 |
node_compare(node1,node2) |
int |
121 |
char *node1, *node2; |
node_compare(const void *node1,const void *node2) |
122 |
{ return(strcmp( ((struct node *)node1)->string, |
{ return(strcmp( ((struct node *)node1)->string, |
123 |
((struct node *)node2)->string));} |
((struct node *)node2)->string));} |
124 |
|
|