summaryrefslogtreecommitdiffstats
path: root/mdoc.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-08 18:02:36 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-08 18:02:36 +0000
commit615c4124c25bfd89a89bc7b14e0fe58520858cb1 (patch)
treecee5dac9bdf6c58e909e7a2179e63627056fd4f6 /mdoc.h
parent10f09076dfef711681072061a37b30e05dc2ba8e (diff)
downloadmandoc-615c4124c25bfd89a89bc7b14e0fe58520858cb1.tar.gz
Updated manuals.
Added -fign-scope and -fign-escape.
Diffstat (limited to 'mdoc.h')
-rw-r--r--mdoc.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/mdoc.h b/mdoc.h
index 62eaa947..1dace83c 100644
--- a/mdoc.h
+++ b/mdoc.h
@@ -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);