Lines Matching defs:bucket
63 * bucket is acceptable, but if there is too much overflow, then
73 * A key bucket.
79 struct dict_bucket *db_next; /* next bucket */
296 dict_bucket_t *bucket;
299 for (bucket = hdl->dh_buckets[i]; bucket != NULL;
300 bucket = bucket->db_next)
301 if ((*hdl->dh_cmp)(key, bucket->db_key) == 0)
303 return (bucket ? bucket->db_value : NULL);
314 dict_bucket_t *bucket;
318 for (bucket = hdl->dh_buckets[i]; bucket != NULL;
319 bucket = bucket->db_next)
320 if ((*hdl->dh_cmp)(key, bucket->db_key) == 0)
322 if (bucket) {
323 prev = bucket->db_value;
325 bucket = malloc(sizeof (dict_bucket_t));
326 bucket->db_key = key;
327 bucket->db_next = hdl->dh_buckets[i];
328 hdl->dh_buckets[i] = bucket;
332 bucket->db_value = value;
352 dict_bucket_t *bucket = *pbucket;
353 void *value = bucket->db_value;
355 *pbucket = bucket->db_next;
356 free(bucket);
375 dict_bucket_t *bucket = NULL;
379 for (bucket = hdl->dh_buckets[i]; bucket != NULL;
380 bucket = bucket->db_next) {
381 apply(bucket->db_key, &bucket->db_value, cl);