cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: We could use some help with...

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 9 Dec 2014 10:42:08 +0100 (CET)

On Mon, 8 Dec 2014, John Coffey wrote:

> and 25% (in my opinion) an libCurl issue due to the weakness of using
> loosely coupled va_args to extract arguments from a variable length argument
> list while setting libCurl options.

Yeah, using varargs for this was probably not the wisest design choice when we
created the API some 14 years ago but it also why we continously stress the
exact variable type to pass in for each option.

The typecheck-gcc.h macromania is another way we try to help users to discover
these mistakes.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-12-09