diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-01-07 15:53:00 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-01-07 15:53:00 +0000 |
commit | a7a1dadb16951c8d91f80da5763dd5c3cb973ffa (patch) | |
tree | a2fad109014a0019d86fee2a8da0ac095041cbc3 /mdoc.h | |
parent | b7ba0decc3a3349611b6f43d72d947e89d4c2d67 (diff) | |
download | mandoc-a7a1dadb16951c8d91f80da5763dd5c3cb973ffa.tar.gz |
*** empty log message ***
Diffstat (limited to 'mdoc.h')
-rw-r--r-- | mdoc.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -19,7 +19,7 @@ #ifndef MDOC_H #define MDOC_H -#define MDOC_LINEARG_MAX 8 +#define MDOC_LINEARG_MAX 12 #define MDOC___ 0 #define MDOC_Dd 1 @@ -217,6 +217,7 @@ enum mdoc_err { ERR_ARGS_EQ1, ERR_ARGS_GE1, ERR_ARGS_LE2, + ERR_ARGS_LE8, ERR_ARGS_MANY, ERR_SYNTAX_CHILDHEAD, ERR_SYNTAX_CHILDBODY, @@ -411,6 +412,8 @@ struct mdoc_node { struct mdoc_node *child; struct mdoc_node *next; struct mdoc_node *prev; + int line; + int pos; enum mdoc_type type; union mdoc_data data; }; @@ -430,9 +433,10 @@ struct mdoc; void mdoc_free(struct mdoc *); 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 *mdoc_result(struct mdoc *); +int mdoc_endparse(struct mdoc *); __END_DECLS |