From 1e982599c7f339de5711a30d937e9f4ab18a529f Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 1 Jan 2011 22:19:15 +0000 Subject: 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@). --- libroff.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libroff.h') 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 * @@ -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; }; -- cgit v1.2.3