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
226 #define PTR_NOT_EQUAL(table, ptr, hash_val, key) \ argument
227 ((ptr) != 0 && (ptr->hash != (hash_val) || !EQUAL((table), (key), (ptr)->key)))
238 if (PTR_NOT_EQUAL(table, ptr, hash_val, key)) {\
240 while (PTR_NOT_EQUAL(table, ptr->next, hash_val, key)) {\
248 st_lookup(table, key, value) in st_lookup() argument
250 register st_data_t key;
256 hash_val = do_hash(key, table);
268 #define ADD_DIRECT(table, key, value, hash_val, bin_pos)\ argument
279 entry->key = key;\
287 st_insert(table, key, value) in st_insert() argument
289 register st_data_t key;
295 hash_val = do_hash(key, table);
299 ADD_DIRECT(table, key, value, hash_val, bin_pos);
309 st_add_direct(table, key, value) in st_add_direct() argument
311 st_data_t key;
316 hash_val = do_hash(key, table);
318 ADD_DIRECT(table, key, value, hash_val, bin_pos);
392 st_delete(table, key, value) in st_delete() argument
394 register st_data_t *key;
401 hash_val = do_hash_bin(*key, table);
409 if (EQUAL(table, *key, ptr->key)) {
413 *key = ptr->key;
419 if (EQUAL(table, ptr->next->key, *key)) {
424 *key = tmp->key;
434 st_delete_safe(table, key, value, never) in st_delete_safe() argument
436 register st_data_t *key;
443 hash_val = do_hash_bin(*key, table);
452 if ((ptr->key != never) && EQUAL(table, ptr->key, *key)) {
454 *key = ptr->key;
456 ptr->key = ptr->record = never;
466 delete_never(st_data_t key __attribute__ ((unused)), st_data_t value, in delete_never() argument
469 delete_never(key, value, never) in delete_never()
470 st_data_t key, value, never; in delete_never()
501 retval = (*func)(ptr->key, ptr->record, arg);