diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-02 10:10:57 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-02 10:10:57 +0000 |
commit | 56cfcaa84d0b04041aeeec950bddb179297ebd2d (patch) | |
tree | cbbb1fbf51f9aa2deeb6b182fd71077edf34cf0d /mandoc.h | |
parent | 3ffc6039a959f3b27d837b66a8856c2dc5f1b736 (diff) | |
download | mandoc-56cfcaa84d0b04041aeeec950bddb179297ebd2d.tar.gz mandoc-56cfcaa84d0b04041aeeec950bddb179297ebd2d.tar.zst mandoc-56cfcaa84d0b04041aeeec950bddb179297ebd2d.zip |
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.
Diffstat (limited to 'mandoc.h')
-rw-r--r-- | mandoc.h | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -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 <kristaps@bsd.lv> * @@ -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 */ |