aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man.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
commit495895571c4a70fbf6e228700c3d58f4e7560839 (patch)
tree76be9f83a27d07a076566eb9b1c97c25ccd5db6c /man.c
parentf8842cd771b741905db8b54ed39c155f3a4ffa51 (diff)
downloadmandoc-495895571c4a70fbf6e228700c3d58f4e7560839.tar.gz
mandoc-495895571c4a70fbf6e228700c3d58f4e7560839.tar.zst
mandoc-495895571c4a70fbf6e228700c3d58f4e7560839.zip
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 'man.c')
-rw-r--r--man.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/man.c b/man.c
index 50a0cf0e..73b432f1 100644
--- a/man.c
+++ b/man.c
@@ -1,4 +1,4 @@
-/* $Id: man.c,v 1.107 2011/03/29 08:30:49 kristaps Exp $ */
+/* $Id: man.c,v 1.108 2011/07/18 07:46:41 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -96,7 +96,7 @@ man_free(struct man *man)
struct man *
-man_alloc(struct regset *regs, struct mparse *parse)
+man_alloc(struct roff *roff, struct mparse *parse)
{
struct man *p;
@@ -104,7 +104,7 @@ man_alloc(struct regset *regs, struct mparse *parse)
man_hash_init();
p->parse = parse;
- p->regs = regs;
+ p->roff = roff;
man_alloc1(p);
return(p);