diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-01 12:18:37 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-01 12:18:37 +0000 |
commit | e544ee7c50ee6f579859cf0983518ab73f11cac1 (patch) | |
tree | 27b769c61f531ca49b70efb6715220e2249a8c35 /mdoc.h | |
parent | 1d3c95dfc94730fe58488b00744522e212559f61 (diff) | |
download | mandoc-e544ee7c50ee6f579859cf0983518ab73f11cac1.tar.gz |
Add table processing structures to -mdoc. This consists of an
external-facing function mdoc_addspan(), then various bits to prohibit
printing and scanning (this requires some if's to be converted into
switch's).
Diffstat (limited to 'mdoc.h')
-rw-r--r-- | mdoc.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -190,6 +190,7 @@ enum mdoc_type { MDOC_TAIL, MDOC_BODY, MDOC_BLOCK, + MDOC_TBL, MDOC_ROOT }; @@ -399,6 +400,7 @@ struct mdoc_node { struct mdoc_node *body; /* BLOCK */ struct mdoc_node *tail; /* BLOCK */ char *string; /* TEXT */ + const struct tbl_span *span; /* TBL */ enum mdoc_endbody end; /* BODY */ }; @@ -426,6 +428,8 @@ int mdoc_parseln(struct mdoc *, int, char *, int); const struct mdoc_node *mdoc_node(const struct mdoc *); const struct mdoc_meta *mdoc_meta(const struct mdoc *); int mdoc_endparse(struct mdoc *); +int mdoc_addspan(struct mdoc *, + const struct tbl_span *); __END_DECLS |