summaryrefslogtreecommitdiffstats
path: root/mdoc.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-07-02 12:54:33 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-07-02 12:54:33 +0000
commitde81475355220cd15315b1eb9c0a33ce571ac512 (patch)
tree8fbf9592beb0a0a290b0ebaf537f2d2654031ee5 /mdoc.h
parent869286ca79b58cee9a78aae60175b751a96ea4ea (diff)
downloadmandoc-de81475355220cd15315b1eb9c0a33ce571ac512.tar.gz
Stash `Bf' parameters into struct mdoc_bf.
Diffstat (limited to 'mdoc.h')
-rw-r--r--mdoc.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/mdoc.h b/mdoc.h
index f3f49864..50f6647e 100644
--- a/mdoc.h
+++ b/mdoc.h
@@ -279,6 +279,13 @@ enum mdoc_disp {
DISP_literal
};
+enum mdoc_font {
+ FONT__NONE = 0,
+ FONT_Em,
+ FONT_Li,
+ FONT_Sy
+};
+
struct mdoc_bd {
const char *offs; /* -offset */
enum mdoc_disp type; /* -ragged, etc. */
@@ -292,6 +299,10 @@ struct mdoc_bl {
int comp; /* -compact */
};
+struct mdoc_bf {
+ enum mdoc_font font; /* font */
+};
+
/* Node in AST. */
struct mdoc_node {
struct mdoc_node *parent; /* parent AST node */
@@ -321,8 +332,9 @@ struct mdoc_node {
enum mdoc_endbody end; /* BODY */
union {
- struct mdoc_bl *Bl;
struct mdoc_bd *Bd;
+ struct mdoc_bf *Bf;
+ struct mdoc_bl *Bl;
} data;
};