summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mandoc.h
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2017-07-08 14:51:01 +0000
committerschwarze <schwarze@openbsd.org>2017-07-08 14:51:01 +0000
commitbf9acac66c431046e615cdd37343d6e3c7a2f22f (patch)
tree5f29685b567e9bbbc7d0b9c2ab56eddd6adccd6b /usr.bin/mandoc/mandoc.h
parent- For RTL8188CUS/RTL8192CU, we have to force 8051 reset/enable before waiting (diff)
downloadwireguard-openbsd-bf9acac66c431046e615cdd37343d6e3c7a2f22f.tar.xz
wireguard-openbsd-bf9acac66c431046e615cdd37343d6e3c7a2f22f.zip
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/mandoc.h')
-rw-r--r--usr.bin/mandoc/mandoc.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/usr.bin/mandoc/mandoc.h b/usr.bin/mandoc/mandoc.h
index b78d886dcb7..8f4d4ee040a 100644
--- a/usr.bin/mandoc/mandoc.h
+++ b/usr.bin/mandoc/mandoc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mandoc.h,v 1.186 2017/07/07 19:39:17 schwarze Exp $ */
+/* $OpenBSD: mandoc.h,v 1.187 2017/07/08 14:51:01 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -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 */