version 1.28, 2017/06/08 12:54:58 |
version 1.30, 2017/06/12 20:14:18 |
|
|
double scale; |
double scale; |
}; |
}; |
|
|
|
typedef size_t (*tbl_sulen)(const struct roffsu *, void *); |
typedef size_t (*tbl_strlen)(const char *, void *); |
typedef size_t (*tbl_strlen)(const char *, void *); |
typedef size_t (*tbl_len)(size_t, void *); |
typedef size_t (*tbl_len)(size_t, void *); |
|
|
struct rofftbl { |
struct rofftbl { |
|
tbl_sulen sulen; /* calculate scaling unit length */ |
tbl_strlen slen; /* calculate string length */ |
tbl_strlen slen; /* calculate string length */ |
tbl_len len; /* produce width of empty space */ |
tbl_len len; /* produce width of empty space */ |
struct roffcol *cols; /* master column specifiers */ |
struct roffcol *cols; /* master column specifiers */ |
void *arg; /* passed to slen and len */ |
void *arg; /* passed to sulen, slen, and len */ |
}; |
}; |
|
|
#define SCALE_VS_INIT(p, v) \ |
#define SCALE_VS_INIT(p, v) \ |
|
|
|
|
const char *a2roffsu(const char *, struct roffsu *, enum roffscale); |
const char *a2roffsu(const char *, struct roffsu *, enum roffscale); |
void tblcalc(struct rofftbl *tbl, |
void tblcalc(struct rofftbl *tbl, |
const struct tbl_span *, size_t); |
const struct tbl_span *, size_t, size_t); |