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 | d0fd318699f4643ac39d3c0a9d6676fd495f5aaf (patch) | |
tree | 65266c33c4abb371cf05c015eb528326665059c6 /read.c | |
parent | 244d91e692e1b324ecf144eb153c3ded672b57d1 (diff) | |
download | mandoc-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.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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) |