Lines Matching refs:htab
640 struct ohash *htab; in roffhash_alloc() local
646 htab = mandoc_malloc(sizeof(*htab)); in roffhash_alloc()
647 mandoc_ohash_init(htab, 8, offsetof(struct roffreq, name)); in roffhash_alloc()
656 slot = ohash_qlookup(htab, req->name); in roffhash_alloc()
657 ohash_insert(htab, slot, req); in roffhash_alloc()
659 return htab; in roffhash_alloc()
663 roffhash_free(struct ohash *htab) in roffhash_free() argument
668 if (htab == NULL) in roffhash_free()
670 for (req = ohash_first(htab, &slot); req != NULL; in roffhash_free()
671 req = ohash_next(htab, &slot)) in roffhash_free()
673 ohash_delete(htab); in roffhash_free()
674 free(htab); in roffhash_free()
678 roffhash_find(struct ohash *htab, const char *name, size_t sz) in roffhash_find() argument
685 req = ohash_find(htab, ohash_qlookupi(htab, name, &end)); in roffhash_find()
687 req = ohash_find(htab, ohash_qlookup(htab, name)); in roffhash_find()