Lines Matching refs:page
92 struct dbm_page *page; in mansearch() local
170 page = dbm_page_get(rp->page); in mansearch()
172 if (lstmatch(search->sec, page->sect) == 0 || in mansearch()
173 lstmatch(search->arch, page->arch) == 0 || in mansearch()
189 paths->paths[i], page->file + 1); in mansearch()
190 if (access(chdir_status ? page->file + 1 : in mansearch()
195 page->file + 1, paths->paths[i]); in mansearch()
200 mpage->names = buildnames(page); in mansearch()
201 mpage->output = buildoutput(outkey, page); in mansearch()
204 mpage->sec = *page->sect - '0'; in mansearch()
207 mpage->form = *page->file; in mansearch()
261 mandoc_ohash_init(htab, 4, offsetof(struct dbm_res, page)); in manmerge_term()
294 if (res.page == -1) in manmerge_term()
297 (char *)&res, sizeof(res.page), res.page); in manmerge_term()
342 mandoc_ohash_init(hand, 4, offsetof(struct dbm_res, page)); in manmerge_and()
349 (char *)res, sizeof(res->page), in manmerge_and()
350 res->page)) == NULL) in manmerge_and()
354 (char *)res, sizeof(res->page), in manmerge_and()
355 res->page), res); in manmerge_and()
377 (char *)res, sizeof(res->page), res->page); in manmerge_and()
434 buildnames(const struct dbm_page *page) in buildnames() argument
439 sz = lstlen(page->name, 2) + 1 + lstlen(page->sect, 2) + in buildnames()
440 (page->arch == NULL ? 0 : 1 + lstlen(page->arch, 2)) + 2; in buildnames()
443 lstcat(buf, &i, page->name, ", "); in buildnames()
445 lstcat(buf, &i, page->sect, ", "); in buildnames()
446 if (page->arch != NULL) { in buildnames()
448 lstcat(buf, &i, page->arch, ", "); in buildnames()
552 buildoutput(size_t im, struct dbm_page *page) in buildoutput() argument
560 return mandoc_strdup(page->desc); in buildoutput()
562 input = page->name; in buildoutput()
565 input = page->sect; in buildoutput()
568 input = page->arch; in buildoutput()
588 dbm_macro_bypage(im - 2, page->addr); in buildoutput()