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

Re: [PATCH] Issue 1627: Create subversion DLLs on Windows

From: Vlad Georgescu <vgeorgescu_at_gmail.com>
Date: 2007-01-03 16:14:34 CET

On 12/30/06, Branko Čibej <brane@xbc.nu> wrote:
> I have one question about exporting svn_ctype_table. My linker complains
> that the CONSTANT keyword in the .def file is deprecated, and that DATA
> should be used instead. I don't recall the reason for using CONSTANT
> instead of DATA; I thought that the end result was the same?

No. If you export with DATA you still have to use
__declspec(dllimport) to use the variable (at least that's what
happens with VS2005). CONSTANT allows you to use it directly [1].

CONSTANT is more dangerous because it doesn't do the pointer
indirection for you, but in our case, that's exactly what we want.

[1] http://msdn2.microsoft.com/en-us/library/54xsd65y(VS.71).aspx

-- 
Vlad
Received on Wed Jan 3 16:14:56 2007

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