1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-18 17:50:29 +02:00

1999-07-04 Gary Houston <ghouston@easynet.co.uk>

* unif.c (scm_uniform_array_write): likewise.
	* ioext.c (scm_redirect_port): likewise.
	* ports.c (scm_putc): call scm_read_flush.
	(scm_puts): likewise.
	(scm_lfwrite): likewise.
	(scm_lseek): likewise.
	(scm_ftruncate): likewise.
	* ports.c (scm_fill_buffer): don't take pt argument.  change callers.
	(read_flush_void_port): new proc, for void port ptob.
	* vports.c (sf_read_flush): likewise.
	* strports.c (st_read_flush): take offset arg.
	* fports.c (local_read_flush): use offset, don't reset putback
	buffer here.
	* ports.h (scm_ptobfuns): let read_flush take an offset argument,
	which is the number of chars from the putback buffer.
	* ports.c (scm_read_flush): new procedure, resets the putback
	buffer before calling the ptob routine.
This commit is contained in:
Gary Houston 1999-07-04 11:50:54 +00:00
parent 6c9514275b
commit 283a1a0e77
8 changed files with 73 additions and 29 deletions

View file

@ -1564,7 +1564,7 @@ loop:
}
else
{
int ch = scm_fill_buffer (port_or_fd, pt);
int ch = scm_fill_buffer (port_or_fd);
if (ch == EOF)
{
@ -1704,7 +1704,7 @@ loop:
ans = cend - offset;
if (pt->rw_active == SCM_PORT_READ)
ptob->read_flush (port_or_fd);
scm_read_flush (port_or_fd);
while (remaining > 0)
{