summaryrefslogtreecommitdiffstats
path: root/mdoc_argv.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-07-01 22:56:17 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-07-01 22:56:17 +0000
commit68ee78dc7731e4adb30a4b384fa171f2116f8561 (patch)
treeb091c0f021833dae369e100a2ca9257ce6d2fa9e /mdoc_argv.c
parent0bae01a379ba9702c03dfcf16874c3ec9beaa711 (diff)
downloadmandoc-68ee78dc7731e4adb30a4b384fa171f2116f8561.tar.gz
Make struct_bl and struct_bd into pointers. This removes the need to do
copying on internals after modification. Even more importantly, if an ENDBODY token is provided, it would have been impossible for post-change copying of the data to take place in the BLOCK. This allows it to happen by dint of pointers. Also did some bikeshedding in mdoc_term.c: checking against enum type and explicitly casting to the "post" function to void. This is for my own readability.
Diffstat (limited to 'mdoc_argv.c')
-rw-r--r--mdoc_argv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdoc_argv.c b/mdoc_argv.c
index c731755c..5dc09a29 100644
--- a/mdoc_argv.c
+++ b/mdoc_argv.c
@@ -359,7 +359,8 @@ mdoc_args(struct mdoc *m, int line, int *pos,
if (MDOC_Bl == n->tok)
break;
- if (n && LIST_column == n->data.Bl.type) {
+ assert(n->data.Bl);
+ if (n && LIST_column == n->data.Bl->type) {
fl |= ARGS_TABSEP;
fl &= ~ARGS_DELIM;
}