version 1.107, 2010/12/15 23:39:40 |
version 1.113, 2010/12/26 14:44:13 |
Line 353 struct mdoc_an { |
|
Line 353 struct mdoc_an { |
|
enum mdoc_auth auth; /* -split, etc. */ |
enum mdoc_auth auth; /* -split, etc. */ |
}; |
}; |
|
|
|
struct mdoc_rs { |
|
struct mdoc_node *child_J; /* pointer to %J */ |
|
}; |
|
|
/* |
/* |
* Consists of normalised node arguments. These should be used instead |
* Consists of normalised node arguments. These should be used instead |
* 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; |
|
struct mdoc_rs Rs; |
}; |
}; |
|
|
/* |
/* |
Line 380 struct mdoc_node { |
|
Line 385 struct mdoc_node { |
|
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_ACTED (1 << 1) /* has been acted upon */ |
|
#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 */ |
#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 395 struct mdoc_node { |
|
Line 400 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; |
|
}; |
}; |
|
|
/* |
/* |