61 for(i=0;i<new_size;i++)
64 for(i=0;i<old_size;i++)
139 return table->
data[n];
161 table->
data[n]=keyword;
182 printf(
"*** Hash table %lx:\n",(
long)table);
183 printf(
"Size: %d\n",table->size);
184 printf(
"Used: %d\n",table->used);
186 for(i=0;i<table->size;i++)
189 s=table->data[i]->symbol;
192 printf(
"%4d %4d %s %s\n",
202 printf(
"Really used: %d\n",t);
203 printf(
"Collisions: %d = %1.3f%%\n",
int hash_find(ptr_hash_table table, char *symbol)
hash_find
struct wl_hash_table * ptr_hash_table
void hash_insert(ptr_hash_table table, char *symbol, ptr_keyword keyword)
HASH_INSERT.
void hash_display(ptr_hash_table table)
HASH_DISPLAY.
int hash_code(ptr_hash_table table, char *symbol)
HASH_CODE.
ptr_definition first_definition
ptr_keyword hash_lookup(ptr_hash_table table, char *symbol)
HASH_LOOKUP.
void hash_expand(ptr_hash_table table, int new_size)
HASH_EXPAND.
ptr_hash_table hash_create(int size)
HASH_CREATE.