diff options
author | 2017-07-08 14:51:01 +0000 | |
---|---|---|
committer | 2017-07-08 14:51:01 +0000 | |
commit | bf9acac66c431046e615cdd37343d6e3c7a2f22f (patch) | |
tree | 5f29685b567e9bbbc7d0b9c2ab56eddd6adccd6b /usr.bin/mandoc/eqn_html.c | |
parent | - For RTL8188CUS/RTL8192CU, we have to force 8051 reset/enable before waiting (diff) | |
download | wireguard-openbsd-bf9acac66c431046e615cdd37343d6e3c7a2f22f.tar.xz wireguard-openbsd-bf9acac66c431046e615cdd37343d6e3c7a2f22f.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 'usr.bin/mandoc/eqn_html.c')
-rw-r--r-- | usr.bin/mandoc/eqn_html.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mandoc/eqn_html.c b/usr.bin/mandoc/eqn_html.c index 82e68f2f400..b725bfc46c6 100644 --- a/usr.bin/mandoc/eqn_html.c +++ b/usr.bin/mandoc/eqn_html.c @@ -1,4 +1,4 @@ -/* $OpenBSD: eqn_html.c,v 1.11 2017/07/05 15:03:20 schwarze Exp $ */ +/* $OpenBSD: eqn_html.c,v 1.12 2017/07/08 14:51:01 schwarze Exp $ */ /* * Copyright (c) 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org> @@ -225,14 +225,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); |