Lines Matching refs:hash_entry
66 static struct hash_entry {
69 struct hash_entry *next;
92 struct hash_entry *hash_entry = malloc(sizeof(*hash_entry));
97 if(hash_entry == NULL) {
102 hash_entry->start = start;
103 hash_entry->offset = offset;
104 hash_entry->next = hash_table[hash];
105 hash_table[hash] = hash_entry;
118 struct hash_entry *hash_entry = hash_table[hash];
120 for(; hash_entry; hash_entry = hash_entry->next)
121 if(hash_entry->start == start)
125 hash_entry ? hash_entry->offset : -1);
127 return hash_entry ? hash_entry->offset : -1;