aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-01-05 20:26:36 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-01-05 20:26:36 +0000
commit3d871d9086bbc5f79cd485dfb26b9d02a19cf2e3 (patch)
tree12c6882973b4bed0d9b5eb332153635e293e50e2 /mandoc.h
parentd9597fb775134ff4c4ae106fdb7f3214b5af2463 (diff)
downloadmandoc-3d871d9086bbc5f79cd485dfb26b9d02a19cf2e3.tar.gz
mandoc-3d871d9086bbc5f79cd485dfb26b9d02a19cf2e3.tar.zst
mandoc-3d871d9086bbc5f79cd485dfb26b9d02a19cf2e3.zip
Add an option -Q (quick) to mandocdb(8)
for accelerated generation of reduced-size databases. Implement this by allowing the parsers to optionally abort the parse sequence after the NAME section. While here, garbage collect the unused void *arg attribute of struct mparse and mparse_alloc() and fix some errors in mandoc(3). This reduces the processing time of mandocdb(8) on /usr/share/man by a factor of 2 and the database size by a factor of 4. However, it still takes 5 times the time and 6 times the space of makewhatis(8), so more work is clearly needed.
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mandoc.h b/mandoc.h
index 3f1f118a..9c209ee3 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -1,4 +1,4 @@
-/* $Id: mandoc.h,v 1.113 2014/01/02 16:29:55 schwarze Exp $ */
+/* $Id: mandoc.h,v 1.114 2014/01/05 20:26:36 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -422,7 +422,7 @@ int mchars_spec2cp(const struct mchars *,
const char *mchars_spec2str(const struct mchars *,
const char *, size_t, size_t *);
struct mparse *mparse_alloc(enum mparset, enum mandoclevel,
- mandocmsg, void *, char *);
+ mandocmsg, char *, int);
void mparse_free(struct mparse *);
void mparse_keep(struct mparse *);
enum mandoclevel mparse_readfd(struct mparse *, int, const char *);