=================================================================== RCS file: /cvs/mandoc/mandoc.h,v retrieving revision 1.42 retrieving revision 1.44 diff -u -p -r1.42 -r1.44 --- mandoc/mandoc.h 2011/01/01 22:27:08 1.42 +++ mandoc/mandoc.h 2011/01/02 12:04:23 1.44 @@ -1,4 +1,4 @@ -/* $Id: mandoc.h,v 1.42 2011/01/01 22:27:08 kristaps Exp $ */ +/* $Id: mandoc.h,v 1.44 2011/01/02 12:04:23 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 */ @@ -235,9 +250,14 @@ enum tbl_spant { * A row of data in a table. */ struct tbl_span { + struct tbl *tbl; + struct tbl_head *head; struct tbl_row *layout; /* layout row: CAN BE NULL */ struct tbl_dat *first; struct tbl_dat *last; + int flags; +#define TBL_SPAN_FIRST (1 << 0) +#define TBL_SPAN_LAST (1 << 1) enum tbl_spant pos; struct tbl_span *next; };