aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit93a6626101a75d16172b09ad5201078daf1c61b3 (patch)
tree85382023409b33ff7c59b10f3eb8e2545165ef84 /mdoc.h
parent966c1bc6fc8cf98168d9d17b82cc2e7b414d2e15 (diff)
downloadmandoc-93a6626101a75d16172b09ad5201078daf1c61b3.tar.gz
mandoc-93a6626101a75d16172b09ad5201078daf1c61b3.tar.zst
mandoc-93a6626101a75d16172b09ad5201078daf1c61b3.zip
Stash `Bf' parameters into struct mdoc_bf.
Diffstat (limited to 'mdoc.h')
-rw-r--r--mdoc.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/mdoc.h b/mdoc.h
index a2083fbe..224ad1ba 100644
--- a/mdoc.h
+++ b/mdoc.h
@@ -1,4 +1,4 @@
-/* $Id: mdoc.h,v 1.97 2010/07/02 10:53:28 kristaps Exp $ */
+/* $Id: mdoc.h,v 1.98 2010/07/02 12:54:33 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -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;
};