- Added curl_easy_getinfo typechecker.

- Added macros for curl_share_setopt and curl_multi_setopt to check at least
  the correct number of arguments.
This commit is contained in:
Michal Marek
2008-03-18 08:14:37 +00:00
parent 1380c9af9f
commit 6f3166c15b
7 changed files with 85 additions and 15 deletions

View File

@@ -548,6 +548,7 @@ void Curl_easy_initHandleData(struct SessionHandle *data)
* curl_easy_getinfo() is an external interface that allows an app to retrieve
* information from a performed transfer and similar.
*/
#undef curl_easy_getinfo
CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ...)
{
va_list arg;

View File

@@ -1778,6 +1778,7 @@ static CURLMcode multi_socket(struct Curl_multi *multi,
return result;
}
#undef curl_multi_setopt
CURLMcode curl_multi_setopt(CURLM *multi_handle,
CURLMoption option, ...)
{

View File

@@ -46,6 +46,7 @@ curl_share_init(void)
return share;
}
#undef curl_share_setopt
CURLSHcode
curl_share_setopt(CURLSH *sh, CURLSHoption option, ...)
{