guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add a `read' method for ports


From: Neil Jerram
Subject: Re: [PATCH] Add a `read' method for ports
Date: Thu, 12 Jun 2008 01:19:06 +0100

2008/6/11 Neil Jerram <address@hidden>:
>
> I haven't thought through all the cases yet, but it feels as though
> there should be a nice answer here.  For scm_c_read and
> scm_uniform_vector_read, for example, the callers already have a
> buffer, so all we need is a way to temporarily use that as the port's
> read buffer.

I couldn't resist trying this out... attached is a patch that
hopefully shows what I was trying to describe.  Please let me know
what you think.  (I haven't tried benchmarking it, but it at least
passes "make check".)

      Neil

Attachment: scm_fill_input_buf.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]