1. Eliminate struct eqn, instead use the existing members
authorschwarze <schwarze@openbsd.org>
Sat, 8 Jul 2017 14:51:01 +0000 (14:51 +0000)
committerschwarze <schwarze@openbsd.org>
Sat, 8 Jul 2017 14:51:01 +0000 (14:51 +0000)
commitbf9acac66c431046e615cdd37343d6e3c7a2f22f
tree5f29685b567e9bbbc7d0b9c2ab56eddd6adccd6b
parentbedde6848183ab3ccd2aa271039b3243f93bd049
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.
13 files changed:
usr.bin/mandoc/eqn.c
usr.bin/mandoc/eqn_html.c
usr.bin/mandoc/eqn_term.c
usr.bin/mandoc/html.h
usr.bin/mandoc/libmandoc.h
usr.bin/mandoc/libroff.h
usr.bin/mandoc/mandoc.h
usr.bin/mandoc/read.c
usr.bin/mandoc/roff.c
usr.bin/mandoc/roff.h
usr.bin/mandoc/roff_int.h
usr.bin/mandoc/term.h
usr.bin/mandoc/tree.c