version 1.78, 2018/11/19 19:27:37 |
version 1.82, 2019/07/01 22:56:24 |
|
|
#include <string.h> |
#include <string.h> |
#include <unistd.h> |
#include <unistd.h> |
|
|
#include "mandoc.h" |
|
#include "mandoc_aux.h" |
#include "mandoc_aux.h" |
#include "mandoc_ohash.h" |
#include "mandoc_ohash.h" |
#include "manconf.h" |
#include "manconf.h" |
Line 192 mansearch(const struct mansearch *search, |
|
Line 191 mansearch(const struct mansearch *search, |
|
mpage->file, R_OK) == -1) { |
mpage->file, R_OK) == -1) { |
warn("%s", mpage->file); |
warn("%s", mpage->file); |
warnx("outdated mandoc.db contains " |
warnx("outdated mandoc.db contains " |
"bogus %s entry, run makewhatis %s", |
"bogus %s entry, run makewhatis %s", |
page->file + 1, paths->paths[i]); |
page->file + 1, paths->paths[i]); |
free(mpage->file); |
free(mpage->file); |
free(rp); |
free(rp); |
Line 200 mansearch(const struct mansearch *search, |
|
Line 199 mansearch(const struct mansearch *search, |
|
} |
} |
mpage->names = buildnames(page); |
mpage->names = buildnames(page); |
mpage->output = buildoutput(outkey, page); |
mpage->output = buildoutput(outkey, page); |
|
mpage->bits = search->firstmatch ? rp->bits : 0; |
mpage->ipath = i; |
mpage->ipath = i; |
mpage->bits = rp->bits; |
|
mpage->sec = *page->sect - '0'; |
mpage->sec = *page->sect - '0'; |
if (mpage->sec < 0 || mpage->sec > 9) |
if (mpage->sec < 0 || mpage->sec > 9) |
mpage->sec = 10; |
mpage->sec = 10; |