cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: rfc: curl_easy_setopt() typechecker

From: Michal Marek <mmarek_at_suse.cz>
Date: Mon, 25 Feb 2008 16:28:50 +0100

Jamie Lokier wrote:
> Michal Marek wrote:
>> - The CURLOPT_SSLENGINE_DEFAULT option doesn't take any argument. This
>> means that completely valid code using CURLOPT_SSLENGINE_DEFAULT can
>> break due to the three-arg macro. OTOH it shouldn't be too hard to
>> pass a dummy option argument. Also, googling for code possibly
>> affected by this [3], I only found one project (among open source
>> code, that is).
>
> Since you're dependent on a modern GCC (or GCC-compatible compiler),
> you can assume that vararg macros are supported, so this is fixable -

I know. I tried that, but somehow couldn't get that working. But maybe I
just didn't try hard enough ;-)

> and you could even typecheck that no argument is supplied for this
> option :-)

Uh, that wouldn't be nice.

Michal
Received on 2008-02-25