| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Re: living without global variables
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 1 Dec 2005 18:15:04 +0100 (CET)
On Tue, 29 Nov 2005, Bryan Henderson wrote:
>> Also, I'm not fond of the specific functions added for the single specific
It enables binary compatibility and backwards source compatibility. So that
> At compile time, the compatibility characteristics look the same to me
Yes, but adding and removing functions to the API/ABI is a lot more expensive
> But binary compatibility is good, and so is reducing symbol table clutter. I
I don't understand. Why is
curl_client_use_global(curlc, CURL_GLOBAL_OPENSSL);
"messier" than
curl_client_use_global_openssl(curlc);
? They both pass the exact same amount of information, just in different ways.
> That handle may not be representable as a generic type (e.g. void *), and
True, but us taking a flag or a specific function doesn't change that.
>> Is there really a need for gnutls global data?
Indeed. Sorry, I forgot there was such a one. It is kind of funny that they
>> Further, is there a need for the curl_client_global_xxx_ok() public
Yes, and they shoule have a Curl_ prefix (instead of curl_) and not use
> But that reminds me of something I forgot to deal with: If the user is going
Now that can become a fun excersize.
> In particular, if a user wants to do SSL connections, the libcurl he links
Unfortunately that goes pretty much in the opposite direction of my efforts to
But I don't see how it can be avoided if the app really wants to do the global
> This seems to call for an option on curl-config to tell you what facilities
Yes, but curl-config does not work on all platforms libcurl works on... We
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2005-12-01 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info