Lines Matching refs:hi
127 APR_DECLARE(apr_hash_index_t *) apr_hash_next(apr_hash_index_t *hi)
129 hi->this = hi->next;
130 while (!hi->this) {
131 if (hi->index > hi->ht->max)
134 hi->this = hi->ht->array[hi->index++];
136 hi->next = hi->this->next;
137 return hi;
142 apr_hash_index_t *hi;
144 hi = apr_palloc(p, sizeof(*hi));
146 hi = &ht->iterator;
148 hi->ht = ht;
149 hi->index = 0;
150 hi->this = NULL;
151 hi->next = NULL;
152 return apr_hash_next(hi);
155 APR_DECLARE(void) apr_hash_this(apr_hash_index_t *hi,
160 if (key) *key = hi->this->key;
161 if (klen) *klen = hi->this->klen;
162 if (val) *val = (void *)hi->this->val;
172 apr_hash_index_t *hi;
178 for (hi = apr_hash_first(NULL, ht); hi; hi = apr_hash_next(hi)) {
179 unsigned int i = hi->this->hash & new_max;
180 hi->this->next = new_array[i];
181 new_array[i] = hi->this;
386 apr_hash_index_t *hi;
387 for (hi = apr_hash_first(NULL, ht); hi; hi = apr_hash_next(hi))
388 apr_hash_set(ht, hi->this->key, hi->this->klen, NULL);
508 apr_hash_index_t *hi;
516 if ((hi = apr_hash_next(&hix))) {
519 rv = (*comp)(rec, hi->this->key, hi->this->klen, hi->this->val);
520 } while (rv && (hi = apr_hash_next(hi)));