46 |
|
|
47 |
typedef struct bucket |
typedef struct bucket |
48 |
{ |
{ |
|
/* Needed for the hash table. */ |
|
|
struct bucket *link; |
|
|
struct bucket *next; |
|
|
|
|
49 |
/* The key, name of the symbol. */ |
/* The key, name of the symbol. */ |
50 |
char *tag; |
char *tag; |
51 |
/* Its type. */ |
/* Its type. */ |
62 |
symbol_class class; |
symbol_class class; |
63 |
} bucket; |
} bucket; |
64 |
|
|
65 |
|
/* A function to apply to each symbol. */ |
66 |
extern bucket *firstsymbol; |
typedef bool (*bucket_processor) PARAMS ((bucket *)); |
67 |
|
|
68 |
bucket *getsym PARAMS ((const char *)); |
bucket *getsym PARAMS ((const char *)); |
69 |
|
|
70 |
void tabinit PARAMS ((void)); |
void buckets_new PARAMS ((void)); |
71 |
void free_symtab PARAMS ((void)); |
void buckets_do PARAMS ((bucket_processor processor, void *processor_data)); |
72 |
|
void buckets_free PARAMS ((void)); |
73 |
|
|
74 |
#endif /* !SYMTAB_H_ */ |
#endif /* !SYMTAB_H_ */ |