version 1.33, 2015/10/13 22:59:54 |
version 1.36, 2016/01/08 17:48:09 |
|
|
.\" $Id$ |
.\" $Id$ |
.\" |
.\" |
.\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> |
.\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> |
.\" Copyright (c) 2010, 2013, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org> |
.\" Copyright (c) 2010-2016 Ingo Schwarze <schwarze@openbsd.org> |
.\" |
.\" |
.\" 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 |
|
|
.Fo mparse_keep |
.Fo mparse_keep |
.Fa "struct mparse *parse" |
.Fa "struct mparse *parse" |
.Fc |
.Fc |
.Ft "enum mandoclevel" |
.Ft int |
.Fo mparse_open |
.Fo mparse_open |
.Fa "struct mparse *parse" |
.Fa "struct mparse *parse" |
.Fa "int *fd" |
|
.Fa "const char *fname" |
.Fa "const char *fname" |
.Fc |
.Fc |
.Ft "enum mandoclevel" |
.Ft "enum mandoclevel" |
|
|
parse it with |
parse it with |
.Fn mparse_readfd ; |
.Fn mparse_readfd ; |
.It |
.It |
|
close it with |
|
.Xr close 2 ; |
|
.It |
retrieve the syntax tree with |
retrieve the syntax tree with |
.Fn mparse_result ; |
.Fn mparse_result ; |
.It |
.It |
Line 385 does not already end in |
|
Line 387 does not already end in |
|
try again after appending |
try again after appending |
.Ql .gz . |
.Ql .gz . |
Save the information whether the file is zipped or not. |
Save the information whether the file is zipped or not. |
Return a file descriptor open for reading in |
Return a file descriptor open for reading or -1 on failure. |
.Fa fd , |
|
or -1 on failure. |
|
It can be passed to |
It can be passed to |
.Fn mparse_readfd |
.Fn mparse_readfd |
or used directly. |
or used directly. |
|
|
Pass the associated filename in |
Pass the associated filename in |
.Va fname . |
.Va fname . |
This function may be called multiple times with different parameters; however, |
This function may be called multiple times with different parameters; however, |
|
.Xr close 2 |
|
and |
.Fn mparse_reset |
.Fn mparse_reset |
should be invoked between parses. |
should be invoked between parses. |
Declared in |
Declared in |
|
|
fields), its position in the tree (the |
fields), its position in the tree (the |
.Va parent , |
.Va parent , |
.Va child , |
.Va child , |
.Va nchild , |
.Va last , |
.Va next |
.Va next |
and |
and |
.Va prev |
.Va prev |