version 1.33, 2009/01/12 16:39:57 |
version 1.34, 2009/01/12 17:26:42 |
Line 68 rewind_last(struct mdoc *mdoc, struct mdoc_node *to) |
|
Line 68 rewind_last(struct mdoc *mdoc, struct mdoc_node *to) |
|
return(0); |
return(0); |
if ( ! mdoc_action_post(mdoc)) |
if ( ! mdoc_action_post(mdoc)) |
return(0); |
return(0); |
|
mdoc_msg(mdoc, "rewound to %s", |
|
mdoc_macronames[mdoc->last->tok]); |
return(1); |
return(1); |
} |
} |
|
|
Line 78 rewind_last(struct mdoc *mdoc, struct mdoc_node *to) |
|
Line 80 rewind_last(struct mdoc *mdoc, struct mdoc_node *to) |
|
return(0); |
return(0); |
if ( ! mdoc_action_post(mdoc)) |
if ( ! mdoc_action_post(mdoc)) |
return(0); |
return(0); |
|
mdoc_msg(mdoc, "rewound to %s", |
|
mdoc_macronames[mdoc->last->tok]); |
} while (mdoc->last != to); |
} while (mdoc->last != to); |
|
|
return(1); |
return(1); |
Line 109 rewind_body(struct mdoc *mdoc, int tok) |
|
Line 113 rewind_body(struct mdoc *mdoc, int tok) |
|
|
|
/* LINTED */ |
/* LINTED */ |
for (n = mdoc->last; n; n = n->parent) { |
for (n = mdoc->last; n; n = n->parent) { |
if (MDOC_BODY != n->type) |
t = n->tok; |
continue; |
if (MDOC_BODY == n->type && tok == t) |
if (tok == (t = n->tok)) |
|
break; |
break; |
if ( ! (MDOC_EXPLICIT & mdoc_macros[t].flags)) |
if (MDOC_NESTED & mdoc_macros[t].flags) |
continue; |
continue; |
return(mdoc_verr(mdoc, n, ERR_SCOPE_BREAK)); |
return(mdoc_verr(mdoc, n, ERR_SCOPE_BREAK)); |
} |
} |
Line 133 rewind_head(struct mdoc *mdoc, int tok) |
|
Line 136 rewind_head(struct mdoc *mdoc, int tok) |
|
|
|
/* LINTED */ |
/* LINTED */ |
for (n = mdoc->last; n; n = n->parent) { |
for (n = mdoc->last; n; n = n->parent) { |
if (MDOC_HEAD != n->type) |
t = n->tok; |
continue; |
if (MDOC_HEAD == n->type && tok == t) |
if (tok == (t = n->tok)) |
|
break; |
break; |
if ( ! (MDOC_EXPLICIT & mdoc_macros[t].flags)) |
if (MDOC_NESTED & mdoc_macros[t].flags) |
continue; |
continue; |
return(mdoc_verr(mdoc, n, ERR_SCOPE_BREAK)); |
return(mdoc_verr(mdoc, n, ERR_SCOPE_BREAK)); |
} |
} |
Line 157 rewind_expblock(struct mdoc *mdoc, int tok) |
|
Line 159 rewind_expblock(struct mdoc *mdoc, int tok) |
|
|
|
/* LINTED */ |
/* LINTED */ |
for ( ; n; n = n->parent) { |
for ( ; n; n = n->parent) { |
if (MDOC_BLOCK != n->type) |
t = n->tok; |
continue; |
if (MDOC_BLOCK == n->type && tok == t) |
if (tok == (t = n->tok)) |
|
break; |
break; |
if (MDOC_NESTED & mdoc_macros[t].flags) |
if (MDOC_NESTED & mdoc_macros[t].flags) |
continue; |
continue; |
Line 181 rewind_impblock(struct mdoc *mdoc, int tok) |
|
Line 182 rewind_impblock(struct mdoc *mdoc, int tok) |
|
|
|
/* LINTED */ |
/* LINTED */ |
for ( ; n; n = n->parent) { |
for ( ; n; n = n->parent) { |
if (MDOC_BLOCK != n->type) |
t = n->tok; |
continue; |
if (MDOC_BLOCK == n->type && tok == t) |
if (tok == (t = n->tok)) |
|
break; |
break; |
if ( ! (MDOC_EXPLICIT & mdoc_macros[t].flags)) |
if ( ! (MDOC_EXPLICIT & mdoc_macros[t].flags)) |
continue; |
continue; |