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

Re: svn commit: r26917 - in trunk/subversion: include libsvn_subr

From: Eric Gillespie <epg_at_pretzelnet.org>
Date: 2007-10-04 04:47:27 CEST

"Paul Burba" <pburba@collab.net> writes:

> On Visual Studio 2005 the _IOLBF flag is equivalent to _IOFBF, see
> http://msdn2.microsoft.com/en-us/library/86cebhfs(VS.80).aspx

Last year I'd be stunned. But I spend so much time getting svn,
swig, and things to work on Windows these days, I'm used to it.

> Right now I have this local mod in place so I can work:
>
> /* Ignore any errors encountered while attempting to change stream
> buffering, as the streams should retain their default buffering
> modes. */
> setvbuf(error_stream, NULL, _IONBF, 0);
> +#ifdef WIN32
> + setvbuf(stdout, NULL, _IONBF, 0);
> +#elif
> setvbuf(stdout, NULL, _IOLBF, 0);
> #endif

I'm afraid it may be too expensive to turn buffering off
completely, if my experience with Windows performance in general
(and the stock terminal emulator in specific) is any indication.
So, it's probably best to change stdout only in #ifndef WIN32.

> But I welcome any thoughts as to a better solution.

That's just a thought; I'll defer to people with more Windows
experience.

-- 
Eric Gillespie <*> epg@pretzelnet.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 4 04:47:43 2007

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.