summaryrefslogtreecommitdiffstats
path: root/mandoc.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-07-21 11:34:53 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-07-21 11:34:53 +0000
commit5777d1fb503dd116e90a489fa562f0a89752541c (patch)
treea6d24495ae536ef90d93b7c33a0fa5cbc73082c7 /mandoc.h
parent49de222b7899f01575a6ac00a26bc345864dc826 (diff)
downloadmandoc-5777d1fb503dd116e90a489fa562f0a89752541c.tar.gz
Flip eqn into using parsed nodes. I've temporarily disabled printing
these in the front-ends except for -Ttree, which will display the parsed tree. While here, fix that quoted strings aren't scanned for replacement parts.
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/mandoc.h b/mandoc.h
index b16b1fc9..e6ee928a 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -277,9 +277,20 @@ struct tbl_span {
struct tbl_span *next;
};
+enum eqn_boxt {
+ EQN_ROOT,
+ EQN_TEXT
+};
+
+struct eqn_box {
+ enum eqn_boxt type;
+ struct eqn_box *child;
+ struct eqn_box *next;
+ char *text;
+};
+
struct eqn {
- size_t sz;
- char *data;
+ struct eqn_box *root;
int ln; /* invocation line */
int pos; /* invocation position */
};