diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-06-12 11:21:44 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-06-12 11:21:44 +0000 |
commit | dfe0c6ee455f4a355885a711c81c5ae06ac20160 (patch) | |
tree | 315130eeda507d9b21635e011e5e3fd44e81fec9 /mdoc_action.c | |
parent | 19a85530e5d01229ad79001edab4bec02b3acda3 (diff) | |
download | mandoc-dfe0c6ee455f4a355885a711c81c5ae06ac20160.tar.gz |
Cache all of `Bd's resolved arguments into mdoc_bd, which is stashed in
the "data" union in mdoc_node. Allows me to remove some ugly loops in
the front-end and duplicate tests in mdoc_action.c. Add a regression
test to make sure we're not doing anything bad (more to come).
Diffstat (limited to 'mdoc_action.c')
-rw-r--r-- | mdoc_action.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mdoc_action.c b/mdoc_action.c index 8aa7c92f..21cc2c1d 100644 --- a/mdoc_action.c +++ b/mdoc_action.c @@ -979,14 +979,12 @@ static int pre_bd(PRE_ARGS) { - if (MDOC_BLOCK == n->type) - return(pre_offset(m, n)); if (MDOC_BODY != n->type) return(1); - if (DISP_literal == n->data.disp) + if (DISP_literal == n->data.Bd.type) m->flags |= MDOC_LITERAL; - if (DISP_unfilled == n->data.disp) + if (DISP_unfilled == n->data.Bd.type) m->flags |= MDOC_LITERAL; return(1); |