diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-08 18:02:36 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-08 18:02:36 +0000 |
commit | 615c4124c25bfd89a89bc7b14e0fe58520858cb1 (patch) | |
tree | cee5dac9bdf6c58e909e7a2179e63627056fd4f6 /mdoc.h | |
parent | 10f09076dfef711681072061a37b30e05dc2ba8e (diff) | |
download | mandoc-615c4124c25bfd89a89bc7b14e0fe58520858cb1.tar.gz |
Updated manuals.
Added -fign-scope and -fign-escape.
Diffstat (limited to 'mdoc.h')
-rw-r--r-- | mdoc.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -251,6 +251,8 @@ struct mdoc_node { #define MDOC_ACTED (1 << 1) enum mdoc_type type; enum mdoc_sec sec; + + /* FIXME: union/struct this with #defines. */ struct mdoc_arg *args; /* BLOCK/ELEM */ struct mdoc_node *head; /* BLOCK */ struct mdoc_node *body; /* BLOCK */ @@ -258,7 +260,8 @@ struct mdoc_node { char *string; /* TEXT */ }; -#define MDOC_IGN_SCOPE (1 << 0) +#define MDOC_IGN_SCOPE (1 << 0) /* Ignore scope violations. */ +#define MDOC_IGN_ESCAPE (1 << 1) /* Ignore bad escape sequences. */ /* Call-backs for parse messages. */ struct mdoc_cb { @@ -282,7 +285,7 @@ struct mdoc; void mdoc_free(struct mdoc *); /* Allocate a new parser instance. */ -struct mdoc *mdoc_alloc(void *data, const struct mdoc_cb *); +struct mdoc *mdoc_alloc(void *, int, const struct mdoc_cb *); /* Set parse options. */ void mdoc_setflags(struct mdoc *, int); |