Change the definition of the functions in scm_ptobfuns so that
authorJim Blandy <jimb@red-bean.com>
Fri, 9 Oct 1998 10:02:41 +0000 (10:02 +0000)
committerJim Blandy <jimb@red-bean.com>
Fri, 9 Oct 1998 10:02:41 +0000 (10:02 +0000)
commit0f88a8f3bda336c5c26341f3899ce5aa61d4db3c
tree379332b56d1cddc4155e6c2c2566e6702443b534
parentea9fc30d4bbe511bc6403d9f0a6a1d1725414ffa
Change the definition of the functions in scm_ptobfuns so that
they get passed the port object, not the port's stream.
* ports.h (scm_ptobfuns): Rename all `stream' arguments to `port'.
* gc.c (scm_gc_sweep): Pass the port itself to the free function.
* genio.c (scm_putc, scm_puts, scm_lfwrite, scm_fflush, scm_getc):
Pass the port itself to the scm_ptobs function.
* ports.c (scm_close_port, scm_force_output, scm_flush_all_ports,
scm_generic_fgets): Same.
(putc_void_port, puts_void_port, write_void_port, flush_void_port,
getc_void_port, fgets_void_port, close_void_port): Just change the
argument names; these functions don't really do anything.
* fports.c (local_fgetc, local_fgets, local_fclose, local_fflush,
local_fputc, local_fputs, local_ffwrite, local_pclose): Take the
port as an argument, and use SCM_STREAM to get the stdio FILE *.
Also, use prototyped definitions, and get rid of the extra
declarations.
(scm_fptob, scm_pipob): We don't need casts here any more.
* strports.c (prinstpt): Use prototype declarations.
(stputc, stwrite, stputs, stgetc): Take the port as an argument,
and use SCM_STREAM to get the string info.  Also, use prototyped
definitions, and get rid of the extra declarations.
* vports.c (sfputc, sfwrite, sfputs, sfflush, sfgetc, sfclose,
noop0): Same.
libguile/gc.c
libguile/genio.c
libguile/ports.c
libguile/strports.c
libguile/vports.c