aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-03-23 12:26:58 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-03-23 12:26:58 +0000
commit9b38cbd9069ed0dc215f7029e03b3af63ee0f699 (patch)
treecf5de475fcf5c8fdb071fa5c5f23d5b9eb188c96 /man.h
parentd44afd04277797fc00e15bbd5a98a196404fb778 (diff)
downloadmandoc-9b38cbd9069ed0dc215f7029e03b3af63ee0f699.tar.gz
mandoc-9b38cbd9069ed0dc215f7029e03b3af63ee0f699.tar.zst
mandoc-9b38cbd9069ed0dc215f7029e03b3af63ee0f699.zip
If a man(7) NAME section contains macros, avoid truncated or empty
entries for .Nd in mandocdb(8), instead use the macro content recursively. This improves indexing of more than 200 manuals in Xenocara, i.e. more than 15%, in particular GL and some Xkb.
Diffstat (limited to 'man.h')
-rw-r--r--man.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/man.h b/man.h
index ef9480f2..fb280bc3 100644
--- a/man.h
+++ b/man.h
@@ -1,6 +1,7 @@
-/* $Id: man.h,v 1.62 2013/10/17 20:54:58 schwarze Exp $ */
+/* $Id: man.h,v 1.63 2014/03/23 12:26:58 schwarze Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
+ * Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -111,6 +112,7 @@ struct man;
const struct man_node *man_node(const struct man *);
const struct man_meta *man_meta(const struct man *);
const struct mparse *man_mparse(const struct man *);
+void man_deroff(char **, const struct man_node *);
__END_DECLS