From c80b8c034f0e42db26a04a17527b0b7e3dc6512b Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 1 Jan 2011 12:59:17 +0000 Subject: 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. --- man.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'man.h') diff --git a/man.h b/man.h index a45eac2b..581f55ff 100644 --- a/man.h +++ b/man.h @@ -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 * @@ -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 *); -- cgit v1.2.3-56-ge451