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

Re: Using Sqlite in libsvn_wc towards Subversion 1.9++

From: Branko Čibej <brane_at_wandisco.com>
Date: Mon, 18 Nov 2013 04:37:18 +0100

On 18.11.2013 03:50, Justin Erenkrantz wrote:
> On Sun, Nov 17, 2013 at 7:34 AM, Bert Huijben <bert_at_qqmail.nl
> <mailto:bert_at_qqmail.nl>> wrote:
>
> But I would also like to recommend/ask that we start bundling
> Sqlite with
> Subversion, to allow optimizing for the specific version we use for a
> release without risking future breakage.
>
>
> If we use the amalgamation, are all of the symbols private to our
> usage? That is, if someone links in libsvn_wc and their application
> also links in the system (or another) sqlite, aren't we going to have
> a runtime conflict? -- justin

Nope, they're private. We force the SQLite APIs to be declared static
(that's a feature of the amalgamated code), and we only export the API
table pointer and a couple function pointers within our own namesapce;
see the last few lines in

http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/sqlite3wrapper.c?view=markup

— Brane

-- 
Branko Čibej | Director of Subversion
WANdisco // Non-Stop Data
e. brane_at_wandisco.com
Received on 2013-11-18 04:38:05 CET

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