version 1.198, 2015/05/01 15:27:54 |
version 1.201, 2015/09/26 00:54:04 |
Line 258 lookup(struct roff_man *mdoc, int from, int line, int |
|
Line 258 lookup(struct roff_man *mdoc, int from, int line, int |
|
static void |
static void |
rew_last(struct roff_man *mdoc, const struct roff_node *to) |
rew_last(struct roff_man *mdoc, const struct roff_node *to) |
{ |
{ |
struct roff_node *n, *np; |
struct roff_node *np; |
|
|
if (to->flags & MDOC_VALID) |
if (to->flags & MDOC_VALID) |
return; |
return; |
|
|
mdoc->next = ROFF_NEXT_SIBLING; |
|
while (mdoc->last != to) { |
while (mdoc->last != to) { |
/* |
/* |
* Save the parent here, because we may delete the |
* Save the parent here, because we may delete the |
Line 273 rew_last(struct roff_man *mdoc, const struct roff_node |
|
Line 272 rew_last(struct roff_man *mdoc, const struct roff_node |
|
*/ |
*/ |
np = mdoc->last->parent; |
np = mdoc->last->parent; |
mdoc_valid_post(mdoc); |
mdoc_valid_post(mdoc); |
n = mdoc->last; |
|
mdoc->last = np; |
mdoc->last = np; |
assert(mdoc->last); |
assert(mdoc->last); |
mdoc->last->last = n; |
|
} |
} |
|
mdoc->next = ROFF_NEXT_SIBLING; |
mdoc_valid_post(mdoc); |
mdoc_valid_post(mdoc); |
} |
} |
|
|
Line 365 rew_alt(int tok) |
|
Line 363 rew_alt(int tok) |
|
default: |
default: |
return(tok); |
return(tok); |
} |
} |
/* NOTREACHED */ |
|
} |
} |
|
|
static void |
static void |