Go to the source code of this file.
|
int | hashfunct (char[], int) |
|
struct hash_entry * | findsym (char *sym, struct hash_entry **table, int table_size) |
|
int | addsym (char *sym, char *str_def, int int_def, struct hash_entry **table, int table_size) |
|
void | cclinstal (Char *ccltxt, int cclnum) |
|
int | ccllookup (Char *ccltxt) |
|
int | hashfunct (char *str, int hash_size) |
|
void | ndinstal (char *nd, Char *def) |
|
Char * | ndlookup (char *nd) |
|
void | scinstal (char *str, int xcluflg) |
|
int | sclookup (char *str) |
|
int addsym |
( |
char * |
sym, |
|
|
char * |
str_def, |
|
|
int |
int_def, |
|
|
struct hash_entry ** |
table, |
|
|
int |
table_size |
|
) |
| |
Definition at line 64 of file sym.c.
66 int hash_val =
hashfunct( sym, table_size );
67 struct hash_entry *sym_entry = table[hash_val];
73 if ( ! strcmp( sym, sym_entry->
name ) )
78 sym_entry = sym_entry->
next;
84 if ( new_entry ==
NULL )
85 flexfatal(
"symbol table memory allocation failed" );
87 if ( (successor = table[hash_val]) )
89 new_entry->
next = successor;
90 successor->
prev = new_entry;
96 new_entry->
name = sym;
100 table[hash_val] = new_entry;
int hashfunct(char[], int)
void cclinstal |
( |
Char * |
ccltxt, |
|
|
int |
cclnum |
|
) |
| |
Definition at line 114 of file sym.c.
int addsym(char *sym, char *str_def, int int_def, struct hash_entry **table, int table_size)
struct hash_entry * ccltab[CCL_HASH_SIZE]
Char * copy_unsigned_string(Char *str)
int ccllookup |
( |
Char * |
ccltxt | ) |
|
Definition at line 134 of file sym.c.
struct hash_entry * ccltab[CCL_HASH_SIZE]
struct hash_entry * findsym(char *sym, struct hash_entry **table, int table_size)
Definition at line 150 of file sym.c.
160 if ( ! strcmp( sym, sym_entry->
name ) )
161 return ( sym_entry );
162 sym_entry = sym_entry->
next;
165 return ( &empty_entry );
int hashfunct(char[], int)
int hashfunct |
( |
char |
[], |
|
|
int |
|
|
) |
| |
int hashfunct |
( |
char * |
str, |
|
|
int |
hash_size |
|
) |
| |
Definition at line 177 of file sym.c.
185 while (
str[locstr] )
186 hashval = ((hashval << 1) +
str[locstr++]) % hash_size;
void ndinstal |
( |
char * |
nd, |
|
|
Char * |
def |
|
) |
| |
Definition at line 200 of file sym.c.
207 synerr(
"name defined twice" );
int addsym(char *sym, char *str_def, int int_def, struct hash_entry **table, int table_size)
#define NAME_TABLE_HASH_SIZE
char * copy_string(char *str)
struct hash_entry * ndtbl[NAME_TABLE_HASH_SIZE]
Char * copy_unsigned_string(Char *str)
Char* ndlookup |
( |
char * |
nd | ) |
|
Definition at line 219 of file sym.c.
#define NAME_TABLE_HASH_SIZE
struct hash_entry * ndtbl[NAME_TABLE_HASH_SIZE]
struct hash_entry * findsym(char *sym, struct hash_entry **table, int table_size)
void scinstal |
( |
char * |
str, |
|
|
int |
xcluflg |
|
) |
| |
Definition at line 236 of file sym.c.
249 if ( strcmp(
str,
"0" ) )
int addsym(char *sym, char *str_def, int int_def, struct hash_entry **table, int table_size)
void format_pinpoint_message(char[], char[])
#define START_COND_HASH_SIZE
#define MAX_SCS_INCREMENT
char * copy_string(char *str)
struct hash_entry * sctbl[START_COND_HASH_SIZE]
#define reallocate_integer_array(array, size)
#define reallocate_char_ptr_array(array, size)
int sclookup |
( |
char * |
str | ) |
|
Definition at line 287 of file sym.c.
#define START_COND_HASH_SIZE
struct hash_entry * sctbl[START_COND_HASH_SIZE]
struct hash_entry * findsym(char *sym, struct hash_entry **table, int table_size)
Definition at line 47 of file sym.c.
Definition at line 45 of file sym.c.
Definition at line 46 of file sym.c.