Lines Matching refs:key
20 st_data_t key; member
59 #define do_hash(key,table) (unsigned int)(*(table)->type->hash)((key)) argument
60 #define do_hash_bin(key,table) (do_hash(key, table)%(table)->num_bins) argument
225 #define PTR_NOT_EQUAL(table, ptr, hash_val, key) \ argument
226 ((ptr) != 0 && (ptr->hash != (hash_val) || !EQUAL((table), (key), (ptr)->key)))
237 if (PTR_NOT_EQUAL(table, ptr, hash_val, key)) {\
239 while (PTR_NOT_EQUAL(table, ptr->next, hash_val, key)) {\
247 st_lookup(table, key, value) in st_lookup() argument
249 register st_data_t key;
255 hash_val = do_hash(key, table);
267 #define ADD_DIRECT(table, key, value, hash_val, bin_pos, ret) \ argument
277 entry->key = key;\
285 st_insert(table, key, value) in st_insert() argument
287 register st_data_t key;
293 hash_val = do_hash(key, table);
297 ADD_DIRECT(table, key, value, hash_val, bin_pos, ONIGERR_MEMORY);
307 st_add_direct(table, key, value) in st_add_direct() argument
309 st_data_t key;
314 hash_val = do_hash(key, table);
316 ADD_DIRECT(table, key, value, hash_val, bin_pos,);
390 st_delete(table, key, value) in st_delete() argument
392 register st_data_t *key;
399 hash_val = do_hash_bin(*key, table);
407 if (EQUAL(table, *key, ptr->key)) {
411 *key = ptr->key;
417 if (EQUAL(table, ptr->next->key, *key)) {
422 *key = tmp->key;
432 st_delete_safe(table, key, value, never) in st_delete_safe() argument
434 register st_data_t *key;
441 hash_val = do_hash_bin(*key, table);
450 if ((ptr->key != never) && EQUAL(table, ptr->key, *key)) {
452 *key = ptr->key;
454 ptr->key = ptr->record = never;
464 delete_never(st_data_t key __attribute__ ((unused)), st_data_t value, in delete_never() argument
467 delete_never(key, value, never) in delete_never()
468 st_data_t key, value, never; in delete_never()
499 retval = (*func)(ptr->key, ptr->record, arg);