version 1.101, 2015/04/02 21:36:50 |
version 1.102, 2015/04/02 22:48:17 |
Line 44 static void in_line_eoln(MACRO_PROT_ARGS); |
|
Line 44 static void in_line_eoln(MACRO_PROT_ARGS); |
|
static int man_args(struct man *, int, |
static int man_args(struct man *, int, |
int *, char *, char **); |
int *, char *, char **); |
|
|
static void rew_scope(enum roff_type, |
static void rew_scope(enum roff_type, struct man *, int); |
struct man *, enum mant); |
static enum rew rew_dohalt(int, enum roff_type, |
static enum rew rew_dohalt(enum mant, enum roff_type, |
const struct roff_node *); |
const struct man_node *); |
static enum rew rew_block(int, enum roff_type, |
static enum rew rew_block(enum mant, enum roff_type, |
const struct roff_node *); |
const struct man_node *); |
|
|
|
const struct man_macro __man_macros[MAN_MAX] = { |
const struct man_macro __man_macros[MAN_MAX] = { |
{ in_line_eoln, MAN_NSCOPED }, /* br */ |
{ in_line_eoln, MAN_NSCOPED }, /* br */ |
Line 96 const struct man_macro * const man_macros = __man_macr |
|
Line 95 const struct man_macro * const man_macros = __man_macr |
|
|
|
|
|
void |
void |
man_unscope(struct man *man, const struct man_node *to) |
man_unscope(struct man *man, const struct roff_node *to) |
{ |
{ |
struct man_node *n; |
struct roff_node *n; |
|
|
to = to->parent; |
to = to->parent; |
n = man->last; |
n = man->last; |
Line 156 man_unscope(struct man *man, const struct man_node *to |
|
Line 155 man_unscope(struct man *man, const struct man_node *to |
|
} |
} |
|
|
static enum rew |
static enum rew |
rew_block(enum mant ntok, enum roff_type type, const struct man_node *n) |
rew_block(int ntok, enum roff_type type, const struct roff_node *n) |
{ |
{ |
|
|
if (type == ROFFT_BLOCK && n->parent->tok == ntok && |
if (type == ROFFT_BLOCK && n->parent->tok == ntok && |
Line 171 rew_block(enum mant ntok, enum roff_type type, const s |
|
Line 170 rew_block(enum mant ntok, enum roff_type type, const s |
|
* sections and subsections). |
* sections and subsections). |
*/ |
*/ |
static enum rew |
static enum rew |
rew_dohalt(enum mant tok, enum roff_type type, const struct man_node *n) |
rew_dohalt(int tok, enum roff_type type, const struct roff_node *n) |
{ |
{ |
enum rew c; |
enum rew c; |
|
|
Line 244 rew_dohalt(enum mant tok, enum roff_type type, const s |
|
Line 243 rew_dohalt(enum mant tok, enum roff_type type, const s |
|
* scopes. When a scope is closed, it must be validated and actioned. |
* scopes. When a scope is closed, it must be validated and actioned. |
*/ |
*/ |
static void |
static void |
rew_scope(enum roff_type type, struct man *man, enum mant tok) |
rew_scope(enum roff_type type, struct man *man, int tok) |
{ |
{ |
struct man_node *n; |
struct roff_node *n; |
enum rew c; |
enum rew c; |
|
|
for (n = man->last; n; n = n->parent) { |
for (n = man->last; n; n = n->parent) { |
Line 277 rew_scope(enum roff_type type, struct man *man, enum m |
|
Line 276 rew_scope(enum roff_type type, struct man *man, enum m |
|
void |
void |
blk_close(MACRO_PROT_ARGS) |
blk_close(MACRO_PROT_ARGS) |
{ |
{ |
enum mant ntok; |
int ntok; |
const struct man_node *nn; |
const struct roff_node *nn; |
char *p; |
char *p; |
int nrew, target; |
int nrew, target; |
|
|
Line 338 blk_close(MACRO_PROT_ARGS) |
|
Line 337 blk_close(MACRO_PROT_ARGS) |
|
void |
void |
blk_exp(MACRO_PROT_ARGS) |
blk_exp(MACRO_PROT_ARGS) |
{ |
{ |
struct man_node *head; |
struct roff_node *head; |
char *p; |
char *p; |
int la; |
int la; |
|
|
Line 371 blk_imp(MACRO_PROT_ARGS) |
|
Line 370 blk_imp(MACRO_PROT_ARGS) |
|
{ |
{ |
int la; |
int la; |
char *p; |
char *p; |
struct man_node *n; |
struct roff_node *n; |
|
|
rew_scope(ROFFT_BODY, man, tok); |
rew_scope(ROFFT_BODY, man, tok); |
rew_scope(ROFFT_BLOCK, man, tok); |
rew_scope(ROFFT_BLOCK, man, tok); |
Line 411 in_line_eoln(MACRO_PROT_ARGS) |
|
Line 410 in_line_eoln(MACRO_PROT_ARGS) |
|
{ |
{ |
int la; |
int la; |
char *p; |
char *p; |
struct man_node *n; |
struct roff_node *n; |
|
|
man_elem_alloc(man, line, ppos, tok); |
man_elem_alloc(man, line, ppos, tok); |
n = man->last; |
n = man->last; |