Lines Matching defs:macro
67 struct ohash *macro;
74 macro = mandoc_malloc(sizeof(*macro));
75 mandoc_ohash_init(macro, 4,
77 dba_array_set(dba->macros, im, macro);
86 struct ohash *macro;
90 dba_array_FOREACH(dba->macros, macro) {
91 for (entry = ohash_first(macro, &slot); entry != NULL;
92 entry = ohash_next(macro, &slot)) {
96 ohash_delete(macro);
97 free(macro);
338 * In the hash table for a single macro, look up an entry by
339 * the macro value or add an empty one if it doesn't exist yet.
342 get_macro_entry(struct ohash *macro, const char *value, int32_t np)
348 slot = ohash_qlookup(macro, value);
349 if ((entry = ohash_find(macro, slot)) == NULL) {
354 ohash_insert(macro, slot, entry);
400 * - The number of macro tables (actually, MACRO_MAX).
401 * - That number of pointers to the individual macro tables.
402 * - The individual macro tables.
407 struct ohash *macro;
412 dba_array_FOREACH(macros, macro) {
414 dba_macro_write(macro);
423 * Write one individual macro table to disk; the format is:
433 dba_macro_write(struct ohash *macro)
444 ne = ohash_entries(macro);
452 for (entry = ohash_first(macro, &slot); entry != NULL;
453 entry = ohash_next(macro, &slot)) {