version 1.47, 2010/06/19 20:46:28 |
version 1.51, 2010/11/30 15:36:28 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
Line 83 const struct man_macro __man_macros[MAN_MAX] = { |
|
Line 83 const struct man_macro __man_macros[MAN_MAX] = { |
|
{ in_line_eoln, 0 }, /* Vb */ |
{ in_line_eoln, 0 }, /* Vb */ |
{ in_line_eoln, 0 }, /* Ve */ |
{ in_line_eoln, 0 }, /* Ve */ |
{ in_line_eoln, 0 }, /* AT */ |
{ in_line_eoln, 0 }, /* AT */ |
|
{ in_line_eoln, 0 }, /* in */ |
}; |
}; |
|
|
const struct man_macro * const man_macros = __man_macros; |
const struct man_macro * const man_macros = __man_macros; |
Line 122 man_unscope(struct man *m, const struct man_node *n, |
|
Line 123 man_unscope(struct man *m, const struct man_node *n, |
|
return(0); |
return(0); |
if ( ! man_valid_post(m)) |
if ( ! man_valid_post(m)) |
return(0); |
return(0); |
if ( ! man_action_post(m)) |
|
return(0); |
|
m->last = m->last->parent; |
m->last = m->last->parent; |
assert(m->last); |
assert(m->last); |
} |
} |
Line 132 man_unscope(struct man *m, const struct man_node *n, |
|
Line 131 man_unscope(struct man *m, const struct man_node *n, |
|
return(0); |
return(0); |
if ( ! man_valid_post(m)) |
if ( ! man_valid_post(m)) |
return(0); |
return(0); |
if ( ! man_action_post(m)) |
|
return(0); |
|
|
|
m->next = MAN_ROOT == m->last->type ? |
m->next = MAN_ROOT == m->last->type ? |
MAN_NEXT_CHILD : MAN_NEXT_SIBLING; |
MAN_NEXT_CHILD : MAN_NEXT_SIBLING; |
Line 290 blk_close(MACRO_PROT_ARGS) |
|
Line 287 blk_close(MACRO_PROT_ARGS) |
|
} |
} |
|
|
|
|
|
/* ARGSUSED */ |
int |
int |
blk_exp(MACRO_PROT_ARGS) |
blk_exp(MACRO_PROT_ARGS) |
{ |
{ |
Line 341 blk_exp(MACRO_PROT_ARGS) |
|
Line 339 blk_exp(MACRO_PROT_ARGS) |
|
* scopes, such as `SH' closing out an `SS', are defined in the rew |
* scopes, such as `SH' closing out an `SS', are defined in the rew |
* routines. |
* routines. |
*/ |
*/ |
|
/* ARGSUSED */ |
int |
int |
blk_imp(MACRO_PROT_ARGS) |
blk_imp(MACRO_PROT_ARGS) |
{ |
{ |
Line 398 blk_imp(MACRO_PROT_ARGS) |
|
Line 397 blk_imp(MACRO_PROT_ARGS) |
|
} |
} |
|
|
|
|
|
/* ARGSUSED */ |
int |
int |
in_line_eoln(MACRO_PROT_ARGS) |
in_line_eoln(MACRO_PROT_ARGS) |
{ |
{ |
Line 454 in_line_eoln(MACRO_PROT_ARGS) |
|
Line 454 in_line_eoln(MACRO_PROT_ARGS) |
|
break; |
break; |
if ( ! man_valid_post(m)) |
if ( ! man_valid_post(m)) |
return(0); |
return(0); |
if ( ! man_action_post(m)) |
|
return(0); |
|
} |
} |
|
|
assert(m->last); |
assert(m->last); |
Line 465 in_line_eoln(MACRO_PROT_ARGS) |
|
Line 463 in_line_eoln(MACRO_PROT_ARGS) |
|
*/ |
*/ |
|
|
if (m->last->type != MAN_ROOT && ! man_valid_post(m)) |
if (m->last->type != MAN_ROOT && ! man_valid_post(m)) |
return(0); |
|
if (m->last->type != MAN_ROOT && ! man_action_post(m)) |
|
return(0); |
return(0); |
|
|
m->next = MAN_ROOT == m->last->type ? |
m->next = MAN_ROOT == m->last->type ? |