diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-21 11:34:53 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-21 11:34:53 +0000 |
commit | 5777d1fb503dd116e90a489fa562f0a89752541c (patch) | |
tree | a6d24495ae536ef90d93b7c33a0fa5cbc73082c7 /mandoc.h | |
parent | 49de222b7899f01575a6ac00a26bc345864dc826 (diff) | |
download | mandoc-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.h | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -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 */ }; |