cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: rfc: curl_easy_setopt() typechecker

From: Jamie Lokier <jamie_at_shareable.org>
Date: Mon, 25 Feb 2008 13:02:53 +0000

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 -
and you could even typecheck that no argument is supplied for this
option :-)

-- Jamie
Received on 2008-02-25