summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/man.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2018-08-23 19:32:03 +0000
committerschwarze <schwarze@openbsd.org>2018-08-23 19:32:03 +0000
commit41b72316957ad36b6fe6b6c12c4a88ba3e379fc6 (patch)
tree160ce524e76c5cbe44e76ac68064201dba55996d /usr.bin/mandoc/man.c
parentall_jobs can be static. (diff)
downloadwireguard-openbsd-41b72316957ad36b6fe6b6c12c4a88ba3e379fc6.tar.xz
wireguard-openbsd-41b72316957ad36b6fe6b6c12c4a88ba3e379fc6.zip
The upcoming .while request will have to re-execute roff(7) lines
parsed earlier, so they will have to be saved for reuse - but the read.c preparser does not know yet whether a line contains a .while request before passing it to the roff parser. To cope with that, save all parsed lines for now. Even shortens the code by 20 lines.
Diffstat (limited to 'usr.bin/mandoc/man.c')
-rw-r--r--usr.bin/mandoc/man.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/usr.bin/mandoc/man.c b/usr.bin/mandoc/man.c
index acba306fceb..770024800a5 100644
--- a/usr.bin/mandoc/man.c
+++ b/usr.bin/mandoc/man.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: man.c,v 1.125 2018/08/17 20:31:52 schwarze Exp $ */
+/* $OpenBSD: man.c,v 1.126 2018/08/23 19:32:03 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013,2014,2015,2017,2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -337,14 +337,6 @@ man_breakscope(struct roff_man *man, int tok)
}
}
-const struct mparse *
-man_mparse(const struct roff_man *man)
-{
-
- assert(man && man->parse);
- return man->parse;
-}
-
void
man_state(struct roff_man *man, struct roff_node *n)
{