-.\" $Id: man.3,v 1.18 2010/05/25 22:16:59 kristaps Exp $
+.\" $Id: man.3,v 1.22 2010/07/07 15:04:54 kristaps Exp $
.\"
.\" Copyright (c) 2009-2010 Kristaps Dzonsons <kristaps@bsd.lv>
.\"
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: May 25 2010 $
+.Dd $Mdocdate: July 7 2010 $
.Dt MAN 3
.Os
.Sh NAME
.In man.h
.Vt extern const char * const * man_macronames;
.Ft "struct man *"
-.Fn man_alloc "void *data" "int pflags" "mandocmsg msgs"
+.Fo man_alloc
+.Fa "struct regset *regs"
+.Fa "void *data"
+.Fa "int pflags"
+.Fa "mandocmsg msgs"
+.Fc
.Ft int
.Fn man_endparse "struct man *man"
.Ft void
.Ft "const struct man_node *"
.Fn man_node "const struct man *man"
.Ft int
-.Fn man_parseln "struct man *man" "int line" "char *buf"
+.Fo man_parseln
+.Fa "struct man *man"
+.Fa "int line"
+.Fa "char *buf"
+.Fc
.Ft void
.Fn man_reset "struct man *man"
.Sh DESCRIPTION
.Fn parsed .
This example does not error-check nor free memory upon failure.
.Bd -literal -offset indent
+struct regset regs;
struct man *man;
struct man_node *node;
char *buf;
size_t len;
int line;
+bzero(®s, sizeof(struct regset));
line = 1;
-man = man_alloc(NULL, 0, NULL);
+man = man_alloc(®s, NULL, 0, NULL);
buf = NULL;
alloc_len = 0;