Lines Matching refs: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);
337 * In the hash table for a single macro, look up an entry by
338 * the macro value or add an empty one if it doesn't exist yet.
341 get_macro_entry(struct ohash *macro, const char *value, int32_t np)
347 slot = ohash_qlookup(macro, value);
348 if ((entry = ohash_find(macro, slot)) == NULL) {
353 ohash_insert(macro, slot, entry);
399 * - The number of macro tables (actually, MACRO_MAX).
400 * - That number of pointers to the individual macro tables.
401 * - The individual macro tables.
406 struct ohash *macro;
411 dba_array_FOREACH(macros, macro) {
413 dba_macro_write(macro);
422 * Write one individual macro table to disk; the format is:
432 dba_macro_write(struct ohash *macro)
443 ne = ohash_entries(macro);
451 for (entry = ohash_first(macro, &slot); entry != NULL;
452 entry = ohash_next(macro, &slot)) {