diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-01 12:59:17 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-01 12:59:17 +0000 |
commit | c80b8c034f0e42db26a04a17527b0b7e3dc6512b (patch) | |
tree | 7a146488e062534e63eb8c284052e30e2d869cd6 /man.h | |
parent | 625153bf5457ded8b8946e7f0f831993b94dd863 (diff) | |
download | mandoc-c80b8c034f0e42db26a04a17527b0b7e3dc6512b.tar.gz mandoc-c80b8c034f0e42db26a04a17527b0b7e3dc6512b.tar.zst mandoc-c80b8c034f0e42db26a04a17527b0b7e3dc6512b.zip |
Add -man support for tables. Like -mdoc, this consists of an
external-facing function man_addspan() (this required shuffling around
the descope routine) and hooks elsewhere.
Also fixed mdoc.c's post-validation of tables.
Diffstat (limited to 'man.h')
-rw-r--r-- | man.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: man.h,v 1.49 2010/12/26 14:44:13 kristaps Exp $ */ +/* $Id: man.h,v 1.50 2011/01/01 12:59:17 kristaps Exp $ */ /* * Copyright (c) 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -66,7 +66,8 @@ enum man_type { MAN_ROOT, MAN_BLOCK, MAN_HEAD, - MAN_BODY + MAN_BODY, + MAN_TBL }; /* @@ -100,6 +101,7 @@ struct man_node { char *string; /* TEXT node argument */ struct man_node *head; /* BLOCK node HEAD ptr */ struct man_node *body; /* BLOCK node BODY ptr */ + const struct tbl_span *span; /* TBL */ }; /* @@ -117,6 +119,8 @@ struct man *man_alloc(struct regset *, void *, mandocmsg); void man_reset(struct man *); int man_parseln(struct man *, int, char *, int); int man_endparse(struct man *); +int man_addspan(struct man *, + const struct tbl_span *); const struct man_node *man_node(const struct man *); const struct man_meta *man_meta(const struct man *); |