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. --- libmandoc.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libmandoc.h') diff --git a/libmandoc.h b/libmandoc.h index 05f149fb..160559e6 100644 --- a/libmandoc.h +++ b/libmandoc.h @@ -1,4 +1,4 @@ -/* $Id: libmandoc.h,v 1.72 2018/08/23 14:29:38 schwarze Exp $ */ +/* $Id: libmandoc.h,v 1.73 2018/08/23 19:33:27 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011, 2012 Kristaps Dzonsons * Copyright (c) 2013,2014,2015,2017,2018 Ingo Schwarze @@ -28,8 +28,9 @@ enum rofferr { }; struct buf { - char *buf; - size_t sz; + char *buf; + size_t sz; + struct buf *next; }; -- cgit v1.2.3-56-ge451