cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: --engine option

From: Peter Sylvester <Peter.Sylvester_at_edelweb.fr>
Date: Tue, 7 Dec 2004 17:34:14 +0100 (MET)

Some time ago I had suggested (probably) in a private message

to replace the curl_easy_setopt in main.c by a macro that
tests the return code and exits to some error place, etc,
just in order to keep the code as unchanges as possible.

The error codes from setting options are relatively new.
A year ago, no error was ever returned.
something like: (untested)

#define curl_easy_setopt(curl, opt, parm) \
  do { if ((res = url_easy_setopt(curl, opt, parm))!= CURLE_OK) \
      goto show_error ;} while (0)
Received on 2004-12-07