cURL / Mailing Lists / curl-library / Single Mail

curl-library

bug in symbols.pl script?

From: Jeroen Ooms <jeroen.ooms_at_stat.ucla.edu>
Date: Tue, 3 Mar 2015 22:35:02 -0800

I used the curl-7.41.0/docs/libcurl/symbols.pl script to create a
header file [1] with the LIBCURL_HAS macro.

However when comparing this file to the symbol list on the website [2]
it looks as if many options that were deprecated and/or removed do not
have a _LAST entry in the header file, making it seem as if they are
still supported. A silly example:

#if LIBCURL_HAS(CURLOPT_HTTPREQUEST)
printf("test %d", CURLOPT_HTTPREQUEST);
#endif

This actually generates a compile error because there is no
CURLOPT_HTTPREQUEST_LAST entry in the header, however this symbol has
been removed a long time ago.

[1] https://gist.github.com/jeroenooms/4f2de49043fb1e0a79af
[2] http://curl.haxx.se/libcurl/c/symbols-in-versions.html
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-03-04