version 1.29, 2014/11/26 23:42:14 |
version 1.30, 2015/01/15 02:29:26 |
Line 176 initiate a parsing sequence with |
|
Line 176 initiate a parsing sequence with |
|
and |
and |
.Fn mparse_alloc ; |
.Fn mparse_alloc ; |
.It |
.It |
parse files or file descriptors with |
parse files with |
|
.Fn mparse_open |
|
and |
.Fn mparse_readfd ; |
.Fn mparse_readfd ; |
.It |
.It |
retrieve a parsed syntax tree, if the parse was successful, with |
retrieve a parsed syntax tree, if the parse was successful, with |
|
|
implemented in |
implemented in |
.Pa read.c . |
.Pa read.c . |
.It Fn mparse_readfd |
.It Fn mparse_readfd |
Parse a file or file descriptor. |
Parse a file descriptor opened with |
If |
.Xr open 2 |
.Va fd |
or |
is -1, open |
|
.Va fname |
|
with |
|
.Fn mparse_open . |
.Fn mparse_open . |
Otherwise, |
Pass the associated filename in |
.Va fname |
.Va fname . |
is assumed to be the name associated with |
|
.Va fd . |
|
Calls |
Calls |
.Fn mparse_wait |
.Fn mparse_wait |
before returning. |
before returning. |