-.\" $Id: man.3,v 1.21 2010/06/27 16:18:13 kristaps Exp $
+.\" $Id: man.3,v 1.24 2010/08/20 01:02:07 schwarze 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: June 27 2010 $
+.Dd $Mdocdate: August 20 2010 $
.Dt MAN 3
.Os
.Sh NAME
.Nd man macro compiler library
.Sh SYNOPSIS
.In mandoc.h
-.In regs.h
.In man.h
.Vt extern const char * const * man_macronames;
.Ft "struct man *"
.Fo man_alloc
.Fa "struct regset *regs"
.Fa "void *data"
-.Fa "int pflags"
.Fa "mandocmsg msgs"
.Fc
.Ft int
\e*(PI (pi),
\e*(L" (left double-quote),
\e*(R" (right double-quote),
-\e*(C+ (C++),
\e*(C` (left single-quote),
\e*(C' (right single-quote),
\e*(Aq (apostrophe),
.Fa data
pointer is passed to
.Fa msgs .
-The
-.Fa pflags
-arguments are defined in
-.Pa man.h .
Returns NULL on failure.
If non-NULL, the pointer must be freed with
.Fn man_free .
bzero(®s, sizeof(struct regset));
line = 1;
-man = man_alloc(®s, NULL, 0, NULL);
+man = man_alloc(®s, NULL, NULL);
buf = NULL;
alloc_len = 0;