summaryrefslogtreecommitdiffstats
path: root/mdoc.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-01-12 12:52:21 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-01-12 12:52:21 +0000
commitf41349a945984d15e04b7576ea08bc651631d093 (patch)
treedfdb636417d47144c7e8110b0869c2e75e642a68 /mdoc.h
parent062881c5bc9c7803c1b4caaca0d73dfd937f3445 (diff)
downloadmandoc-f41349a945984d15e04b7576ea08bc651631d093.tar.gz
*** empty log message ***
Diffstat (limited to 'mdoc.h')
-rw-r--r--mdoc.h24
1 files changed, 7 insertions, 17 deletions
diff --git a/mdoc.h b/mdoc.h
index d40086ca..94c094fa 100644
--- a/mdoc.h
+++ b/mdoc.h
@@ -221,6 +221,7 @@ enum mdoc_err {
ERR_ARGS_LE8,
ERR_ARGS_MANY,
ERR_SYNTAX_CHILDBAD,
+ ERR_SYNTAX_PARENTBAD,
ERR_SYNTAX_CHILDHEAD,
ERR_SYNTAX_CHILDBODY,
ERR_SYNTAX_EMPTYBODY,
@@ -249,7 +250,9 @@ enum mdoc_warn {
WARN_SYNTAX_MACLIKE,
WARN_SYNTAX_ARGLIKE,
WARN_SYNTAX_QUOTED,
+ WARN_SYNTAX_EMPTYHEAD,
WARN_SYNTAX_EMPTYBODY,
+ WARN_SYNTAX_NOBODY,
WARN_IGN_AFTER_BLK,
WARN_IGN_BEFORE_BLK,
WARN_IGN_OBSOLETE,
@@ -379,27 +382,16 @@ struct mdoc_text {
};
struct mdoc_block {
- int tok;
size_t argc;
struct mdoc_arg *argv;
-};
-
-struct mdoc_head {
- int tok;
-};
-
-struct mdoc_tail {
- int tok;
-};
-
-struct mdoc_body {
- int tok;
+ struct mdoc_node *head;
+ struct mdoc_node *body;
+ struct mdoc_node *tail;
};
struct mdoc_elem {
size_t sz;
char **args;
- int tok;
size_t argc;
struct mdoc_arg *argv;
};
@@ -407,9 +399,6 @@ struct mdoc_elem {
union mdoc_data {
struct mdoc_text text;
struct mdoc_elem elem;
- struct mdoc_body body;
- struct mdoc_head head;
- struct mdoc_tail tail;
struct mdoc_block block;
};
@@ -420,6 +409,7 @@ struct mdoc_node {
struct mdoc_node *prev;
int line;
int pos;
+ int tok;
enum mdoc_type type;
union mdoc_data data;
};