version 1.26, 2009/01/19 17:02:58 |
version 1.28, 2009/01/20 13:44:05 |
Line 390 struct mdoc_node { |
|
Line 390 struct mdoc_node { |
|
#define MDOC_ACTED (1 << 1) |
#define MDOC_ACTED (1 << 1) |
enum mdoc_type type; |
enum mdoc_type type; |
union mdoc_data data; |
union mdoc_data data; |
|
/* FIXME: have an enum mdoc_sec. */ |
}; |
}; |
|
|
/* Call-backs for parse messages. */ |
/* Call-backs for parse messages. */ |
Line 416 struct mdoc *mdoc_alloc(void *data, const struct mdoc |
|
Line 417 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 *); |