summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/man.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2011-10-09 17:59:56 +0000
committerschwarze <schwarze@openbsd.org>2011-10-09 17:59:56 +0000
commitca0ce6762974606a4933de316ab207259ea4a395 (patch)
tree812972b723e18e7b8ce12355e7688f24cbe79ae8 /usr.bin/mandoc/man.c
parentPad the ECOFF output file to a 512 bytes boundary; older AViiON firmware will (diff)
downloadwireguard-openbsd-ca0ce6762974606a4933de316ab207259ea4a395.tar.xz
wireguard-openbsd-ca0ce6762974606a4933de316ab207259ea4a395.zip
Sync to version 1.12.0; all code by kristaps@:
Implement .Rv in -Tman. Let -man -Tman work a bit like cat(1). Add the -Ofragment option to -T[x]html. Minor fixes in -T[x]html. Lots of apropos(1) and -Tman code cleanup.
Diffstat (limited to 'usr.bin/mandoc/man.c')
-rw-r--r--usr.bin/mandoc/man.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.bin/mandoc/man.c b/usr.bin/mandoc/man.c
index 35eaf6ab72b..3ce1b5d0b79 100644
--- a/usr.bin/mandoc/man.c
+++ b/usr.bin/mandoc/man.c
@@ -1,4 +1,4 @@
-/* $Id: man.c,v 1.61 2011/09/18 15:54:48 schwarze Exp $ */
+/* $Id: man.c,v 1.62 2011/10/09 17:59:56 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -644,3 +644,11 @@ man_node_unlink(struct man *m, struct man_node *n)
if (m && m->first == n)
m->first = NULL;
}
+
+const struct mparse *
+man_mparse(const struct man *m)
+{
+
+ assert(m && m->parse);
+ return(m->parse);
+}