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. --- term.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'term.h') diff --git a/term.h b/term.h index 8214a02f..493191d7 100644 --- a/term.h +++ b/term.h @@ -1,4 +1,4 @@ -/* $Id: term.h,v 1.129 2017/06/17 14:55:30 schwarze Exp $ */ +/* $Id: term.h,v 1.130 2017/07/08 14:51:05 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2011-2015, 2017 Ingo Schwarze @@ -36,7 +36,7 @@ enum termfont { TERMFONT__MAX }; -struct eqn; +struct eqn_box; struct roff_meta; struct roff_node; struct tbl_span; @@ -126,7 +126,7 @@ const char *ascii_uc2str(int); void roff_term_pre(struct termp *, const struct roff_node *); -void term_eqn(struct termp *, const struct eqn *); +void term_eqn(struct termp *, const struct eqn_box *); void term_tbl(struct termp *, const struct tbl_span *); void term_free(struct termp *); void term_setcol(struct termp *, size_t); -- cgit v1.2.3-56-ge451