diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-07-08 14:51:02 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-07-08 14:51:02 +0000 |
commit | b94abf5b14ba2da4e5a2ce9d166d6e166bd7441a (patch) | |
tree | 2ebf4ae1344c1728681e43a57df260541da9d161 /usr.bin/mandoc/read.c | |
parent | aea184b2710e16e8ee36412feae7cacac1499f4a (diff) |
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/read.c')
-rw-r--r-- | usr.bin/mandoc/read.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/mandoc/read.c b/usr.bin/mandoc/read.c index d5c9e6d47c8..3636e1c5658 100644 --- a/usr.bin/mandoc/read.c +++ b/usr.bin/mandoc/read.c @@ -1,4 +1,4 @@ -/* $OpenBSD: read.c,v 1.161 2017/07/06 22:58:44 schwarze Exp $ */ +/* $OpenBSD: read.c,v 1.162 2017/07/08 14:51:01 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2017 Ingo Schwarze <schwarze@openbsd.org> @@ -536,14 +536,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) |