Go to the source code of this file.
Definition at line 182 of file hash_table.c.
References hash_code().
193 printf(
"*** Hash table %lx:\n",(
long)table);
194 printf(
"Size: %d\n",table->
size);
195 printf(
"Used: %d\n",table->
used);
197 for(i=0;i<table->
size;i++)
203 printf(
"%4d %4d %s %s\n",
213 printf(
"Really used: %d\n",t);
214 printf(
"Collisions: %d = %1.3f%%\n",
int hash_code(ptr_hash_table table, char *symbol)
Definition at line 48 of file hash_table.c.
References hash_insert(), and NULL.
65 for(i=0;i<new_size;i++)
68 for(i=0;i<old_size;i++)
void hash_insert(ptr_hash_table table, char *symbol, ptr_keyword keyword)
Definition at line 155 of file hash_table.c.
References hash_expand(), and hash_find().
170 table->
data[n]=keyword;
int hash_find(ptr_hash_table table, char *symbol)
void hash_expand(ptr_hash_table table, int new_size)