summaryrefslogtreecommitdiffstatshomepage
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
commit3c63611ee89298b92b89ee5a72e03ddf82e2059f (patch)
treefb23a285271560c4502791d265d2916405469a89 /mdoc.h
parentf4174d477ac34e47067d4a9e45cc192f7271973a (diff)
downloadmandoc-3c63611ee89298b92b89ee5a72e03ddf82e2059f.tar.gz
mandoc-3c63611ee89298b92b89ee5a72e03ddf82e2059f.tar.zst
mandoc-3c63611ee89298b92b89ee5a72e03ddf82e2059f.zip
Updated manuals.
Added -fign-scope and -fign-escape.
Diffstat (limited to 'mdoc.h')
-rw-r--r--mdoc.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/mdoc.h b/mdoc.h
index 740da2a5..2ba6d151 100644
--- a/mdoc.h
+++ b/mdoc.h
@@ -1,4 +1,4 @@
-/* $Id: mdoc.h,v 1.39 2009/03/08 13:52:29 kristaps Exp $ */
+/* $Id: mdoc.h,v 1.40 2009/03/08 18:02:36 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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);