Lines Matching refs:hp
69 strhash_t *hp, *hq;
73 for (hp = sp->str_hash[i]; hp != NULL; hp = hq) {
74 hq = hp->str_next;
75 free(hp);
107 strtab_compare(strtab_t *sp, strhash_t *hp, const char *str, size_t len)
109 ulong_t b = hp->str_buf;
110 const char *buf = hp->str_data;
157 strhash_t *hp;
170 for (hp = sp->str_hash[h]; hp != NULL; hp = hp->str_next) {
171 if (strtab_compare(sp, hp, str, len + 1) == 0)
172 return (hp->str_off);
179 hp = xmalloc(sizeof (strhash_t));
181 hp->str_data = sp->str_ptr;
182 hp->str_buf = sp->str_nbufs - 1;
183 hp->str_off = sp->str_size;
184 hp->str_len = len;
185 hp->str_next = sp->str_hash[h];
187 sp->str_hash[h] = hp;
197 return (hp->str_off);
233 const strhash_t *hp;
237 for (hp = sp->str_hash[i]; hp != NULL; hp = hp->str_next) {
238 const char *buf = hp->str_data;
239 ulong_t b = hp->str_buf;
242 (void) printf("[%lu] %lu \"", (ulong_t)hp->str_off, b);
244 for (len = hp->str_len; len != 0; len -= n) {