| |
|
|
|
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: Mon, 31 Oct 2005 20:24:10 +0100 (CET)
On Mon, 31 Oct 2005, Bryan Henderson wrote:
> I looked at the code, and saw several other global variables:
Indeed. I didn't think far enough...
> 3) identity of the memory management functions (this is
They are global since they replace memory functions _before_ any malloc etc is
> 4) some kind of idna environment.
Yes, but that could be remade into something else since.
> 5) some kind of Amiga environment.
Right. It looks a little similiar like the windows thing concept-wise.
> 1. Document that you don't have to do curl_global_init() if you aren't using
The flags given to curl_global_init() are made just to allow it to init those
But I agree, it would be useful to properly document what things libcurl inits
> 2. Make the sub-global object I described, with the memory allocation
Yeps, as mentioned above.
> 3. Get a global-variable-free version of OpenSSL and use it with the
Is there a global-variable-free version of OpenSSL?
> 4. Do the same for those other global environments (Windows, idna, Amiga).
The windows init is not really a object we can do like this with, AFAIU. The
I'll appreciate help in all these aress!
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2005-10-31 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info