summaryrefslogtreecommitdiffstats
path: root/mdoc_validate.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-07-18 07:46:41 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-07-18 07:46:41 +0000
commitfe200714381b9d81c222bda224df0dc6dfc61c8a (patch)
tree209bef8a4f53984c628091c1fad8b4817c290671 /mdoc_validate.c
parentbafe4939fd3c12ed13bf24cf2f317e39910722bb (diff)
downloadmandoc-fe200714381b9d81c222bda224df0dc6dfc61c8a.tar.gz
Make `struct roff' be passed into libmdoc and libman upon creation.
This is required for supporting in-line equations. While here, push registers properly into roff and add an set/get/mod interface.
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r--mdoc_validate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index 3c8d4aab..c3198c0d 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -899,7 +899,7 @@ pre_sh(PRE_ARGS)
if (MDOC_BLOCK != n->type)
return(1);
- mdoc->regs->regs[(int)REG_nS].set = 0;
+ roff_regunset(mdoc->roff, REG_nS);
return(check_parent(mdoc, n, MDOC_MAX, MDOC_ROOT));
}