version 1.25, 2009/01/17 16:15:27 |
version 1.28, 2009/01/20 13:44:05 |
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; |
|
/* FIXME: have an enum mdoc_sec. */ |
}; |
}; |
|
|
/* Call-backs for parse messages. */ |
/* Call-backs for parse messages. */ |
Line 413 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 *); |