diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-11-20 15:43:14 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-11-20 15:43:14 +0000 |
commit | 8adeb23f44e116bab3711839074b351405efed4b (patch) | |
tree | aaa0521e6817794b478931ba176543deadc410fb /apropos_db.h | |
parent | 9dee7d2c72dbac8c35da910fd415a2555e83b8ea (diff) | |
download | mandoc-8adeb23f44e116bab3711839074b351405efed4b.tar.gz mandoc-8adeb23f44e116bab3711839074b351405efed4b.tar.zst mandoc-8adeb23f44e116bab3711839074b351405efed4b.zip |
Integrate a moderately-patched version of schwarze@'s support for multiple
directories containing mandocdb(8) databases. Some changes follow:
(1) don't support -M yet;
(2) fall back to cwd if no prior manpath has been specified;
(3) resolve manpages using realpath() to prevent consecutive chdir()'s
over relative paths;
(4) note where further error-reporting is required;
(5) fix leaking memory on exit in several cases.
Diffstat (limited to 'apropos_db.h')
-rw-r--r-- | apropos_db.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apropos_db.h b/apropos_db.h index 9151c959..ce6d96f9 100644 --- a/apropos_db.h +++ b/apropos_db.h @@ -1,4 +1,4 @@ -/* $Id: apropos_db.h,v 1.5 2011/11/18 07:02:19 kristaps Exp $ */ +/* $Id: apropos_db.h,v 1.6 2011/11/20 15:43:14 kristaps Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -35,7 +35,7 @@ __BEGIN_DECLS struct expr; -int apropos_search(const struct opts *, +int apropos_search(int, char **, const struct opts *, const struct expr *, size_t, void *, void (*)(struct res *, size_t, void *)); struct expr *exprcomp(int, char *[], size_t *); |