summaryrefslogtreecommitdiffstats
path: root/mandoc.h
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 /mandoc.h
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 'mandoc.h')
-rw-r--r--mandoc.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/mandoc.h b/mandoc.h
index 37a14299..d1baffb1 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -402,17 +402,6 @@ struct eqn_box {
};
/*
- * An equation consists of a tree of expressions starting at a given
- * line and position.
- */
-struct eqn {
- char *name; /* identifier (or NULL) */
- struct eqn_box *root; /* root mathematical expression */
- int ln; /* invocation line */
- int pos; /* invocation position */
-};
-
-/*
* Parse options.
*/
#define MPARSE_MDOC 1 /* assume -mdoc */