Lines Matching refs:p
148 cpc_strhash_t *p; in __cpc_strhash_alloc() local
150 if ((p = malloc(sizeof (cpc_strhash_t))) == NULL) in __cpc_strhash_alloc()
153 p->str = ""; in __cpc_strhash_alloc()
154 p->cur = NULL; in __cpc_strhash_alloc()
155 p->next = NULL; in __cpc_strhash_alloc()
157 return (p); in __cpc_strhash_alloc()
163 cpc_strhash_t *p = hash, *f; in __cpc_strhash_free() local
165 while (p != NULL) { in __cpc_strhash_free()
166 f = p; in __cpc_strhash_free()
167 p = p->next; in __cpc_strhash_free()
184 cpc_strhash_t *p, *tmp; in __cpc_strhash_add() local
186 for (p = hash; p != NULL; p = p->next) { in __cpc_strhash_add()
187 if (strcmp(p->str, key) == 0) in __cpc_strhash_add()
191 if ((p = malloc(sizeof (*p))) == NULL) in __cpc_strhash_add()
194 p->str = key; in __cpc_strhash_add()
196 hash->next = p; in __cpc_strhash_add()
197 p->next = tmp; in __cpc_strhash_add()
202 hash->cur = p; in __cpc_strhash_add()
210 cpc_strhash_t *p; in __cpc_strhash_next() local
213 p = hash->cur; in __cpc_strhash_next()
215 return (p->str); in __cpc_strhash_next()