version 1.129, 2014/04/20 16:46:05 |
version 1.135, 2015/02/05 00:14:13 |
|
|
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
*/ |
*/ |
#ifndef MDOC_H |
|
#define MDOC_H |
|
|
|
enum mdoct { |
enum mdoct { |
MDOC_Ap = 0, |
MDOC_Ap = 0, |
Line 280 enum mdoc_list { |
|
Line 278 enum mdoc_list { |
|
|
|
enum mdoc_disp { |
enum mdoc_disp { |
DISP__NONE = 0, |
DISP__NONE = 0, |
DISP_centred, /* -centered */ |
DISP_centered, /* -centered */ |
DISP_ragged, /* -ragged */ |
DISP_ragged, /* -ragged */ |
DISP_unfilled, /* -unfilled */ |
DISP_unfilled, /* -unfilled */ |
DISP_filled, /* -filled */ |
DISP_filled, /* -filled */ |
Line 338 union mdoc_data { |
|
Line 336 union mdoc_data { |
|
struct mdoc_bd Bd; |
struct mdoc_bd Bd; |
struct mdoc_bf Bf; |
struct mdoc_bf Bf; |
struct mdoc_bl Bl; |
struct mdoc_bl Bl; |
|
struct mdoc_node *Es; |
struct mdoc_rs Rs; |
struct mdoc_rs Rs; |
}; |
}; |
|
|
Line 353 struct mdoc_node { |
|
Line 352 struct mdoc_node { |
|
int nchild; /* number children */ |
int nchild; /* number children */ |
int line; /* parse line */ |
int line; /* parse line */ |
int pos; /* parse column */ |
int pos; /* parse column */ |
int lastline; /* the node ends on this line */ |
|
enum mdoct tok; /* tok or MDOC__MAX if none */ |
enum mdoct tok; /* tok or MDOC__MAX if none */ |
int flags; |
int flags; |
#define MDOC_VALID (1 << 0) /* has been validated */ |
#define MDOC_VALID (1 << 0) /* has been validated */ |
|
#define MDOC_BREAK (1 << 1) /* has broken another block */ |
#define MDOC_EOS (1 << 2) /* at sentence boundary */ |
#define MDOC_EOS (1 << 2) /* at sentence boundary */ |
#define MDOC_LINE (1 << 3) /* first macro/text on line */ |
#define MDOC_LINE (1 << 3) /* first macro/text on line */ |
#define MDOC_SYNPRETTY (1 << 4) /* SYNOPSIS-style formatting */ |
#define MDOC_SYNPRETTY (1 << 4) /* SYNOPSIS-style formatting */ |
Line 366 struct mdoc_node { |
|
Line 365 struct mdoc_node { |
|
enum mdoc_type type; /* AST node type */ |
enum mdoc_type type; /* AST node type */ |
enum mdoc_sec sec; /* current named section */ |
enum mdoc_sec sec; /* current named section */ |
union mdoc_data *norm; /* normalised args */ |
union mdoc_data *norm; /* normalised args */ |
const void *prev_font; /* before entering this node */ |
int prev_font; /* before entering this node */ |
/* FIXME: these can be union'd to shave a few bytes. */ |
/* FIXME: these can be union'd to shave a few bytes. */ |
struct mdoc_arg *args; /* BLOCK/ELEM */ |
struct mdoc_arg *args; /* BLOCK/ELEM */ |
struct mdoc_node *pending; /* BLOCK */ |
struct mdoc_node *pending; /* BLOCK */ |
Line 394 const struct mdoc_meta *mdoc_meta(const struct mdoc *) |
|
Line 393 const struct mdoc_meta *mdoc_meta(const struct mdoc *) |
|
void mdoc_deroff(char **, const struct mdoc_node *); |
void mdoc_deroff(char **, const struct mdoc_node *); |
|
|
__END_DECLS |
__END_DECLS |
|
|
#endif /*!MDOC_H*/ |
|