version 1.25, 2009/01/17 16:15:27 |
version 1.27, 2009/01/19 17:51:33 |
Line 385 struct mdoc_node { |
|
Line 385 struct mdoc_node { |
|
int line; |
int line; |
int pos; |
int pos; |
int tok; |
int tok; |
|
int flags; |
|
#define MDOC_VALID (1 << 0) |
|
#define MDOC_ACTED (1 << 1) |
enum mdoc_type type; |
enum mdoc_type type; |
union mdoc_data data; |
union mdoc_data data; |
}; |
}; |
Line 413 struct mdoc *mdoc_alloc(void *data, const struct mdoc |
|
Line 416 struct mdoc *mdoc_alloc(void *data, const struct mdoc |
|
/* Parse a single line (boolean retval). */ |
/* Parse a single line (boolean retval). */ |
int mdoc_parseln(struct mdoc *, int, char *buf); |
int mdoc_parseln(struct mdoc *, int, char *buf); |
|
|
/* Get parse result or NULL. */ |
/* Get result first node. */ |
const struct mdoc_node *mdoc_result(struct mdoc *); |
const struct mdoc_node *mdoc_node(struct mdoc *); |
|
|
|
/* Get result meta-information. */ |
|
const struct mdoc_meta *mdoc_meta(struct mdoc *); |
|
|
/* Signal end of parse sequence (boolean retval). */ |
/* Signal end of parse sequence (boolean retval). */ |
int mdoc_endparse(struct mdoc *); |
int mdoc_endparse(struct mdoc *); |