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

Re: svn commit: r26533 - in trunk/subversion: include libsvn_client libsvn_subr libsvn_wc

From: Karl Fogel <kfogel_at_red-bean.com>
Date: 2007-09-12 10:36:43 CEST

"Erik Huelsmann" <ehuels@gmail.com> writes:
> I'll need to look at how we solved this in svn_ctypes.h, but as far as
> I recall there were problems with exporting variables from DLLs on
> Windows, because supposedly MSVC needs to reference a pointer to the
> variable whereas other compilers support manipulating the variable
> directly, see http://svn.haxx.se/dev/archive-2005-12/0364.shtml

Hmm. I didn't quite understand that, and unfortunately svn.haxx.se is
unreachable from my home network right now. We can't just define the
object once in svn_iter.c, and then declare it "extern" in svn_iter.h?
Does MSVC have a problem with that? (I thought it was standard C89.)

> I guess returning "(svn_error_t *)1" is the most portable solution to
> returning a constant-and-known-pointer value to check against...
>
> Comments?

Either one is fine, but having it be a real error object would be
better, of course.

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Sep 12 10:33:16 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.