[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: CVS update: subversion/subversion/libsvn_subr io.c

From: Greg Stein <gstein_at_lyra.org>
Date: 2000-12-21 09:26:35 CET

On Thu, Dec 21, 2000 at 04:58:16AM -0000, ghudson@tigris.org wrote:
> User: ghudson
> Date: 00/12/20 20:58:16
>
> Modified: subversion/include svn_io.h
> subversion/libsvn_subr io.c
> Log:
> (read_handler_apr, close_handler_apr, read_handler_stdio,
> close_handler_stdio): Allow file to be NULL and act as if it's an empty
> file.

I'd think you could test this at creation time, and set the handlers as
appropriate. e.g. no write handler and a special read/close handler (rather
than dual-pathing the read and close handlers)

Does that sound a bit cleaner?

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
Received on Sat Oct 21 14:36:17 2006

This is an archived mail posted to the Subversion Dev mailing list.