SCM_DEFER_INTS;
if (scm_ptobs[i].fclose)
{
- SCM_SYSCALL (rv = (scm_ptobs[i].fclose) (SCM_STREAM (port)));
+ SCM_SYSCALL (rv = (scm_ptobs[i].fclose) (port));
/* ports with a closed file descriptor can be reclosed without error. */
if (rv < 0 && errno != EBADF)
scm_syserror (s_close_port);
}
{
scm_sizet i = SCM_PTOBNUM (port);
- SCM_SYSCALL ((scm_ptobs[i].fflush) (SCM_STREAM (port)));
+ SCM_SYSCALL ((scm_ptobs[i].fflush) (port));
return SCM_UNSPECIFIED;
}
}
if (SCM_OPOUTPORTP (port))
{
scm_sizet ptob = SCM_PTOBNUM (port);
- (scm_ptobs[ptob].fflush) (SCM_STREAM (port));
+ (scm_ptobs[ptob].fflush) (port);
}
}
return SCM_UNSPECIFIED;
SCM port;
int *len;
{
- SCM f = SCM_STREAM (port);
scm_sizet p = SCM_PTOBNUM (port);
char *buf;
limit *= 2;
}
- c = (scm_ptobs[p].fgetc) (f);
+ c = (scm_ptobs[p].fgetc) (port);
if (c != EOF)
buf[(*len)++] = c;
}
static int
-putc_void_port (int c, SCM strm)
+putc_void_port (int c, SCM port)
{
return 0; /* vestigial return value */
}
static int
-puts_void_port (char *s, SCM strm)
+puts_void_port (char *s, SCM port)
{
return 0; /* vestigial return value */
}
static scm_sizet
-write_void_port (char *ptr, scm_sizet size, scm_sizet nitems, SCM strm)
+write_void_port (char *ptr, scm_sizet size, scm_sizet nitems, SCM port)
{
int len;
len = size * nitems;
static int
-flush_void_port (SCM strm)
+flush_void_port (SCM port)
{
return 0;
}
static int
-getc_void_port (SCM strm)
+getc_void_port (SCM port)
{
return EOF;
}
static char *
-fgets_void_port (SCM strm, int *len)
+fgets_void_port (SCM port, int *len)
{
return NULL;
}
static int
-close_void_port (SCM strm)
+close_void_port (SCM port)
{
return 0; /* this is ignored by scm_close_port. */
}
}
-static struct scm_ptobfuns void_port_ptob =
+static struct scm_ptobfuns void_port_ptob =
{
0,
noop0,