Lines Matching refs:dba
63 struct dba *
66 struct dba *dba; in dba_new() local
70 dba = mandoc_malloc(sizeof(*dba)); in dba_new()
71 dba->pages = dba_array_new(npages, DBA_GROW); in dba_new()
72 dba->macros = dba_array_new(MACRO_MAX, 0); in dba_new()
77 dba_array_set(dba->macros, im, macro); in dba_new()
79 return dba; in dba_new()
83 dba_free(struct dba *dba) in dba_free() argument
90 dba_array_FOREACH(dba->macros, macro) { in dba_free()
99 dba_array_free(dba->macros); in dba_free()
101 dba_array_undel(dba->pages); in dba_free()
102 dba_array_FOREACH(dba->pages, page) { in dba_free()
110 dba_array_free(dba->pages); in dba_free()
112 free(dba); in dba_free()
124 dba_write(const char *fname, struct dba *dba) in dba_write() argument
134 dba_pages_write(dba->pages); in dba_write()
136 dba_macros_write(dba->macros); in dba_write()
364 dba_macro_new(struct dba *dba, int32_t im, const char *value, in dba_macro_new() argument
375 entry = get_macro_entry(dba_array_get(dba->macros, im), value, np); in dba_macro_new()
377 dba_array_add(entry->pages, dba_array_get(dba->pages, in dba_macro_new()