diff options
Diffstat (limited to 'mdoc.h')
-rw-r--r-- | mdoc.h | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -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; }; |