version 1.94, 2010/06/27 16:18:13 |
version 1.98, 2010/07/02 12:54:33 |
Line 249 struct mdoc_arg { |
|
Line 249 struct mdoc_arg { |
|
unsigned int refcnt; |
unsigned int refcnt; |
}; |
}; |
|
|
|
enum mdoc_endbody { |
|
ENDBODY_NOT = 0, |
|
ENDBODY_SPACE, |
|
ENDBODY_NOSPACE |
|
}; |
|
|
enum mdoc_list { |
enum mdoc_list { |
LIST__NONE = 0, |
LIST__NONE = 0, |
LIST_bullet, |
LIST_bullet, |
Line 273 enum mdoc_disp { |
|
Line 279 enum mdoc_disp { |
|
DISP_literal |
DISP_literal |
}; |
}; |
|
|
|
enum mdoc_font { |
|
FONT__NONE = 0, |
|
FONT_Em, |
|
FONT_Li, |
|
FONT_Sy |
|
}; |
|
|
struct mdoc_bd { |
struct mdoc_bd { |
const char *offs; /* -offset */ |
const char *offs; /* -offset */ |
enum mdoc_disp type; /* -ragged, etc. */ |
enum mdoc_disp type; /* -ragged, etc. */ |
Line 286 struct mdoc_bl { |
|
Line 299 struct mdoc_bl { |
|
int comp; /* -compact */ |
int comp; /* -compact */ |
}; |
}; |
|
|
|
struct mdoc_bf { |
|
enum mdoc_font font; /* font */ |
|
}; |
|
|
/* Node in AST. */ |
/* Node in AST. */ |
struct mdoc_node { |
struct mdoc_node { |
struct mdoc_node *parent; /* parent AST node */ |
struct mdoc_node *parent; /* parent AST node */ |
Line 302 struct mdoc_node { |
|
Line 319 struct mdoc_node { |
|
#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 */ |
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 */ |
/* FIXME: these can be union'd to shave a few bytes. */ |
/* FIXME: these can be union'd to shave a few bytes. */ |
Line 311 struct mdoc_node { |
|
Line 329 struct mdoc_node { |
|
struct mdoc_node *body; /* BLOCK */ |
struct mdoc_node *body; /* BLOCK */ |
struct mdoc_node *tail; /* BLOCK */ |
struct mdoc_node *tail; /* BLOCK */ |
char *string; /* TEXT */ |
char *string; /* TEXT */ |
|
enum mdoc_endbody end; /* BODY */ |
|
|
union { |
union { |
struct mdoc_bl Bl; |
struct mdoc_bd *Bd; |
struct mdoc_bd Bd; |
struct mdoc_bf *Bf; |
|
struct mdoc_bl *Bl; |
} data; |
} data; |
}; |
}; |
|
|