diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-07-08 14:51:04 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-07-08 14:51:04 +0000 |
commit | cf63fca8357771e9f99c05319bf7ae1d9325cbd8 (patch) | |
tree | 283184101587a0e648dd5fcc99c2e2c91519bf49 /eqn_html.c | |
parent | 9ef0c733fd442e250894494f24d6a17d1db58500 (diff) | |
download | mandoc-cf63fca8357771e9f99c05319bf7ae1d9325cbd8.tar.gz mandoc-cf63fca8357771e9f99c05319bf7ae1d9325cbd8.tar.zst mandoc-cf63fca8357771e9f99c05319bf7ae1d9325cbd8.zip |
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.
Diffstat (limited to 'eqn_html.c')
-rw-r--r-- | eqn_html.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 <kristaps@bsd.lv> * Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org> @@ -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); |