From 562feda136881753a6d27350397fddcabed5f805 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 23 Aug 2018 19:33:27 +0000 Subject: 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. --- mdoc_man.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'mdoc_man.c') diff --git a/mdoc_man.c b/mdoc_man.c index 17711700..c1d0bec9 100644 --- a/mdoc_man.c +++ b/mdoc_man.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_man.c,v 1.127 2018/08/17 20:33:37 schwarze Exp $ */ +/* $Id: mdoc_man.c,v 1.128 2018/08/23 19:33:27 schwarze Exp $ */ /* * Copyright (c) 2011-2018 Ingo Schwarze * @@ -599,19 +599,6 @@ print_count(int *count) print_word(buf); } -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) { -- cgit v1.2.3-56-ge451