Lines Matching refs:macro
67 struct ohash *macro; in dba_new() local
74 macro = mandoc_malloc(sizeof(*macro)); in dba_new()
75 mandoc_ohash_init(macro, 4, in dba_new()
77 dba_array_set(dba->macros, im, macro); in dba_new()
86 struct ohash *macro; in dba_free() local
90 dba_array_FOREACH(dba->macros, macro) { in dba_free()
91 for (entry = ohash_first(macro, &slot); entry != NULL; in dba_free()
92 entry = ohash_next(macro, &slot)) { in dba_free()
96 ohash_delete(macro); in dba_free()
97 free(macro); in dba_free()
341 get_macro_entry(struct ohash *macro, const char *value, int32_t np) in get_macro_entry() argument
347 slot = ohash_qlookup(macro, value); in get_macro_entry()
348 if ((entry = ohash_find(macro, slot)) == NULL) { in get_macro_entry()
353 ohash_insert(macro, slot, entry); in get_macro_entry()
406 struct ohash *macro; in dba_macros_write() local
411 dba_array_FOREACH(macros, macro) { in dba_macros_write()
413 dba_macro_write(macro); in dba_macros_write()
432 dba_macro_write(struct ohash *macro) in dba_macro_write() argument
443 ne = ohash_entries(macro); in dba_macro_write()
451 for (entry = ohash_first(macro, &slot); entry != NULL; in dba_macro_write()
452 entry = ohash_next(macro, &slot)) { in dba_macro_write()