mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-12 23:00:22 +02:00
(scm_c_port_for_each): Added.
This commit is contained in:
parent
c536b4b32e
commit
c2e1551674
1 changed files with 7 additions and 1 deletions
|
@ -397,7 +397,8 @@ used only during port creation are not retained.
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
@deffn {Scheme Procedure} port-for-each proc
|
@deffn {Scheme Procedure} port-for-each proc
|
||||||
@deffnx {C Function} scm_port_for_each (proc)
|
@deffnx {C Function} scm_port_for_each (SCM proc)
|
||||||
|
@deffnx {C Function} scm_c_port_for_each (void (*proc)(void *, SCM), void *data)
|
||||||
Apply @var{proc} to each port in the Guile port table
|
Apply @var{proc} to each port in the Guile port table
|
||||||
(FIXME: what is the Guile port table?)
|
(FIXME: what is the Guile port table?)
|
||||||
in turn. The return value is unspecified. More specifically,
|
in turn. The return value is unspecified. More specifically,
|
||||||
|
@ -405,6 +406,11 @@ in turn. The return value is unspecified. More specifically,
|
||||||
system at the time @code{port-for-each} is invoked. Changes to the
|
system at the time @code{port-for-each} is invoked. Changes to the
|
||||||
port table while @code{port-for-each} is running have no effect as far
|
port table while @code{port-for-each} is running have no effect as far
|
||||||
as @code{port-for-each} is concerned.
|
as @code{port-for-each} is concerned.
|
||||||
|
|
||||||
|
The C function @code{scm_port_for_each} takes a Scheme procedure
|
||||||
|
encoded as a @code{SCM} value, while @code{scm_c_port_for_each} takes
|
||||||
|
a pointer to a C function and passes along a arbitrary @var{data}
|
||||||
|
cookie.
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
@deffn {Scheme Procedure} setvbuf port mode [size]
|
@deffn {Scheme Procedure} setvbuf port mode [size]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue