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
218 #define PTR_NOT_EQUAL(table, ptr, hash_val, key) \ argument
219 ((ptr) != 0 && (ptr->hash != (hash_val) || !EQUAL((table), (key), (ptr)->key)))
230 if (PTR_NOT_EQUAL(table, ptr, hash_val, key)) {\
232 while (PTR_NOT_EQUAL(table, ptr->next, hash_val, key)) {\
240 st_lookup(table, key, value) in st_lookup() argument
242 register st_data_t key;
248 hash_val = do_hash(key, table);
260 #define ADD_DIRECT(table, key, value, hash_val, bin_pos)\ argument
271 entry->key = key;\
279 st_insert(table, key, value) in st_insert() argument
281 register st_data_t key;
287 hash_val = do_hash(key, table);
291 ADD_DIRECT(table, key, value, hash_val, bin_pos);
301 st_add_direct(table, key, value) in st_add_direct() argument
303 st_data_t key;
308 hash_val = do_hash(key, table);
310 ADD_DIRECT(table, key, value, hash_val, bin_pos);
381 st_delete(table, key, value) in st_delete() argument
383 register st_data_t *key;
390 hash_val = do_hash_bin(*key, table);
398 if (EQUAL(table, *key, ptr->key)) {
402 *key = ptr->key;
408 if (EQUAL(table, ptr->next->key, *key)) {
413 *key = tmp->key;
423 st_delete_safe(table, key, value, never) in st_delete_safe() argument
425 register st_data_t *key;
432 hash_val = do_hash_bin(*key, table);
441 if ((ptr->key != never) && EQUAL(table, ptr->key, *key)) {
443 *key = ptr->key;
445 ptr->key = ptr->record = never;
455 delete_never(st_data_t key __attribute__ ((unused)), st_data_t value, in delete_never() argument
458 delete_never(key, value, never) in delete_never()
459 st_data_t key, value, never; in delete_never()
490 retval = (*func)(ptr->key, ptr->record, arg);