htab
struct aml_opcode *htab;
htab = aml_findopcode(opcode);
dbprintf(arg, "%s", htab->mnem);
struct aml_opcode *htab;
htab = aml_findopcode(opcode);
if (htab == NULL) {
for (ch = htab->args; *ch; ch++) {
rv = aml_parse(scope, *ch, htab->mnem);
aml_addref(my_ret, htab->mnem);
aml_die("Unknown opcode: %x:%s\n", opcode, htab->mnem);
pc, htab->mnem, ival);
pc, htab->mnem, stype);
se = (struct strentry *)hash_find(imcs->htab, str, &slot);
hash_insert(imcs->htab, slot, &se->se_key, str);
imcs->htab = hash_init(10);
if (imcs->htab == NULL)
struct hash *htab; /* hash table of known strings */
PERSON *htab[HSIZE];
extern PERSON *htab[HSIZE]; /* the buckets */
for (pp = htab + hash(pw->pw_name);
for (pn = htab[hash(name)];
struct ohash *htab;
htab = &names;
htab = &strings;
slot = ohash_qlookupi(htab, cp, &end);
s = ohash_find(htab, slot);
ohash_insert(htab, slot, s);
if ((htab = manmerge(e, NULL)) == NULL) {
for (rp = ohash_first(htab, &slot); rp != NULL;
rp = ohash_next(htab, &slot)) {
ohash_delete(htab);
free(htab);
manmerge(struct expr *e, struct ohash *htab)
return manmerge_term(e, htab);
return manmerge_or(e->child, htab);
return manmerge_and(e->child, htab);
manmerge_term(struct expr *e, struct ohash *htab)
if (htab == NULL) {
htab = mandoc_malloc(sizeof(*htab));
mandoc_ohash_init(htab, 4, offsetof(struct dbm_res, page));
slot = ohash_lookup_memory(htab,
if ((rp = ohash_find(htab, slot)) != NULL) {
ohash_insert(htab, slot, rp);
return htab;
manmerge_or(struct expr *e, struct ohash *htab)
htab = manmerge(e, htab);
return htab;
manmerge_and(struct expr *e, struct ohash *htab)
if (htab == NULL)
slot2 = ohash_lookup_memory(htab,
if (ohash_find(htab, slot2) == NULL)
ohash_insert(htab, slot2, res);
return htab;
struct ohash *htab;
struct ohash *htab;
htab = mandoc_malloc(sizeof(*htab));
mandoc_ohash_init(htab, 8, offsetof(struct roffreq, name));
slot = ohash_qlookup(htab, req->name);
ohash_insert(htab, slot, req);
return htab;
roffhash_free(struct ohash *htab)
if (htab == NULL)
for (req = ohash_first(htab, &slot); req != NULL;
req = ohash_next(htab, &slot))
ohash_delete(htab);
free(htab);
roffhash_find(struct ohash *htab, const char *name, size_t sz)
req = ohash_find(htab, ohash_qlookupi(htab, name, &end));
req = ohash_find(htab, ohash_qlookup(htab, name));