summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-06-12 12:10:55 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-06-12 12:10:55 +0000
commitb2b5082e5673e0127d8316e54a5d2ad084a62864 (patch)
tree065fff7700eb20616226134fedbfec463842ed39 /mdoc_html.c
parent9182860daa80b4a3002521ca4fdbd780d009b616 (diff)
downloadmandoc-b2b5082e5673e0127d8316e54a5d2ad084a62864.tar.gz
Moved `Bl -compact' into cached data. This allowed the removal of
scanning the argv list in print_bvspace(), and thus the parent pointer.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index cd0c5f54..98358c04 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1036,6 +1036,7 @@ mdoc_it_pre(MDOC_ARGS)
bl = bl->parent;
type = bl->data.Bl.type;
+ comp = bl->data.Bl.comp;
/* Set default width and offset. */
@@ -1059,7 +1060,7 @@ mdoc_it_pre(MDOC_ARGS)
/* Get width, offset, and compact arguments. */
wp = -1;
- for (comp = i = 0; bl->args && i < (int)bl->args->argc; i++)
+ for (i = 0; bl->args && i < (int)bl->args->argc; i++)
switch (bl->args->argv[i].arg) {
case (MDOC_Column):
wp = i; /* Save for later. */
@@ -1070,9 +1071,6 @@ mdoc_it_pre(MDOC_ARGS)
case (MDOC_Offset):
a2offs(bl->args->argv[i].value[0], &offs);
break;
- case (MDOC_Compact):
- comp = 1;
- break;
default:
break;
}