version 1.100, 2012/05/27 17:48:57 |
version 1.101, 2012/05/27 17:54:54 |
|
|
int cols; /* number of columns */ |
int cols; /* number of columns */ |
}; |
}; |
|
|
enum tbl_headt { |
|
TBL_HEAD_DATA, /* plug in data from tbl_dat */ |
|
TBL_HEAD_VERT, /* vertical spacer */ |
|
TBL_HEAD_DVERT /* double-vertical spacer */ |
|
}; |
|
|
|
/* |
/* |
* The head of a table specifies all of its columns. When formatting a |
* The head of a table specifies all of its columns. When formatting a |
* tbl_span, iterate over these and plug in data from the tbl_span when |
* tbl_span, iterate over these and plug in data from the tbl_span when |
* appropriate, using tbl_cell as a guide to placement. |
* appropriate, using tbl_cell as a guide to placement. |
*/ |
*/ |
struct tbl_head { |
struct tbl_head { |
enum tbl_headt pos; |
|
int ident; /* 0 <= unique id < cols */ |
int ident; /* 0 <= unique id < cols */ |
|
int vert; /* width of preceding vertical line */ |
struct tbl_head *next; |
struct tbl_head *next; |
struct tbl_head *prev; |
struct tbl_head *prev; |
}; |
}; |
Line 203 enum tbl_cellt { |
|
Line 197 enum tbl_cellt { |
|
TBL_CELL_DOWN, /* ^ */ |
TBL_CELL_DOWN, /* ^ */ |
TBL_CELL_HORIZ, /* _, - */ |
TBL_CELL_HORIZ, /* _, - */ |
TBL_CELL_DHORIZ, /* = */ |
TBL_CELL_DHORIZ, /* = */ |
TBL_CELL_VERT, /* | */ |
|
TBL_CELL_DVERT, /* || */ |
|
TBL_CELL_MAX |
TBL_CELL_MAX |
}; |
}; |
|
|
Line 213 enum tbl_cellt { |
|
Line 205 enum tbl_cellt { |
|
*/ |
*/ |
struct tbl_cell { |
struct tbl_cell { |
struct tbl_cell *next; |
struct tbl_cell *next; |
|
int vert; /* width of preceding vertical line */ |
enum tbl_cellt pos; |
enum tbl_cellt pos; |
size_t spacing; |
size_t spacing; |
int flags; |
int flags; |