version 1.15, 2009/01/05 17:57:08 |
version 1.17, 2009/01/08 14:55:59 |
|
|
#ifndef MDOC_H |
#ifndef MDOC_H |
#define MDOC_H |
#define MDOC_H |
|
|
#define MDOC_LINEARG_MAX 8 |
#define MDOC_LINEARG_MAX 12 |
|
|
#define MDOC___ 0 |
#define MDOC___ 0 |
#define MDOC_Dd 1 |
#define MDOC_Dd 1 |
|
|
ERR_ARGS_EQ1, |
ERR_ARGS_EQ1, |
ERR_ARGS_GE1, |
ERR_ARGS_GE1, |
ERR_ARGS_LE2, |
ERR_ARGS_LE2, |
|
ERR_ARGS_LE8, |
ERR_ARGS_MANY, |
ERR_ARGS_MANY, |
ERR_SYNTAX_CHILDHEAD, |
ERR_SYNTAX_CHILDHEAD, |
ERR_SYNTAX_CHILDBODY, |
ERR_SYNTAX_CHILDBODY, |
Line 411 struct mdoc_node { |
|
Line 412 struct mdoc_node { |
|
struct mdoc_node *child; |
struct mdoc_node *child; |
struct mdoc_node *next; |
struct mdoc_node *next; |
struct mdoc_node *prev; |
struct mdoc_node *prev; |
|
int line; |
|
int pos; |
enum mdoc_type type; |
enum mdoc_type type; |
union mdoc_data data; |
union mdoc_data data; |
}; |
}; |
Line 418 struct mdoc_node { |
|
Line 421 struct mdoc_node { |
|
struct mdoc_cb { |
struct mdoc_cb { |
int (*mdoc_err)(void *, int, int, enum mdoc_err); |
int (*mdoc_err)(void *, int, int, enum mdoc_err); |
int (*mdoc_warn)(void *, int, int, enum mdoc_warn); |
int (*mdoc_warn)(void *, int, int, enum mdoc_warn); |
void (*mdoc_msg)(void *, int, const char *); |
void (*mdoc_msg)(void *, int, int, const char *); |
}; |
}; |
|
|
extern const char *const *mdoc_macronames; |
extern const char *const *mdoc_macronames; |
|
|
|
|
void mdoc_free(struct mdoc *); |
void mdoc_free(struct mdoc *); |
struct mdoc *mdoc_alloc(void *data, const struct mdoc_cb *); |
struct mdoc *mdoc_alloc(void *data, const struct mdoc_cb *); |
int mdoc_parseln(struct mdoc *, char *buf); |
int mdoc_parseln(struct mdoc *, int, char *buf); |
const struct mdoc_node |
const struct mdoc_node |
*mdoc_result(struct mdoc *); |
*mdoc_result(struct mdoc *); |
|
int mdoc_endparse(struct mdoc *); |
|
|
__END_DECLS |
__END_DECLS |
|
|