version 1.7, 2008/11/25 16:49:57 |
version 1.8, 2008/11/26 16:50:34 |
Line 162 extern const char *const *tokargnames; |
|
Line 162 extern const char *const *tokargnames; |
|
|
|
/* FIXME: have a md_roff with all necessary parameters. */ |
/* FIXME: have a md_roff with all necessary parameters. */ |
|
|
typedef int (*roffin)(int, int *, char **); |
/* FIXME: have roffbegin and roffend for doc head/foot. */ |
typedef int (*roffout)(int); |
|
typedef int (*roffblkin)(int); |
|
typedef int (*roffblkout)(int); |
|
|
|
|
struct roffcb { |
|
int (*roffhead)(void); |
|
int (*rofftail)(void); |
|
int (*roffin)(int, int *, char **); |
|
int (*roffout)(int); |
|
int (*roffblkin)(int); |
|
int (*roffblkout)(int); |
|
}; |
|
|
__BEGIN_DECLS |
__BEGIN_DECLS |
|
|
typedef void (*(*md_init)(const struct md_args *, |
typedef void (*(*md_init)(const struct md_args *, |
Line 192 struct rofftree; |
|
Line 198 struct rofftree; |
|
|
|
struct rofftree *roff_alloc(const struct md_args *, |
struct rofftree *roff_alloc(const struct md_args *, |
struct md_mbuf *, const struct md_rbuf *, |
struct md_mbuf *, const struct md_rbuf *, |
roffin, roffout, roffblkin, roffblkout); |
const struct roffcb *); |
int roff_engine(struct rofftree *, char *, size_t); |
int roff_engine(struct rofftree *, char *, size_t); |
int roff_free(struct rofftree *, int); |
int roff_free(struct rofftree *, int); |
|
|