version 1.105, 2010/10/04 07:01:02 |
version 1.110, 2010/12/24 14:00:40 |
Line 283 enum mdoc_list { |
|
Line 283 enum mdoc_list { |
|
LIST_inset, |
LIST_inset, |
LIST_item, |
LIST_item, |
LIST_ohang, |
LIST_ohang, |
LIST_tag |
LIST_tag, |
|
LIST_MAX |
}; |
}; |
|
|
/* |
/* |
Line 357 struct mdoc_an { |
|
Line 358 struct mdoc_an { |
|
* of iterating through the mdoc_arg pointers of a node: defaults are |
* of iterating through the mdoc_arg pointers of a node: defaults are |
* provided, etc. |
* provided, etc. |
*/ |
*/ |
union mdoc_data { |
union mdoc_data { |
struct mdoc_an An; |
struct mdoc_an An; |
struct mdoc_bd *Bd; |
struct mdoc_bd Bd; |
struct mdoc_bf *Bf; |
struct mdoc_bf Bf; |
struct mdoc_bl *Bl; |
struct mdoc_bl Bl; |
}; |
}; |
|
|
/* |
/* |
Line 370 union mdoc_data { |
|
Line 371 union mdoc_data { |
|
struct mdoc_node { |
struct mdoc_node { |
struct mdoc_node *parent; /* parent AST node */ |
struct mdoc_node *parent; /* parent AST node */ |
struct mdoc_node *child; /* first child AST node */ |
struct mdoc_node *child; /* first child AST node */ |
|
struct mdoc_node *last; /* last child AST node */ |
struct mdoc_node *next; /* sibling AST node */ |
struct mdoc_node *next; /* sibling AST node */ |
struct mdoc_node *prev; /* prior sibling AST node */ |
struct mdoc_node *prev; /* prior sibling AST node */ |
int nchild; /* number children */ |
int nchild; /* number children */ |
Line 385 struct mdoc_node { |
|
Line 387 struct mdoc_node { |
|
#define MDOC_ENDED (1 << 5) /* rendering has been ended */ |
#define MDOC_ENDED (1 << 5) /* rendering has been ended */ |
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 */ |
/* 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 393 struct mdoc_node { |
|
Line 396 struct mdoc_node { |
|
struct mdoc_node *tail; /* BLOCK */ |
struct mdoc_node *tail; /* BLOCK */ |
char *string; /* TEXT */ |
char *string; /* TEXT */ |
enum mdoc_endbody end; /* BODY */ |
enum mdoc_endbody end; /* BODY */ |
union mdoc_data data; |
|
}; |
}; |
|
|
/* |
/* |