curl-library
Re: typedef void CURL - compiler typechecking
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 19 Mar 2007 10:12:52 +0100 (CET)
Date: Mon, 19 Mar 2007 10:12:52 +0100 (CET)
On Mon, 19 Mar 2007, Gerrit Bruchhäuser wrote:
> The "typedef void CURL" in 'curl/curl.h' (and other void typedefs) disable
> compiletime typechecking. Please let me suggest to replace it with:
>
> typedef struct Curl_multi* CURL;
That would be completely wrong.
Even if I could agree to the type being something other than a mere 'void *'
would be useful, it really isn't a struct Curl_multi.
I take it you mean CURLM to be this type? I please, provide a full patch for
us to consider!
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-03-19