diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-06-12 11:58:22 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-06-12 11:58:22 +0000 |
commit | 9182860daa80b4a3002521ca4fdbd780d009b616 (patch) | |
tree | 1b81397d2d235aab70575465e1b8dd9152d84674 /mdoc_term.c | |
parent | 16173bda3531a2bb54b45b2e327c8b7e2cf37fd6 (diff) | |
download | mandoc-9182860daa80b4a3002521ca4fdbd780d009b616.tar.gz |
`Bl' is now using a struct instead of a single enum mdoc_list for its
cached values. You can probably guess where this is going.
Diffstat (limited to 'mdoc_term.c')
-rw-r--r-- | mdoc_term.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mdoc_term.c b/mdoc_term.c index b7a7f053..31c2e51e 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -570,6 +570,7 @@ print_bvspace(struct termp *p, { const struct mdoc_node *nn; + /* FIXME: MDOC_Bd == bl->tok && bl->data.Bd.comp */ term_newln(p); if (arg_hasattr(MDOC_Compact, bl)) return; @@ -590,13 +591,13 @@ print_bvspace(struct termp *p, /* A `-column' does not assert vspace within the list. */ - if (MDOC_Bl == bl->tok && LIST_column == bl->data.list) + if (MDOC_Bl == bl->tok && LIST_column == bl->data.Bl.type) if (n->prev && MDOC_It == n->prev->tok) return; /* A `-diag' without body does not vspace. */ - if (MDOC_Bl == bl->tok && LIST_diag == bl->data.list) + if (MDOC_Bl == bl->tok && LIST_diag == bl->data.Bl.type) if (n->prev && MDOC_It == n->prev->tok) { assert(n->prev->body); if (NULL == n->prev->body->child) @@ -661,7 +662,7 @@ termp_it_pre(DECL_ARGS) arg_getattrs(keys, vals, 3, bl); - type = bl->data.list; + type = bl->data.Bl.type; /* * First calculate width and offset. This is pretty easy unless @@ -989,7 +990,7 @@ termp_it_post(DECL_ARGS) if (MDOC_BLOCK == n->type) return; - type = n->parent->parent->parent->data.list; + type = n->parent->parent->parent->data.Bl.type; switch (type) { case (LIST_item): |