diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2011-11-27 23:11:37 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2011-11-27 23:11:37 +0000 |
commit | 4f08e1a59c1b75a054ad30dd951c0c511f05b28e (patch) | |
tree | 2913d0223d0da6b9bcab83277c86ff36059c9323 /mandocdb.c | |
parent | 59061e7ea735427f043254b454956da8bf073e88 (diff) | |
download | mandoc-4f08e1a59c1b75a054ad30dd951c0c511f05b28e.tar.gz |
Save the manual type (mdoc, man, or cat) in the index file
of the mandoc databases, as suggested by kristaps@.
Given the well-structured code, this is surprisingly simple.
This changes the mandoc.index database format.
Run "sudo mandocdb" to regenerate your databases.
Diffstat (limited to 'mandocdb.c')
-rw-r--r-- | mandocdb.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -592,6 +592,7 @@ index_merge(const struct of *of, struct mparse *mp, */ dbuf->len = 0; + buf_append(dbuf, mdoc ? "mdoc" : (man ? "man" : "cat")); buf_appendb(dbuf, fn, strlen(fn) + 1); buf_appendb(dbuf, msec, strlen(msec) + 1); buf_appendb(dbuf, mtitle, strlen(mtitle) + 1); |