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

Re: newline conversion with EDITOR

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-01-28 22:16:35 CET

On Mon, Jan 28, 2002 at 09:36:19AM -0500, Greg Hudson wrote:
> On Mon, 2002-01-28 at 04:57, Greg Stein wrote:
> > But I don't think we shold use FILE*. Using apr_file_t is portable. If it
> > has drawbacks, then we should fix APR, not workaround it.
>
> I'm a little confused by this claim. FILE * is extremely portable; not
> only is it in ANSI C, but it's also in K&R C. There have been some
> historical stdio bugs, but none I know of which would actually affect
> Subversion.

All right, let me rephrase and say that "apr_file_t is a better mapping to
native OS file facilities, yet remains portable." We get to use native file
operations on Win32, BeOS, OS/2, and Netware, rather than their covers for
FILE*.

As Karl says, for consistency, we ought to continue using apr_file_t, and to
add any missing functionality.

> (Likewise, system() is part of ANSI C, so is also quite portable, but is
> worth ignoring for other reasons.)

system() isn't very portable to things like Windows. apr_proc_create()
handles process creation a lot better...

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:37:00 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.