version 1.21, 2008/12/01 15:32:36 |
version 1.24, 2008/12/03 14:39:59 |
|
|
#ifndef PRIVATE_H |
#ifndef PRIVATE_H |
#define PRIVATE_H |
#define PRIVATE_H |
|
|
/* Input buffer (input read into buffer, then filled when empty). */ |
|
struct md_rbuf { |
struct md_rbuf { |
int fd; /* Open descriptor. */ |
int fd; /* Open descriptor. */ |
char *name; /* Name of file. */ |
char *name; /* Name of file. */ |
|
|
size_t line; /* Current line number. */ |
size_t line; /* Current line number. */ |
}; |
}; |
|
|
/* Output buffer (output buffered until full, then flushed). */ |
|
struct md_mbuf { |
struct md_mbuf { |
int fd; /* Open descriptor. */ |
int fd; /* Open descriptor. */ |
char *name; /* Name of file. */ |
char *name; /* Name of file. */ |
|
|
int (*roffout)(void *, int); |
int (*roffout)(void *, int); |
int (*roffblkin)(void *, int, int *, char **); |
int (*roffblkin)(void *, int, int *, char **); |
int (*roffblkout)(void *, int); |
int (*roffblkout)(void *, int); |
int (*roffspecial)(void *, int); |
int (*roffspecial)(void *, int, int *, char **, char **); |
}; |
}; |
|
|
|
struct rofftree; |
|
|
__BEGIN_DECLS |
__BEGIN_DECLS |
|
|
typedef void (*(*md_init)(const struct md_args *, |
typedef void (*(*md_init)(const struct md_args *, |
Line 232 typedef void (*(*md_init)(const struct md_args *, |
|
Line 232 typedef void (*(*md_init)(const struct md_args *, |
|
typedef int (*md_line)(void *, char *); |
typedef int (*md_line)(void *, char *); |
typedef int (*md_exit)(void *, int); |
typedef int (*md_exit)(void *, int); |
|
|
void *md_init_html4_strict(const struct md_args *, |
void *md_init_html(const struct md_args *, |
struct md_mbuf *, const struct md_rbuf *); |
struct md_mbuf *, const struct md_rbuf *); |
int md_line_html4_strict(void *, char *); |
int md_line_html(void *, char *); |
int md_exit_html4_strict(void *, int); |
int md_exit_html(void *, int); |
|
|
void *md_init_xml(const struct md_args *, |
void *md_init_xml(const struct md_args *, |
struct md_mbuf *, const struct md_rbuf *); |
struct md_mbuf *, const struct md_rbuf *); |
Line 245 int md_exit_xml(void *, int); |
|
Line 245 int md_exit_xml(void *, int); |
|
int md_buf_puts(struct md_mbuf *, const char *, size_t); |
int md_buf_puts(struct md_mbuf *, const char *, size_t); |
int md_buf_putchar(struct md_mbuf *, char); |
int md_buf_putchar(struct md_mbuf *, char); |
int md_buf_putstring(struct md_mbuf *, const char *); |
int md_buf_putstring(struct md_mbuf *, const char *); |
|
|
struct rofftree; |
|
|
|
struct rofftree *roff_alloc(const struct roffcb *, void *); |
struct rofftree *roff_alloc(const struct roffcb *, void *); |
int roff_engine(struct rofftree *, char *); |
int roff_engine(struct rofftree *, char *); |