aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libroff.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-01-01 22:19:15 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-01-01 22:19:15 +0000
commit1e982599c7f339de5711a30d937e9f4ab18a529f (patch)
tree82a1fce6498226b5bbd1a76a2551424ce451193d /libroff.h
parent59cd23842b32e78c3cdc0afc0deafb3b7529e470 (diff)
downloadmandoc-1e982599c7f339de5711a30d937e9f4ab18a529f.tar.gz
mandoc-1e982599c7f339de5711a30d937e9f4ab18a529f.tar.zst
mandoc-1e982599c7f339de5711a30d937e9f4ab18a529f.zip
Plug in the "head" concept for tables. A tbl_head specifies the full
layout for each row, including vertical spacers. One grabs the tbl_head for a row and iterates through each entry, plugging data from the tbl_span into the header as appropriate. This is pulled in more or less verbatim from tbl.bsd.lv. In fact, this is verbatim except that lists macros are made into hard-coded lists (for compatibility, as long-ago noted by joerg@).
Diffstat (limited to 'libroff.h')
-rw-r--r--libroff.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libroff.h b/libroff.h
index 3c2d6a11..1c9147b4 100644
--- a/libroff.h
+++ b/libroff.h
@@ -1,4 +1,4 @@
-/* $Id: libroff.h,v 1.13 2011/01/01 16:10:40 kristaps Exp $ */
+/* $Id: libroff.h,v 1.14 2011/01/01 22:19:15 kristaps Exp $ */
/*
* Copyright (c) 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -47,6 +47,8 @@ struct tbl {
struct tbl_row *last_row;
struct tbl_span *first_span;
struct tbl_span *last_span;
+ struct tbl_head *first_head;
+ struct tbl_head *last_head;
struct tbl *next;
};