version 1.21, 2018/12/13 02:06:07 |
version 1.22, 2018/12/13 03:40:13 |
|
|
as an opaque type for function prototypes. |
as an opaque type for function prototypes. |
.Pp |
.Pp |
When this header is included, the same file should not include |
When this header is included, the same file should not include |
.Pa libman.h |
internals of different parsers. |
or |
|
.Pa libroff.h . |
|
.It Qq Pa man.h |
.It Qq Pa man.h |
Provides the functions |
Provides the functions |
.Fn man_* |
.Fn man_* |
|
|
as an opaque type for function prototypes. |
as an opaque type for function prototypes. |
.Pp |
.Pp |
When this header is included, the same file should not include |
When this header is included, the same file should not include |
.Pa libmdoc.h |
internals of different parsers. |
or |
|
.Pa libroff.h . |
|
.El |
.El |
.Ss Parser internals |
.Ss Parser internals |
Most of the following headers require inclusion of a parser interface header |
Most of the following headers require inclusion of a parser interface header |
|
|
as opaque types for function prototypes. |
as opaque types for function prototypes. |
.Pp |
.Pp |
When this header is included, the same file should not include |
When this header is included, the same file should not include |
.Pa man.h , |
interfaces of different parsers. |
.Pa libman.h , |
|
or |
|
.Pa libroff.h . |
|
.It Qq Pa libman.h |
.It Qq Pa libman.h |
Requires |
Requires |
.Qq Pa roff.h |
.Qq Pa roff.h |
|
|
as opaque types for function prototypes. |
as opaque types for function prototypes. |
.Pp |
.Pp |
When this header is included, the same file should not include |
When this header is included, the same file should not include |
.Pa mdoc.h , |
interfaces of different parsers. |
.Pa libmdoc.h , |
.It Qq Pa eqn_parse.h |
or |
External interface of the |
.Pa libroff.h . |
.Xr eqn 7 |
.It Qq Pa libroff.h |
parser, for use in the |
|
.Xr roff 7 |
|
and |
|
.Xr eqn 7 |
|
parsers only. |
|
.Pp |
Requires |
Requires |
.In sys/types.h |
.In sys/types.h |
for |
for |
.Vt size_t |
.Vt size_t . |
and |
|
.Qq Pa mandoc.h |
|
for |
|
.Vt struct eqn_box . |
|
.Pp |
.Pp |
Provides |
Provides |
.Vt struct eqn_def , |
.Vt struct eqn_node |
.Vt struct eqn_node , |
and the functions |
and many functions internal to the |
.Fn eqn_alloc , |
.Xr eqn 7 |
.Fn eqn_box_free , |
parser. |
.Fn eqn_free , |
|
.Fn eqn_parse , |
|
.Fn eqn_read , |
|
and |
|
.Fn eqn_reset . |
.Pp |
.Pp |
Uses the opaque type |
Uses the opaque type |
.Vt struct mparse |
.Vt struct mparse |
from |
from |
.Pa read.c . |
.Pa read.c |
|
for function prototypes. |
|
Uses the type |
|
.Vt struct eqn_box |
|
from |
|
.Pa mandoc.h |
|
as an opaque type for function prototypes. |
|
Uses the types |
|
.Vt struct roff_node |
|
from |
|
.Pa roff.h |
|
and |
|
.Vt struct eqn_def |
|
from |
|
.Pa eqn.c |
|
as opaque struct members. |
.Pp |
.Pp |
When this header is included, the same file should not include |
When this header is included, the same file should not include |
.Pa man.h , |
internals of different parsers. |
.Pa mdoc.h , |
|
.Pa libman.h , |
|
or |
|
.Pa libmdoc.h . |
|
.It Qq Pa tbl_parse.h |
.It Qq Pa tbl_parse.h |
External interface of the |
External interface of the |
.Xr tbl 7 |
.Xr tbl 7 |
|
|
as opaque types for function prototypes. |
as opaque types for function prototypes. |
.Pp |
.Pp |
When this header is included, the same file should not include |
When this header is included, the same file should not include |
internals of a different parser. |
internals of different parsers. |
.It Qq Pa tbl_int.h |
.It Qq Pa tbl_int.h |
Internal interfaces of the |
Internal interfaces of the |
.Xr tbl 7 |
.Xr tbl 7 |