839 |
@deffnx {C Function} scm_make_soft_port (pv, modes) |
@deffnx {C Function} scm_make_soft_port (pv, modes) |
840 |
Return a port capable of receiving or delivering characters as |
Return a port capable of receiving or delivering characters as |
841 |
specified by the @var{modes} string (@pxref{File Ports, |
specified by the @var{modes} string (@pxref{File Ports, |
842 |
open-file}). @var{pv} must be a vector of length 5. Its |
open-file}). @var{pv} must be a vector of length 5 or 6. Its |
843 |
components are as follows: |
components are as follows: |
844 |
|
|
845 |
@enumerate 0 |
@enumerate 0 |
853 |
thunk for getting one character |
thunk for getting one character |
854 |
@item |
@item |
855 |
thunk for closing port (not by garbage collection) |
thunk for closing port (not by garbage collection) |
856 |
|
@item |
857 |
|
(if present and not @code{#f}) thunk for computing the number of |
858 |
|
characters that can be read from the port without blocking. |
859 |
@end enumerate |
@end enumerate |
860 |
|
|
861 |
For an output-only port only elements 0, 1, 2, and 4 need be |
For an output-only port only elements 0, 1, 2, and 4 need be |