Lines Matching refs:page
85 struct dba_array *page; in dba_free() local
102 dba_array_FOREACH(dba->pages, page) { in dba_free()
103 dba_array_free(dba_array_get(page, DBP_NAME)); in dba_free()
104 dba_array_free(dba_array_get(page, DBP_SECT)); in dba_free()
105 dba_array_free(dba_array_get(page, DBP_ARCH)); in dba_free()
106 free(dba_array_get(page, DBP_DESC)); in dba_free()
107 dba_array_free(dba_array_get(page, DBP_FILE)); in dba_free()
108 dba_array_free(page); in dba_free()
161 struct dba_array *page, *entry; in dba_page_new() local
163 page = dba_array_new(DBP_MAX, 0); in dba_page_new()
165 dba_array_add(page, entry); in dba_page_new()
167 dba_array_add(page, entry); in dba_page_new()
173 dba_array_add(page, entry); in dba_page_new()
174 dba_array_add(page, mandoc_strdup(desc)); in dba_page_new()
177 dba_array_add(page, entry); in dba_page_new()
178 dba_array_add(pages, page); in dba_page_new()
179 return page; in dba_page_new()
188 dba_page_add(struct dba_array *page, int32_t ie, const char *str) in dba_page_add() argument
193 entries = dba_array_get(page, ie); in dba_page_add()
199 dba_array_set(page, DBP_ARCH, NULL); in dba_page_add()
218 dba_page_alias(struct dba_array *page, const char *name, uint64_t mask) in dba_page_alias() argument
227 entries = dba_array_get(page, DBP_NAME); in dba_page_alias()
273 struct dba_array *page, *entry; in dba_pages_write() local
277 dba_array_FOREACH(pages, page) { in dba_pages_write()
278 dba_array_setpos(page, DBP_NAME, dba_tell()); in dba_pages_write()
279 entry = dba_array_get(page, DBP_NAME); in dba_pages_write()
283 dba_array_FOREACH(pages, page) { in dba_pages_write()
284 dba_array_setpos(page, DBP_SECT, dba_tell()); in dba_pages_write()
285 entry = dba_array_get(page, DBP_SECT); in dba_pages_write()
289 dba_array_FOREACH(pages, page) { in dba_pages_write()
290 if ((entry = dba_array_get(page, DBP_ARCH)) != NULL) { in dba_pages_write()
291 dba_array_setpos(page, DBP_ARCH, dba_tell()); in dba_pages_write()
295 dba_array_setpos(page, DBP_ARCH, 0); in dba_pages_write()
297 dba_array_FOREACH(pages, page) { in dba_pages_write()
298 dba_array_setpos(page, DBP_DESC, dba_tell()); in dba_pages_write()
299 dba_str_write(dba_array_get(page, DBP_DESC)); in dba_pages_write()
301 dba_array_FOREACH(pages, page) { in dba_pages_write()
302 dba_array_setpos(page, DBP_FILE, dba_tell()); in dba_pages_write()
303 dba_array_writelst(dba_array_get(page, DBP_FILE)); in dba_pages_write()
307 dba_array_FOREACH(pages, page) in dba_pages_write()
308 dba_array_writepos(page); in dba_pages_write()
387 struct dba_array *page) in dba_macro_add() argument
394 dba_array_add(entry->pages, page); in dba_macro_add()
435 struct dba_array *page; in dba_macro_write() local
454 dba_array_FOREACH(entry->pages, page) in dba_macro_write()
455 if (dba_array_getpos(page)) in dba_macro_write()
479 dba_array_FOREACH(entries[ie]->pages, page) in dba_macro_write()
480 if ((addr = dba_array_getpos(page))) in dba_macro_write()