From cf63fca8357771e9f99c05319bf7ae1d9325cbd8 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 8 Jul 2017 14:51:04 +0000 Subject: 1. Eliminate struct eqn, instead use the existing members of struct roff_node which is allocated for each equation anyway. 2. Do not keep a list of equation parsers, one parser is enough. Minus fifty lines of code, no functional change. --- libmandoc.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'libmandoc.h') diff --git a/libmandoc.h b/libmandoc.h index 72893552..dfc0c54c 100644 --- a/libmandoc.h +++ b/libmandoc.h @@ -1,4 +1,4 @@ -/* $Id: libmandoc.h,v 1.68 2017/06/11 19:37:00 schwarze Exp $ */ +/* $Id: libmandoc.h,v 1.69 2017/07/08 14:51:04 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011, 2012 Kristaps Dzonsons * Copyright (c) 2013, 2014, 2015 Ingo Schwarze @@ -24,7 +24,6 @@ enum rofferr { ROFF_SO, /* include another file */ ROFF_IGN, /* ignore current line */ ROFF_TBL, /* a table row was successfully parsed */ - ROFF_EQN /* an equation was successfully parsed */ }; struct buf { @@ -35,7 +34,6 @@ struct buf { struct mparse; struct tbl_span; -struct eqn; struct roff; struct roff_man; @@ -77,4 +75,3 @@ int roff_getcontrol(const struct roff *, int roff_getformat(const struct roff *); const struct tbl_span *roff_span(const struct roff *); -const struct eqn *roff_eqn(const struct roff *); -- cgit v1.2.3-56-ge451