summaryrefslogtreecommitdiffstats
path: root/mdoc.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-07-02 15:03:14 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-07-02 15:03:14 +0000
commit04c0fb6aedd8b530745e03f63c8b188e7d2c7466 (patch)
treee3a52de1d3ede9a6386351492d792dad43688a99 /mdoc.h
parent63ed1f431a924feaf23069c7881c2520fbc991ae (diff)
downloadmandoc-04c0fb6aedd8b530745e03f63c8b188e7d2c7466.tar.gz
Cached `An' arguments in struct mdoc_an. Note that this isn't a
pointer like the other data members, as there's no need to copy it around.
Diffstat (limited to 'mdoc.h')
-rw-r--r--mdoc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/mdoc.h b/mdoc.h
index 50f6647e..50864bcd 100644
--- a/mdoc.h
+++ b/mdoc.h
@@ -279,6 +279,12 @@ enum mdoc_disp {
DISP_literal
};
+enum mdoc_auth {
+ AUTH__NONE = 0,
+ AUTH_split,
+ AUTH_nosplit
+};
+
enum mdoc_font {
FONT__NONE = 0,
FONT_Em,
@@ -303,6 +309,10 @@ struct mdoc_bf {
enum mdoc_font font; /* font */
};
+struct mdoc_an {
+ enum mdoc_auth auth; /* -split, etc. */
+};
+
/* Node in AST. */
struct mdoc_node {
struct mdoc_node *parent; /* parent AST node */
@@ -332,6 +342,7 @@ struct mdoc_node {
enum mdoc_endbody end; /* BODY */
union {
+ struct mdoc_an An;
struct mdoc_bd *Bd;
struct mdoc_bf *Bf;
struct mdoc_bl *Bl;