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. --- eqn_html.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'eqn_html.c') diff --git a/eqn_html.c b/eqn_html.c index feeae102..f569ec2a 100644 --- a/eqn_html.c +++ b/eqn_html.c @@ -1,4 +1,4 @@ -/* $Id: eqn_html.c,v 1.15 2017/07/05 15:03:27 schwarze Exp $ */ +/* $Id: eqn_html.c,v 1.16 2017/07/08 14:51:04 schwarze Exp $ */ /* * Copyright (c) 2011, 2014 Kristaps Dzonsons * Copyright (c) 2017 Ingo Schwarze @@ -227,14 +227,14 @@ out: } void -print_eqn(struct html *p, const struct eqn *ep) +print_eqn(struct html *p, const struct eqn_box *bp) { struct tag *t; t = print_otag(p, TAG_MATH, "c", "eqn"); p->flags |= HTML_NONOSPACE; - eqn_box(p, ep->root); + eqn_box(p, bp); p->flags &= ~HTML_NONOSPACE; print_tagq(p, t); -- cgit v1.2.3-56-ge451