version 1.5, 2010/08/20 00:53:35 |
version 1.6, 2011/01/04 22:28:17 |
|
|
.\" $Id$ |
.\" $Id$ |
.\" |
.\" |
.\" Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv> |
.\" Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> |
.\" |
.\" |
.\" Permission to use, copy, modify, and distribute this software for any |
.\" Permission to use, copy, modify, and distribute this software for any |
.\" purpose with or without fee is hereby granted, provided that the above |
.\" purpose with or without fee is hereby granted, provided that the above |
|
|
.Nm roff_endparse , |
.Nm roff_endparse , |
.Nm roff_free , |
.Nm roff_free , |
.Nm roff_parseln , |
.Nm roff_parseln , |
.Nm roff_reset |
.Nm roff_reset , |
|
.Nm roff_span |
.Nd roff macro compiler library |
.Nd roff macro compiler library |
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.In mandoc.h |
.In mandoc.h |
|
|
.Fa "void *data" |
.Fa "void *data" |
.Fa "mandocmsg msgs" |
.Fa "mandocmsg msgs" |
.Fc |
.Fc |
.Ft int |
.Ft void |
.Fn roff_endparse "struct roff *roff" |
.Fn roff_endparse "struct roff *roff" |
.Ft void |
.Ft void |
.Fn roff_free "struct roff *roff" |
.Fn roff_free "struct roff *roff" |
|
|
.Fc |
.Fc |
.Ft void |
.Ft void |
.Fn roff_reset "struct roff *roff" |
.Fn roff_reset "struct roff *roff" |
|
.Ft "const struct tbl_span *" |
|
.Fn roff_span "const struct roff *roff" |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
The |
The |
.Nm |
.Nm |
|
|
Returns 0 on failure, 1 on success. |
Returns 0 on failure, 1 on success. |
.It Fn roff_endparse |
.It Fn roff_endparse |
Signals that the parse is complete. |
Signals that the parse is complete. |
Returns 0 on failure, 1 on success. |
.It Fn roff_span |
|
If |
|
.Fn roff_parseln |
|
returned |
|
.Va ROFF_TBL , |
|
return the last parsed table row. |
|
Returns NULL otherwise. |
.El |
.El |
.Sh EXAMPLES |
.Sh EXAMPLES |
See |
See |