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. --- man.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'man.c') diff --git a/man.c b/man.c index f2769647..9ad4c134 100644 --- a/man.c +++ b/man.c @@ -1,4 +1,4 @@ -/* $Id: man.c,v 1.177 2018/08/17 20:33:37 schwarze Exp $ */ +/* $Id: man.c,v 1.178 2018/08/23 19:33:27 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2013,2014,2015,2017,2018 Ingo Schwarze @@ -339,14 +339,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) { -- cgit v1.2.3