aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_argv.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-22 11:15:16 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-22 11:15:16 +0000
commit5e8dea30d01017a3651dedc1f6eda3d2b1e6f8d1 (patch)
treec8b375d34bff877a170de8f810c1516d101a37e3 /mdoc_argv.c
parenta227976c4a6d61ca51f3b2ae7f15ee46a39ac235 (diff)
downloadmandoc-5e8dea30d01017a3651dedc1f6eda3d2b1e6f8d1.tar.gz
mandoc-5e8dea30d01017a3651dedc1f6eda3d2b1e6f8d1.tar.zst
mandoc-5e8dea30d01017a3651dedc1f6eda3d2b1e6f8d1.zip
Implement reference-counted version of original union mdoc_data. This
simplifies clean-up and allows for more types without extra hassle. Also made in-line literal types in -T[x]html use CODE instead of SPAN to match how literal blocks use PRE.
Diffstat (limited to 'mdoc_argv.c')
-rw-r--r--mdoc_argv.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mdoc_argv.c b/mdoc_argv.c
index 3a36e4e9..092ab652 100644
--- a/mdoc_argv.c
+++ b/mdoc_argv.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_argv.c,v 1.60 2010/09/13 20:15:43 schwarze Exp $ */
+/* $Id: mdoc_argv.c,v 1.61 2010/12/22 11:15:16 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -361,8 +361,7 @@ mdoc_args(struct mdoc *m, int line, int *pos,
if (MDOC_Bl == n->tok)
break;
- assert(n->data.Bl);
- if (n && LIST_column == n->data.Bl->type) {
+ if (n && LIST_column == n->norm->d.Bl.type) {
fl |= ARGS_TABSEP;
fl &= ~ARGS_DELIM;
}