Lines Matching refs:htab
639 struct ohash *htab; in roffhash_alloc() local
645 htab = mandoc_malloc(sizeof(*htab)); in roffhash_alloc()
646 mandoc_ohash_init(htab, 8, offsetof(struct roffreq, name)); in roffhash_alloc()
655 slot = ohash_qlookup(htab, req->name); in roffhash_alloc()
656 ohash_insert(htab, slot, req); in roffhash_alloc()
658 return htab; in roffhash_alloc()
662 roffhash_free(struct ohash *htab) in roffhash_free() argument
667 if (htab == NULL) in roffhash_free()
669 for (req = ohash_first(htab, &slot); req != NULL; in roffhash_free()
670 req = ohash_next(htab, &slot)) in roffhash_free()
672 ohash_delete(htab); in roffhash_free()
673 free(htab); in roffhash_free()
677 roffhash_find(struct ohash *htab, const char *name, size_t sz) in roffhash_find() argument
684 req = ohash_find(htab, ohash_qlookupi(htab, name, &end)); in roffhash_find()
686 req = ohash_find(htab, ohash_qlookup(htab, name)); in roffhash_find()