From 56cfcaa84d0b04041aeeec950bddb179297ebd2d Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sun, 2 Jan 2011 10:10:57 +0000 Subject: Churn to get parts of 'struct tbl' visible from mandoc.h: rename the existing 'struct tbl' as 'struct tbl_node', then move all option stuff into a 'struct tbl' in mandoc.h. This conflicted with a structure in chars.c, which was renamed. --- mandoc.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'mandoc.h') diff --git a/mandoc.h b/mandoc.h index 66c3afb1..789e9b60 100644 --- a/mandoc.h +++ b/mandoc.h @@ -1,4 +1,4 @@ -/* $Id: mandoc.h,v 1.42 2011/01/01 22:27:08 kristaps Exp $ */ +/* $Id: mandoc.h,v 1.43 2011/01/02 10:10:57 kristaps Exp $ */ /* * Copyright (c) 2010 Kristaps Dzonsons * @@ -145,6 +145,21 @@ enum mandocerr { MANDOCERR_MAX }; +struct tbl { + char tab; /* cell-separator */ + char decimal; /* decimal point */ + int linesize; + char delims[2]; + int opts; +#define TBL_OPT_CENTRE (1 << 0) +#define TBL_OPT_EXPAND (1 << 1) +#define TBL_OPT_BOX (1 << 2) +#define TBL_OPT_DBOX (1 << 3) +#define TBL_OPT_ALLBOX (1 << 4) +#define TBL_OPT_NOKEEP (1 << 5) +#define TBL_OPT_NOSPACE (1 << 6) +}; + enum tbl_headt { TBL_HEAD_DATA, /* plug in data from tbl_dat */ TBL_HEAD_VERT, /* vertical spacer */ -- cgit v1.2.3