summaryrefslogtreecommitdiffstats
path: root/read.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-07-08 14:51:04 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-07-08 14:51:04 +0000
commitd0fd318699f4643ac39d3c0a9d6676fd495f5aaf (patch)
tree65266c33c4abb371cf05c015eb528326665059c6 /read.c
parent244d91e692e1b324ecf144eb153c3ded672b57d1 (diff)
downloadmandoc-d0fd318699f4643ac39d3c0a9d6676fd495f5aaf.tar.gz
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 'read.c')
-rw-r--r--read.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/read.c b/read.c
index cae88fa4..bec76815 100644
--- a/read.c
+++ b/read.c
@@ -540,14 +540,11 @@ rerun:
* currently open parse. Since we only get here if
* there does exist data (see tbl_data.c), we're
* guaranteed that something's been allocated.
- * Do the same for ROFF_EQN.
*/
if (rr == ROFF_TBL)
while ((span = roff_span(curp->roff)) != NULL)
roff_addtbl(curp->man, span);
- else if (rr == ROFF_EQN)
- roff_addeqn(curp->man, roff_eqn(curp->roff));
else if ((curp->man->macroset == MACROSET_MDOC ?
mdoc_parseln(curp->man, curp->line, ln.buf, of) :
man_parseln(curp->man, curp->line, ln.buf, of)) == 2)