Return to mandoc.h CVS log | Up to [cvsweb.bsd.lv] / mandoc |
version 1.224, 2017/06/07 23:29:48 | version 1.229, 2017/06/11 19:37:01 | ||
---|---|---|---|
|
|
||
MANDOCERR_STYLE, /* ===== start of style suggestions ===== */ | MANDOCERR_STYLE, /* ===== start of style suggestions ===== */ | ||
MANDOCERR_MDOCDATE, /* Mdocdate found: Dd ... */ | |||
MANDOCERR_MDOCDATE_MISSING, /* Mdocdate missing: Dd ... */ | |||
MANDOCERR_DATE_LEGACY, /* legacy man(7) date format: Dd ... */ | |||
MANDOCERR_MACRO_USELESS, /* useless macro: macro */ | MANDOCERR_MACRO_USELESS, /* useless macro: macro */ | ||
MANDOCERR_BX, /* consider using OS macro: macro */ | MANDOCERR_BX, /* consider using OS macro: macro */ | ||
MANDOCERR_ER_ORDER, /* errnos out of order: Er ... */ | MANDOCERR_ER_ORDER, /* errnos out of order: Er ... */ | ||
MANDOCERR_ER_REP, /* duplicate errno: Er ... */ | MANDOCERR_ER_REP, /* duplicate errno: Er ... */ | ||
MANDOCERR_ND_DOT, /* description line ends with a full stop */ | MANDOCERR_ND_DOT, /* description line ends with a full stop */ | ||
MANDOCERR_DELIM, /* no blank before trailing delimiter: macro ... */ | |||
MANDOCERR_FUNC, /* function name without markup: name() */ | |||
MANDOCERR_WARNING, /* ===== start of warnings ===== */ | MANDOCERR_WARNING, /* ===== start of warnings ===== */ | ||
|
|
||
MANDOCERR_AT_BAD, /* unknown AT&T UNIX version: At version */ | MANDOCERR_AT_BAD, /* unknown AT&T UNIX version: At version */ | ||
MANDOCERR_FA_COMMA, /* comma in function argument: arg */ | MANDOCERR_FA_COMMA, /* comma in function argument: arg */ | ||
MANDOCERR_FN_PAREN, /* parenthesis in function name: arg */ | MANDOCERR_FN_PAREN, /* parenthesis in function name: arg */ | ||
MANDOCERR_LB_BAD, /* unknown library name: Lb ... */ | |||
MANDOCERR_RS_BAD, /* invalid content in Rs block: macro */ | MANDOCERR_RS_BAD, /* invalid content in Rs block: macro */ | ||
MANDOCERR_SM_BAD, /* invalid Boolean argument: macro arg */ | MANDOCERR_SM_BAD, /* invalid Boolean argument: macro arg */ | ||
MANDOCERR_FT_BAD, /* unknown font, skipping request: ft font */ | MANDOCERR_FT_BAD, /* unknown font, skipping request: ft font */ | ||
|
|
||
*/ | */ | ||
struct tbl_cell { | struct tbl_cell { | ||
struct tbl_cell *next; | struct tbl_cell *next; | ||
char *wstr; /* min width represented as a string */ | |||
size_t width; /* minimum column width */ | |||
size_t spacing; /* to the right of the column */ | |||
int vert; /* width of subsequent vertical line */ | int vert; /* width of subsequent vertical line */ | ||
enum tbl_cellt pos; | |||
size_t spacing; | |||
int col; /* column number, starting from 0 */ | int col; /* column number, starting from 0 */ | ||
int flags; | int flags; | ||
#define TBL_CELL_TALIGN (1 << 0) /* t, T */ | #define TBL_CELL_TALIGN (1 << 0) /* t, T */ | ||
|
|
||
#define TBL_CELL_UP (1 << 5) /* u, U */ | #define TBL_CELL_UP (1 << 5) /* u, U */ | ||
#define TBL_CELL_WIGN (1 << 6) /* z, Z */ | #define TBL_CELL_WIGN (1 << 6) /* z, Z */ | ||
#define TBL_CELL_WMAX (1 << 7) /* x, X */ | #define TBL_CELL_WMAX (1 << 7) /* x, X */ | ||
enum tbl_cellt pos; | |||
}; | }; | ||
/* | /* | ||
|
|
||
*/ | */ | ||
struct tbl_dat { | struct tbl_dat { | ||
struct tbl_cell *layout; /* layout cell */ | struct tbl_cell *layout; /* layout cell */ | ||
int spans; /* how many spans follow */ | |||
struct tbl_dat *next; | struct tbl_dat *next; | ||
char *string; /* data (NULL if not TBL_DATA_DATA) */ | char *string; /* data (NULL if not TBL_DATA_DATA) */ | ||
int spans; /* how many spans follow */ | |||
int block; /* T{ text block T} */ | |||
enum tbl_datt pos; | enum tbl_datt pos; | ||
}; | }; | ||