version 1.49, 2010/07/22 23:03:15 |
version 1.54, 2010/12/08 10:58:22 |
|
|
/* $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 69 const struct man_macro __man_macros[MAN_MAX] = { |
|
Line 69 const struct man_macro __man_macros[MAN_MAX] = { |
|
{ in_line_eoln, 0 }, /* IR */ |
{ in_line_eoln, 0 }, /* IR */ |
{ in_line_eoln, 0 }, /* RI */ |
{ in_line_eoln, 0 }, /* RI */ |
{ in_line_eoln, MAN_NSCOPED }, /* na */ |
{ in_line_eoln, MAN_NSCOPED }, /* na */ |
{ in_line_eoln, 0 }, /* i */ |
|
{ in_line_eoln, MAN_NSCOPED }, /* sp */ |
{ in_line_eoln, MAN_NSCOPED }, /* sp */ |
{ in_line_eoln, 0 }, /* nf */ |
{ in_line_eoln, 0 }, /* nf */ |
{ in_line_eoln, 0 }, /* fi */ |
{ in_line_eoln, 0 }, /* fi */ |
{ in_line_eoln, 0 }, /* r */ |
|
{ blk_close, 0 }, /* RE */ |
{ blk_close, 0 }, /* RE */ |
{ blk_exp, MAN_EXPLICIT }, /* RS */ |
{ blk_exp, MAN_EXPLICIT }, /* RS */ |
{ in_line_eoln, 0 }, /* DT */ |
{ in_line_eoln, 0 }, /* DT */ |
{ in_line_eoln, 0 }, /* UC */ |
{ in_line_eoln, 0 }, /* UC */ |
{ in_line_eoln, 0 }, /* PD */ |
{ in_line_eoln, 0 }, /* PD */ |
{ in_line_eoln, MAN_NSCOPED }, /* Sp */ |
|
{ in_line_eoln, 0 }, /* Vb */ |
|
{ in_line_eoln, 0 }, /* Ve */ |
|
{ in_line_eoln, 0 }, /* AT */ |
{ in_line_eoln, 0 }, /* AT */ |
{ in_line_eoln, 0 }, /* in */ |
{ in_line_eoln, 0 }, /* in */ |
|
{ in_line_eoln, 0 }, /* ft */ |
}; |
}; |
|
|
const struct man_macro * const man_macros = __man_macros; |
const struct man_macro * const man_macros = __man_macros; |
Line 123 man_unscope(struct man *m, const struct man_node *n, |
|
Line 119 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 133 man_unscope(struct man *m, const struct man_node *n, |
|
Line 127 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 458 in_line_eoln(MACRO_PROT_ARGS) |
|
Line 450 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 469 in_line_eoln(MACRO_PROT_ARGS) |
|
Line 459 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 ? |