summaryrefslogtreecommitdiffstats
path: root/mdoc_man.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-08-23 19:33:27 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-08-23 19:33:27 +0000
commit0278f391fed9ab1da96a2f7737b052872f5ced71 (patch)
tree3209d60689cc3f76bea249571de0e84eb7269ef8 /mdoc_man.c
parenta99c9a30e9f41eb3ce553ac0b2ac6ff963ebe49d (diff)
downloadmandoc-0278f391fed9ab1da96a2f7737b052872f5ced71.tar.gz
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 'mdoc_man.c')
-rw-r--r--mdoc_man.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/mdoc_man.c b/mdoc_man.c
index a7a85df2..a4f8b3ab 100644
--- a/mdoc_man.c
+++ b/mdoc_man.c
@@ -600,19 +600,6 @@ print_count(int *count)
}
void
-man_man(void *arg, const struct roff_man *man)
-{
-
- /*
- * Dump the keep buffer.
- * We're guaranteed by now that this exists (is non-NULL).
- * Flush stdout afterward, just in case.
- */
- fputs(mparse_getkeep(man_mparse(man)), stdout);
- fflush(stdout);
-}
-
-void
man_mdoc(void *arg, const struct roff_man *mdoc)
{
struct roff_node *n;