version 1.48, 2011/01/04 15:02:00 |
version 1.51, 2011/01/10 15:31:00 |
Line 100 enum mandocerr { |
|
Line 100 enum mandocerr { |
|
MANDOCERR_BADESCAPE, /* unknown escape sequence */ |
MANDOCERR_BADESCAPE, /* unknown escape sequence */ |
MANDOCERR_BADQUOTE, /* unterminated quoted string */ |
MANDOCERR_BADQUOTE, /* unterminated quoted string */ |
|
|
/* related to tables */ |
|
MANDOCERR_TBLEXTRADAT, /* extra data cells */ |
|
|
|
MANDOCERR_ERROR, /* ===== start of errors ===== */ |
MANDOCERR_ERROR, /* ===== start of errors ===== */ |
|
|
/* related to tables */ |
/* related to tables */ |
Line 113 enum mandocerr { |
|
Line 110 enum mandocerr { |
|
MANDOCERR_TBLNODATA, /* no table data cells specified */ |
MANDOCERR_TBLNODATA, /* no table data cells specified */ |
MANDOCERR_TBLIGNDATA, /* ignore data in cell */ |
MANDOCERR_TBLIGNDATA, /* ignore data in cell */ |
MANDOCERR_TBLBLOCK, /* data block still open */ |
MANDOCERR_TBLBLOCK, /* data block still open */ |
|
MANDOCERR_TBLEXTRADAT, /* ignoring extra data cells */ |
|
|
MANDOCERR_ROFFLOOP, /* input stack limit exceeded, infinite loop? */ |
MANDOCERR_ROFFLOOP, /* input stack limit exceeded, infinite loop? */ |
MANDOCERR_BADCHAR, /* skipping bad character */ |
MANDOCERR_BADCHAR, /* skipping bad character */ |
|
|
char tab; /* cell-separator */ |
char tab; /* cell-separator */ |
char decimal; /* decimal point */ |
char decimal; /* decimal point */ |
int linesize; |
int linesize; |
char delims[2]; /* FIXME: deprecate */ |
|
int opts; |
int opts; |
#define TBL_OPT_CENTRE (1 << 0) |
#define TBL_OPT_CENTRE (1 << 0) |
#define TBL_OPT_EXPAND (1 << 1) |
#define TBL_OPT_EXPAND (1 << 1) |
Line 203 enum tbl_cellt { |
|
Line 200 enum tbl_cellt { |
|
struct tbl_cell { |
struct tbl_cell { |
struct tbl_cell *next; |
struct tbl_cell *next; |
enum tbl_cellt pos; |
enum tbl_cellt pos; |
int spacing; |
size_t spacing; |
int flags; |
int flags; |
#define TBL_CELL_TALIGN (1 << 0) /* t, T */ |
#define TBL_CELL_TALIGN (1 << 0) /* t, T */ |
#define TBL_CELL_BALIGN (1 << 1) /* d, D */ |
#define TBL_CELL_BALIGN (1 << 1) /* d, D */ |
Line 225 struct tbl_row { |
|
Line 222 struct tbl_row { |
|
}; |
}; |
|
|
enum tbl_datt { |
enum tbl_datt { |
TBL_DATA_NONE, |
TBL_DATA_NONE, /* has no data */ |
TBL_DATA_DATA, |
TBL_DATA_DATA, /* consists of data/string */ |
TBL_DATA_HORIZ, |
TBL_DATA_HORIZ, /* horizontal line */ |
TBL_DATA_DHORIZ, |
TBL_DATA_DHORIZ, /* double-horizontal line */ |
TBL_DATA_NHORIZ, |
TBL_DATA_NHORIZ, /* squeezed horizontal line */ |
TBL_DATA_NDHORIZ |
TBL_DATA_NDHORIZ /* squeezed double-horizontal line */ |
}; |
}; |
|
|
/* |
/* |
|
|
* string value that's in the cell. The rest is layout. |
* string value that's in the cell. The rest is layout. |
*/ |
*/ |
struct tbl_dat { |
struct tbl_dat { |
struct tbl_cell *layout; /* layout cell: CAN BE NULL */ |
struct tbl_cell *layout; /* layout cell */ |
|
int spans; /* how many spans follow */ |
struct tbl_dat *next; |
struct tbl_dat *next; |
char *string; |
char *string; /* data (NULL if not TBL_DATA_DATA) */ |
enum tbl_datt pos; |
enum tbl_datt pos; |
}; |
}; |
|
|
Line 256 enum tbl_spant { |
|
Line 254 enum tbl_spant { |
|
struct tbl_span { |
struct tbl_span { |
struct tbl *tbl; |
struct tbl *tbl; |
struct tbl_head *head; |
struct tbl_head *head; |
struct tbl_row *layout; /* layout row: CAN BE NULL */ |
struct tbl_row *layout; /* layout row */ |
struct tbl_dat *first; |
struct tbl_dat *first; |
struct tbl_dat *last; |
struct tbl_dat *last; |
int flags; |
int flags; |