|
|
@@ -29,9 +29,9 @@
|
|
|
/* To add a new kind of warning, add an
|
|
|
* if(curlcheck_sometype_option(_curl_opt))
|
|
|
* if(!curlcheck_sometype(value))
|
|
|
- * _curl_easy_setopt_err_sometype();
|
|
|
+ * Wcurl_easy_setopt_err_sometype();
|
|
|
* block and define curlcheck_sometype_option, curlcheck_sometype and
|
|
|
- * _curl_easy_setopt_err_sometype below
|
|
|
+ * Wcurl_easy_setopt_err_sometype below
|
|
|
*
|
|
|
* NOTE: We use two nested 'if' statements here instead of the && operator, in
|
|
|
* order to work around gcc bug #32061. It affects only gcc 4.3.x/4.4.x
|
|
|
@@ -47,113 +47,113 @@
|
|
|
CURL_IGNORE_DEPRECATION( \
|
|
|
if(curlcheck_long_option(option)) \
|
|
|
if(!curlcheck_long(value)) \
|
|
|
- _curl_easy_setopt_err_long(); \
|
|
|
+ Wcurl_easy_setopt_err_long(); \
|
|
|
if(curlcheck_off_t_option(option)) \
|
|
|
if(!curlcheck_off_t(value)) \
|
|
|
- _curl_easy_setopt_err_curl_off_t(); \
|
|
|
+ Wcurl_easy_setopt_err_curl_off_t(); \
|
|
|
if(curlcheck_string_option(option)) \
|
|
|
if(!curlcheck_string(value)) \
|
|
|
- _curl_easy_setopt_err_string(); \
|
|
|
+ Wcurl_easy_setopt_err_string(); \
|
|
|
if((option) == CURLOPT_PRIVATE) { } \
|
|
|
if(curlcheck_write_cb_option(option)) \
|
|
|
if(!curlcheck_write_cb(value)) \
|
|
|
- _curl_easy_setopt_err_write_callback(); \
|
|
|
+ Wcurl_easy_setopt_err_write_callback(); \
|
|
|
if(curlcheck_curl_option(option)) \
|
|
|
if(!curlcheck_curl(value)) \
|
|
|
- _curl_easy_setopt_err_curl(); \
|
|
|
+ Wcurl_easy_setopt_err_curl(); \
|
|
|
if((option) == CURLOPT_RESOLVER_START_FUNCTION) \
|
|
|
if(!curlcheck_resolver_start_callback(value)) \
|
|
|
- _curl_easy_setopt_err_resolver_start_callback(); \
|
|
|
+ Wcurl_easy_setopt_err_resolver_start_callback(); \
|
|
|
if((option) == CURLOPT_READFUNCTION) \
|
|
|
if(!curlcheck_read_cb(value)) \
|
|
|
- _curl_easy_setopt_err_read_cb(); \
|
|
|
+ Wcurl_easy_setopt_err_read_cb(); \
|
|
|
if((option) == CURLOPT_IOCTLFUNCTION) \
|
|
|
if(!curlcheck_ioctl_cb(value)) \
|
|
|
- _curl_easy_setopt_err_ioctl_cb(); \
|
|
|
+ Wcurl_easy_setopt_err_ioctl_cb(); \
|
|
|
if((option) == CURLOPT_SOCKOPTFUNCTION) \
|
|
|
if(!curlcheck_sockopt_cb(value)) \
|
|
|
- _curl_easy_setopt_err_sockopt_cb(); \
|
|
|
+ Wcurl_easy_setopt_err_sockopt_cb(); \
|
|
|
if((option) == CURLOPT_OPENSOCKETFUNCTION) \
|
|
|
if(!curlcheck_opensocket_cb(value)) \
|
|
|
- _curl_easy_setopt_err_opensocket_cb(); \
|
|
|
+ Wcurl_easy_setopt_err_opensocket_cb(); \
|
|
|
if((option) == CURLOPT_PROGRESSFUNCTION) \
|
|
|
if(!curlcheck_progress_cb(value)) \
|
|
|
- _curl_easy_setopt_err_progress_cb(); \
|
|
|
+ Wcurl_easy_setopt_err_progress_cb(); \
|
|
|
if((option) == CURLOPT_XFERINFOFUNCTION) \
|
|
|
if(!curlcheck_xferinfo_cb(value)) \
|
|
|
- _curl_easy_setopt_err_xferinfo_cb(); \
|
|
|
+ Wcurl_easy_setopt_err_xferinfo_cb(); \
|
|
|
if((option) == CURLOPT_DEBUGFUNCTION) \
|
|
|
if(!curlcheck_debug_cb(value)) \
|
|
|
- _curl_easy_setopt_err_debug_cb(); \
|
|
|
+ Wcurl_easy_setopt_err_debug_cb(); \
|
|
|
if((option) == CURLOPT_SSL_CTX_FUNCTION) \
|
|
|
if(!curlcheck_ssl_ctx_cb(value)) \
|
|
|
- _curl_easy_setopt_err_ssl_ctx_cb(); \
|
|
|
+ Wcurl_easy_setopt_err_ssl_ctx_cb(); \
|
|
|
if(curlcheck_conv_cb_option(option)) \
|
|
|
if(!curlcheck_conv_cb(value)) \
|
|
|
- _curl_easy_setopt_err_conv_cb(); \
|
|
|
+ Wcurl_easy_setopt_err_conv_cb(); \
|
|
|
if((option) == CURLOPT_SEEKFUNCTION) \
|
|
|
if(!curlcheck_seek_cb(value)) \
|
|
|
- _curl_easy_setopt_err_seek_cb(); \
|
|
|
+ Wcurl_easy_setopt_err_seek_cb(); \
|
|
|
if((option) == CURLOPT_CHUNK_BGN_FUNCTION) \
|
|
|
if(!curlcheck_chunk_bgn_cb(value)) \
|
|
|
- _curl_easy_setopt_err_chunk_bgn_cb(); \
|
|
|
+ Wcurl_easy_setopt_err_chunk_bgn_cb(); \
|
|
|
if((option) == CURLOPT_CHUNK_END_FUNCTION) \
|
|
|
if(!curlcheck_chunk_end_cb(value)) \
|
|
|
- _curl_easy_setopt_err_chunk_end_cb(); \
|
|
|
+ Wcurl_easy_setopt_err_chunk_end_cb(); \
|
|
|
if((option) == CURLOPT_CLOSESOCKETFUNCTION) \
|
|
|
if(!curlcheck_close_socket_cb(value)) \
|
|
|
- _curl_easy_setopt_err_close_socket_cb(); \
|
|
|
+ Wcurl_easy_setopt_err_close_socket_cb(); \
|
|
|
if((option) == CURLOPT_FNMATCH_FUNCTION) \
|
|
|
if(!curlcheck_fnmatch_cb(value)) \
|
|
|
- _curl_easy_setopt_err_fnmatch_cb(); \
|
|
|
+ Wcurl_easy_setopt_err_fnmatch_cb(); \
|
|
|
if((option) == CURLOPT_HSTSREADFUNCTION) \
|
|
|
if(!curlcheck_hstsread_cb(value)) \
|
|
|
- _curl_easy_setopt_err_hstsread_cb(); \
|
|
|
+ Wcurl_easy_setopt_err_hstsread_cb(); \
|
|
|
if((option) == CURLOPT_HSTSWRITEFUNCTION) \
|
|
|
if(!curlcheck_hstswrite_cb(value)) \
|
|
|
- _curl_easy_setopt_err_hstswrite_cb(); \
|
|
|
+ Wcurl_easy_setopt_err_hstswrite_cb(); \
|
|
|
if((option) == CURLOPT_SSH_HOSTKEYFUNCTION) \
|
|
|
if(!curlcheck_ssh_hostkey_cb(value)) \
|
|
|
- _curl_easy_setopt_err_ssh_hostkey_cb(); \
|
|
|
+ Wcurl_easy_setopt_err_ssh_hostkey_cb(); \
|
|
|
if((option) == CURLOPT_SSH_KEYFUNCTION) \
|
|
|
if(!curlcheck_ssh_key_cb(value)) \
|
|
|
- _curl_easy_setopt_err_ssh_key_cb(); \
|
|
|
+ Wcurl_easy_setopt_err_ssh_key_cb(); \
|
|
|
if((option) == CURLOPT_INTERLEAVEFUNCTION) \
|
|
|
if(!curlcheck_interleave_cb(value)) \
|
|
|
- _curl_easy_setopt_err_interleave_cb(); \
|
|
|
+ Wcurl_easy_setopt_err_interleave_cb(); \
|
|
|
if((option) == CURLOPT_PREREQFUNCTION) \
|
|
|
if(!curlcheck_prereq_cb(value)) \
|
|
|
- _curl_easy_setopt_err_prereq_cb(); \
|
|
|
+ Wcurl_easy_setopt_err_prereq_cb(); \
|
|
|
if((option) == CURLOPT_TRAILERFUNCTION) \
|
|
|
if(!curlcheck_trailer_cb(value)) \
|
|
|
- _curl_easy_setopt_err_trailer_cb(); \
|
|
|
+ Wcurl_easy_setopt_err_trailer_cb(); \
|
|
|
if(curlcheck_cb_data_option(option)) \
|
|
|
if(!curlcheck_cb_data(value)) \
|
|
|
- _curl_easy_setopt_err_cb_data(); \
|
|
|
+ Wcurl_easy_setopt_err_cb_data(); \
|
|
|
if((option) == CURLOPT_ERRORBUFFER) \
|
|
|
if(!curlcheck_error_buffer(value)) \
|
|
|
- _curl_easy_setopt_err_error_buffer(); \
|
|
|
+ Wcurl_easy_setopt_err_error_buffer(); \
|
|
|
if((option) == CURLOPT_CURLU) \
|
|
|
if(!curlcheck_ptr((value), CURLU)) \
|
|
|
- _curl_easy_setopt_err_curlu(); \
|
|
|
+ Wcurl_easy_setopt_err_curlu(); \
|
|
|
if((option) == CURLOPT_STDERR) \
|
|
|
if(!curlcheck_FILE(value)) \
|
|
|
- _curl_easy_setopt_err_FILE(); \
|
|
|
+ Wcurl_easy_setopt_err_FILE(); \
|
|
|
if(curlcheck_postfields_option(option)) \
|
|
|
if(!curlcheck_postfields(value)) \
|
|
|
- _curl_easy_setopt_err_postfields(); \
|
|
|
+ Wcurl_easy_setopt_err_postfields(); \
|
|
|
if((option) == CURLOPT_HTTPPOST) \
|
|
|
if(!curlcheck_arr((value), struct curl_httppost)) \
|
|
|
- _curl_easy_setopt_err_curl_httpost(); \
|
|
|
+ Wcurl_easy_setopt_err_curl_httpost(); \
|
|
|
if((option) == CURLOPT_MIMEPOST) \
|
|
|
if(!curlcheck_ptr((value), curl_mime)) \
|
|
|
- _curl_easy_setopt_err_curl_mimepost(); \
|
|
|
+ Wcurl_easy_setopt_err_curl_mimepost(); \
|
|
|
if(curlcheck_slist_option(option)) \
|
|
|
if(!curlcheck_arr((value), struct curl_slist)) \
|
|
|
- _curl_easy_setopt_err_curl_slist(); \
|
|
|
+ Wcurl_easy_setopt_err_curl_slist(); \
|
|
|
if((option) == CURLOPT_SHARE) \
|
|
|
if(!curlcheck_ptr((value), CURLSH)) \
|
|
|
- _curl_easy_setopt_err_CURLSH(); \
|
|
|
+ Wcurl_easy_setopt_err_CURLSH(); \
|
|
|
) \
|
|
|
} \
|
|
|
curl_easy_setopt(handle, option, value); \
|
|
|
@@ -166,28 +166,28 @@
|
|
|
CURL_IGNORE_DEPRECATION( \
|
|
|
if(curlcheck_string_info(info)) \
|
|
|
if(!curlcheck_arr((arg), char *)) \
|
|
|
- _curl_easy_getinfo_err_string(); \
|
|
|
+ Wcurl_easy_getinfo_err_string(); \
|
|
|
if(curlcheck_long_info(info)) \
|
|
|
if(!curlcheck_arr((arg), long)) \
|
|
|
- _curl_easy_getinfo_err_long(); \
|
|
|
+ Wcurl_easy_getinfo_err_long(); \
|
|
|
if(curlcheck_double_info(info)) \
|
|
|
if(!curlcheck_arr((arg), double)) \
|
|
|
- _curl_easy_getinfo_err_double(); \
|
|
|
+ Wcurl_easy_getinfo_err_double(); \
|
|
|
if(curlcheck_slist_info(info)) \
|
|
|
if(!curlcheck_arr((arg), struct curl_slist *)) \
|
|
|
- _curl_easy_getinfo_err_curl_slist(); \
|
|
|
+ Wcurl_easy_getinfo_err_curl_slist(); \
|
|
|
if(curlcheck_tlssessioninfo_info(info)) \
|
|
|
if(!curlcheck_arr((arg), struct curl_tlssessioninfo *)) \
|
|
|
- _curl_easy_getinfo_err_curl_tlssessioninfo(); \
|
|
|
+ Wcurl_easy_getinfo_err_curl_tlssessioninfo(); \
|
|
|
if(curlcheck_certinfo_info(info)) \
|
|
|
if(!curlcheck_arr((arg), struct curl_certinfo *)) \
|
|
|
- _curl_easy_getinfo_err_curl_certinfo(); \
|
|
|
+ Wcurl_easy_getinfo_err_curl_certinfo(); \
|
|
|
if(curlcheck_socket_info(info)) \
|
|
|
if(!curlcheck_arr((arg), curl_socket_t)) \
|
|
|
- _curl_easy_getinfo_err_curl_socket(); \
|
|
|
+ Wcurl_easy_getinfo_err_curl_socket(); \
|
|
|
if(curlcheck_off_t_info(info)) \
|
|
|
if(!curlcheck_arr((arg), curl_off_t)) \
|
|
|
- _curl_easy_getinfo_err_curl_off_t(); \
|
|
|
+ Wcurl_easy_getinfo_err_curl_off_t(); \
|
|
|
) \
|
|
|
} \
|
|
|
curl_easy_getinfo(handle, info, arg); \
|
|
|
@@ -198,25 +198,28 @@
|
|
|
if(__builtin_constant_p(option)) { \
|
|
|
if(curlcheck_long_option(option)) \
|
|
|
if(!curlcheck_long(value)) \
|
|
|
- _curl_multi_setopt_err_long(); \
|
|
|
+ Wcurl_multi_setopt_err_long(); \
|
|
|
if(curlcheck_off_t_option(option)) \
|
|
|
if(!curlcheck_off_t(value)) \
|
|
|
- _curl_multi_setopt_err_curl_off_t(); \
|
|
|
+ Wcurl_multi_setopt_err_curl_off_t(); \
|
|
|
if(curlcheck_multicb_data_option(option)) \
|
|
|
if(!curlcheck_cb_data(value)) \
|
|
|
- _curl_multi_setopt_err_cb_data(); \
|
|
|
+ Wcurl_multi_setopt_err_cb_data(); \
|
|
|
if(curlcheck_charpp_option(option)) \
|
|
|
if(!curlcheck_ptrptr(value, char)) \
|
|
|
- _curl_multi_setopt_err_charpp(); \
|
|
|
+ Wcurl_multi_setopt_err_charpp(); \
|
|
|
+ if((option) == CURLMOPT_NOTIFYFUNCTION) \
|
|
|
+ if(!curlcheck_multinotify_cb(value)) \
|
|
|
+ Wcurl_multi_setopt_err_notifycb(); \
|
|
|
if((option) == CURLMOPT_PUSHFUNCTION) \
|
|
|
if(!curlcheck_multipush_cb(value)) \
|
|
|
- _curl_multi_setopt_err_pushcb(); \
|
|
|
+ Wcurl_multi_setopt_err_pushcb(); \
|
|
|
if((option) == CURLMOPT_SOCKETFUNCTION) \
|
|
|
if(!curlcheck_multisocket_cb(value)) \
|
|
|
- _curl_multi_setopt_err_socketcb(); \
|
|
|
+ Wcurl_multi_setopt_err_socketcb(); \
|
|
|
if((option) == CURLMOPT_TIMERFUNCTION) \
|
|
|
if(!curlcheck_multitimer_cb(value)) \
|
|
|
- _curl_multi_setopt_err_timercb(); \
|
|
|
+ Wcurl_multi_setopt_err_timercb(); \
|
|
|
} \
|
|
|
curl_multi_setopt(handle, option, value); \
|
|
|
})
|
|
|
@@ -224,7 +227,8 @@
|
|
|
/* evaluates to true if the option takes a data argument to pass to a
|
|
|
callback */
|
|
|
#define curlcheck_multicb_data_option(option) \
|
|
|
- ((option) == CURLMOPT_PUSHDATA || \
|
|
|
+ ((option) == CURLMOPT_NOTIFYDATA || \
|
|
|
+ (option) == CURLMOPT_PUSHDATA || \
|
|
|
(option) == CURLMOPT_SOCKETDATA || \
|
|
|
(option) == CURLMOPT_TIMERDATA || \
|
|
|
0)
|
|
|
@@ -246,17 +250,22 @@
|
|
|
curlcheck_cb_compatible((expr), curl_socket_callback))
|
|
|
|
|
|
/* evaluates to true if expr is of type curl_push_callback */
|
|
|
-#define curlcheck_multipush_cb(expr) \
|
|
|
- (curlcheck_NULL(expr) || \
|
|
|
+#define curlcheck_multipush_cb(expr) \
|
|
|
+ (curlcheck_NULL(expr) || \
|
|
|
curlcheck_cb_compatible((expr), curl_push_callback))
|
|
|
|
|
|
+/* evaluates to true if expr is of type curl_push_callback */
|
|
|
+#define curlcheck_multinotify_cb(expr) \
|
|
|
+ (curlcheck_NULL(expr) || \
|
|
|
+ curlcheck_cb_compatible((expr), curl_notify_callback))
|
|
|
+
|
|
|
/*
|
|
|
* For now, just make sure that the functions are called with three arguments
|
|
|
*/
|
|
|
#define curl_share_setopt(share,opt,param) curl_share_setopt(share,opt,param)
|
|
|
|
|
|
|
|
|
-/* the actual warnings, triggered by calling the _curl_easy_setopt_err*
|
|
|
+/* the actual warnings, triggered by calling the Wcurl_easy_setopt_err*
|
|
|
* functions */
|
|
|
|
|
|
/* To define a new warning, use _CURL_WARNING(identifier, "message") */
|
|
|
@@ -265,132 +274,134 @@
|
|
|
__attribute__((__unused__)) __attribute__((__noinline__)) \
|
|
|
id(void) { __asm__(""); }
|
|
|
|
|
|
-CURLWARNING(_curl_multi_setopt_err_long,
|
|
|
+CURLWARNING(Wcurl_multi_setopt_err_long,
|
|
|
"curl_multi_setopt expects a long argument")
|
|
|
-CURLWARNING(_curl_multi_setopt_err_curl_off_t,
|
|
|
+CURLWARNING(Wcurl_multi_setopt_err_curl_off_t,
|
|
|
"curl_multi_setopt expects a curl_off_t argument")
|
|
|
-CURLWARNING(_curl_multi_setopt_err_cb_data,
|
|
|
+CURLWARNING(Wcurl_multi_setopt_err_cb_data,
|
|
|
"curl_multi_setopt expects a 'void *' argument")
|
|
|
-CURLWARNING(_curl_multi_setopt_err_charpp,
|
|
|
+CURLWARNING(Wcurl_multi_setopt_err_charpp,
|
|
|
"curl_multi_setopt expects a 'char **' argument")
|
|
|
-CURLWARNING(_curl_multi_setopt_err_pushcb,
|
|
|
+CURLWARNING(Wcurl_multi_setopt_err_pushcb,
|
|
|
"curl_multi_setopt expects a curl_push_callback argument")
|
|
|
-CURLWARNING(_curl_multi_setopt_err_socketcb,
|
|
|
+CURLWARNING(Wcurl_multi_setopt_err_notifycb,
|
|
|
+ "curl_multi_setopt expects a curl_notify_callback argument")
|
|
|
+CURLWARNING(Wcurl_multi_setopt_err_socketcb,
|
|
|
"curl_multi_setopt expects a curl_socket_callback argument")
|
|
|
-CURLWARNING(_curl_multi_setopt_err_timercb,
|
|
|
+CURLWARNING(Wcurl_multi_setopt_err_timercb,
|
|
|
"curl_multi_setopt expects a curl_multi_timer_callback argument")
|
|
|
|
|
|
-CURLWARNING(_curl_easy_setopt_err_long,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_long,
|
|
|
"curl_easy_setopt expects a long argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_curl_off_t,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_curl_off_t,
|
|
|
"curl_easy_setopt expects a curl_off_t argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_string,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_string,
|
|
|
"curl_easy_setopt expects a "
|
|
|
"string ('char *' or char[]) argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_write_callback,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_write_callback,
|
|
|
"curl_easy_setopt expects a curl_write_callback argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_resolver_start_callback,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_resolver_start_callback,
|
|
|
"curl_easy_setopt expects a "
|
|
|
"curl_resolver_start_callback argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_read_cb,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_read_cb,
|
|
|
"curl_easy_setopt expects a curl_read_callback argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_ioctl_cb,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_ioctl_cb,
|
|
|
"curl_easy_setopt expects a curl_ioctl_callback argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_sockopt_cb,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_sockopt_cb,
|
|
|
"curl_easy_setopt expects a curl_sockopt_callback argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_opensocket_cb,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_opensocket_cb,
|
|
|
"curl_easy_setopt expects a "
|
|
|
"curl_opensocket_callback argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_progress_cb,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_progress_cb,
|
|
|
"curl_easy_setopt expects a curl_progress_callback argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_xferinfo_cb,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_xferinfo_cb,
|
|
|
"curl_easy_setopt expects a curl_xferinfo_callback argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_debug_cb,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_debug_cb,
|
|
|
"curl_easy_setopt expects a curl_debug_callback argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_ssl_ctx_cb,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_ssl_ctx_cb,
|
|
|
"curl_easy_setopt expects a curl_ssl_ctx_callback argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_conv_cb,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_conv_cb,
|
|
|
"curl_easy_setopt expects a curl_conv_callback argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_seek_cb,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_seek_cb,
|
|
|
"curl_easy_setopt expects a curl_seek_callback argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_cb_data,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_cb_data,
|
|
|
"curl_easy_setopt expects a "
|
|
|
"private data pointer as argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_chunk_bgn_cb,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_chunk_bgn_cb,
|
|
|
"curl_easy_setopt expects a curl_chunk_bgn_callback argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_chunk_end_cb,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_chunk_end_cb,
|
|
|
"curl_easy_setopt expects a curl_chunk_end_callback argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_close_socket_cb,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_close_socket_cb,
|
|
|
"curl_easy_setopt expects a curl_closesocket_callback argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_fnmatch_cb,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_fnmatch_cb,
|
|
|
"curl_easy_setopt expects a curl_fnmatch_callback argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_hstsread_cb,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_hstsread_cb,
|
|
|
"curl_easy_setopt expects a curl_hstsread_callback argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_hstswrite_cb,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_hstswrite_cb,
|
|
|
"curl_easy_setopt expects a curl_hstswrite_callback argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_ssh_key_cb,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_ssh_key_cb,
|
|
|
"curl_easy_setopt expects a curl_sshkeycallback argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_ssh_hostkey_cb,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_ssh_hostkey_cb,
|
|
|
"curl_easy_setopt expects a curl_sshhostkeycallback argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_interleave_cb,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_interleave_cb,
|
|
|
"curl_easy_setopt expects a curl_interleave_callback argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_prereq_cb,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_prereq_cb,
|
|
|
"curl_easy_setopt expects a curl_prereq_callback argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_trailer_cb,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_trailer_cb,
|
|
|
"curl_easy_setopt expects a curl_trailerfunc_ok argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_error_buffer,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_error_buffer,
|
|
|
"curl_easy_setopt expects a "
|
|
|
"char buffer of CURL_ERROR_SIZE as argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_curlu,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_curlu,
|
|
|
"curl_easy_setopt expects a 'CURLU *' argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_curl,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_curl,
|
|
|
"curl_easy_setopt expects a 'CURL *' argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_FILE,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_FILE,
|
|
|
"curl_easy_setopt expects a 'FILE *' argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_postfields,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_postfields,
|
|
|
"curl_easy_setopt expects a 'void *' or 'char *' argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_curl_httpost,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_curl_httpost,
|
|
|
"curl_easy_setopt expects a 'struct curl_httppost *' "
|
|
|
"argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_curl_mimepost,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_curl_mimepost,
|
|
|
"curl_easy_setopt expects a 'curl_mime *' "
|
|
|
"argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_curl_slist,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_curl_slist,
|
|
|
"curl_easy_setopt expects a 'struct curl_slist *' argument")
|
|
|
-CURLWARNING(_curl_easy_setopt_err_CURLSH,
|
|
|
+CURLWARNING(Wcurl_easy_setopt_err_CURLSH,
|
|
|
"curl_easy_setopt expects a CURLSH* argument")
|
|
|
-CURLWARNING(_curl_easy_getinfo_err_string,
|
|
|
+CURLWARNING(Wcurl_easy_getinfo_err_string,
|
|
|
"curl_easy_getinfo expects a pointer to 'char *'")
|
|
|
-CURLWARNING(_curl_easy_getinfo_err_long,
|
|
|
+CURLWARNING(Wcurl_easy_getinfo_err_long,
|
|
|
"curl_easy_getinfo expects a pointer to long")
|
|
|
-CURLWARNING(_curl_easy_getinfo_err_double,
|
|
|
+CURLWARNING(Wcurl_easy_getinfo_err_double,
|
|
|
"curl_easy_getinfo expects a pointer to double")
|
|
|
-CURLWARNING(_curl_easy_getinfo_err_curl_slist,
|
|
|
+CURLWARNING(Wcurl_easy_getinfo_err_curl_slist,
|
|
|
"curl_easy_getinfo expects a pointer to 'struct curl_slist *'")
|
|
|
-CURLWARNING(_curl_easy_getinfo_err_curl_tlssessioninfo,
|
|
|
+CURLWARNING(Wcurl_easy_getinfo_err_curl_tlssessioninfo,
|
|
|
"curl_easy_getinfo expects a pointer to "
|
|
|
"'struct curl_tlssessioninfo *'")
|
|
|
-CURLWARNING(_curl_easy_getinfo_err_curl_certinfo,
|
|
|
+CURLWARNING(Wcurl_easy_getinfo_err_curl_certinfo,
|
|
|
"curl_easy_getinfo expects a pointer to "
|
|
|
"'struct curl_certinfo *'")
|
|
|
-CURLWARNING(_curl_easy_getinfo_err_curl_socket,
|
|
|
+CURLWARNING(Wcurl_easy_getinfo_err_curl_socket,
|
|
|
"curl_easy_getinfo expects a pointer to curl_socket_t")
|
|
|
-CURLWARNING(_curl_easy_getinfo_err_curl_off_t,
|
|
|
+CURLWARNING(Wcurl_easy_getinfo_err_curl_off_t,
|
|
|
"curl_easy_getinfo expects a pointer to curl_off_t")
|
|
|
|
|
|
/* groups of curl_easy_setops options that take the same type of argument */
|
|
|
|
|
|
/* evaluates to true if option takes a long argument */
|
|
|
-#define curlcheck_long_option(option) \
|
|
|
+#define curlcheck_long_option(option) \
|
|
|
(0 < (option) && (option) < CURLOPTTYPE_OBJECTPOINT)
|
|
|
|
|
|
#define curlcheck_off_t_option(option) \
|
|
|
(((option) > CURLOPTTYPE_OFF_T) && ((option) < CURLOPTTYPE_BLOB))
|
|
|
|
|
|
/* option takes a CURL * argument */
|
|
|
-#define curlcheck_curl_option(option) \
|
|
|
- ((option) == CURLOPT_STREAM_DEPENDS || \
|
|
|
- (option) == CURLOPT_STREAM_DEPENDS_E || \
|
|
|
+#define curlcheck_curl_option(option) \
|
|
|
+ ((option) == CURLOPT_STREAM_DEPENDS || \
|
|
|
+ (option) == CURLOPT_STREAM_DEPENDS_E || \
|
|
|
0)
|
|
|
|
|
|
/* evaluates to true if option takes a char* argument */
|
|
|
@@ -673,7 +684,7 @@ CURLWARNING(_curl_easy_getinfo_err_curl_off_t,
|
|
|
(curlcheck_ptr((expr), void) || \
|
|
|
curlcheck_ptr((expr), FILE))
|
|
|
#else /* be less strict */
|
|
|
-#define curlcheck_cb_data(expr) \
|
|
|
+#define curlcheck_cb_data(expr) \
|
|
|
curlcheck_any_ptr(expr)
|
|
|
#endif
|
|
|
|
|
|
@@ -704,60 +715,60 @@ CURLWARNING(_curl_easy_getinfo_err_curl_off_t,
|
|
|
(curlcheck_NULL(expr) || \
|
|
|
curlcheck_cb_compatible((expr), __typeof__(fread) *) || \
|
|
|
curlcheck_cb_compatible((expr), curl_read_callback) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_read_callback1) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_read_callback2) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_read_callback3) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_read_callback4) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_read_callback5) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_read_callback6))
|
|
|
-typedef size_t (*_curl_read_callback1)(char *, size_t, size_t, void *);
|
|
|
-typedef size_t (*_curl_read_callback2)(char *, size_t, size_t, const void *);
|
|
|
-typedef size_t (*_curl_read_callback3)(char *, size_t, size_t, FILE *);
|
|
|
-typedef size_t (*_curl_read_callback4)(void *, size_t, size_t, void *);
|
|
|
-typedef size_t (*_curl_read_callback5)(void *, size_t, size_t, const void *);
|
|
|
-typedef size_t (*_curl_read_callback6)(void *, size_t, size_t, FILE *);
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_read_callback1) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_read_callback2) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_read_callback3) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_read_callback4) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_read_callback5) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_read_callback6))
|
|
|
+typedef size_t (*Wcurl_read_callback1)(char *, size_t, size_t, void *);
|
|
|
+typedef size_t (*Wcurl_read_callback2)(char *, size_t, size_t, const void *);
|
|
|
+typedef size_t (*Wcurl_read_callback3)(char *, size_t, size_t, FILE *);
|
|
|
+typedef size_t (*Wcurl_read_callback4)(void *, size_t, size_t, void *);
|
|
|
+typedef size_t (*Wcurl_read_callback5)(void *, size_t, size_t, const void *);
|
|
|
+typedef size_t (*Wcurl_read_callback6)(void *, size_t, size_t, FILE *);
|
|
|
|
|
|
/* evaluates to true if expr is of type curl_write_callback or "similar" */
|
|
|
#define curlcheck_write_cb(expr) \
|
|
|
(curlcheck_read_cb(expr) || \
|
|
|
curlcheck_cb_compatible((expr), __typeof__(fwrite) *) || \
|
|
|
curlcheck_cb_compatible((expr), curl_write_callback) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_write_callback1) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_write_callback2) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_write_callback3) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_write_callback4) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_write_callback5) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_write_callback6))
|
|
|
-typedef size_t (*_curl_write_callback1)(const char *, size_t, size_t, void *);
|
|
|
-typedef size_t (*_curl_write_callback2)(const char *, size_t, size_t,
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_write_callback1) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_write_callback2) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_write_callback3) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_write_callback4) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_write_callback5) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_write_callback6))
|
|
|
+typedef size_t (*Wcurl_write_callback1)(const char *, size_t, size_t, void *);
|
|
|
+typedef size_t (*Wcurl_write_callback2)(const char *, size_t, size_t,
|
|
|
const void *);
|
|
|
-typedef size_t (*_curl_write_callback3)(const char *, size_t, size_t, FILE *);
|
|
|
-typedef size_t (*_curl_write_callback4)(const void *, size_t, size_t, void *);
|
|
|
-typedef size_t (*_curl_write_callback5)(const void *, size_t, size_t,
|
|
|
+typedef size_t (*Wcurl_write_callback3)(const char *, size_t, size_t, FILE *);
|
|
|
+typedef size_t (*Wcurl_write_callback4)(const void *, size_t, size_t, void *);
|
|
|
+typedef size_t (*Wcurl_write_callback5)(const void *, size_t, size_t,
|
|
|
const void *);
|
|
|
-typedef size_t (*_curl_write_callback6)(const void *, size_t, size_t, FILE *);
|
|
|
+typedef size_t (*Wcurl_write_callback6)(const void *, size_t, size_t, FILE *);
|
|
|
|
|
|
/* evaluates to true if expr is of type curl_ioctl_callback or "similar" */
|
|
|
#define curlcheck_ioctl_cb(expr) \
|
|
|
(curlcheck_NULL(expr) || \
|
|
|
curlcheck_cb_compatible((expr), curl_ioctl_callback) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_ioctl_callback1) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_ioctl_callback2) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_ioctl_callback3) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_ioctl_callback4))
|
|
|
-typedef curlioerr (*_curl_ioctl_callback1)(CURL *, int, void *);
|
|
|
-typedef curlioerr (*_curl_ioctl_callback2)(CURL *, int, const void *);
|
|
|
-typedef curlioerr (*_curl_ioctl_callback3)(CURL *, curliocmd, void *);
|
|
|
-typedef curlioerr (*_curl_ioctl_callback4)(CURL *, curliocmd, const void *);
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_ioctl_callback1) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_ioctl_callback2) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_ioctl_callback3) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_ioctl_callback4))
|
|
|
+typedef curlioerr (*Wcurl_ioctl_callback1)(CURL *, int, void *);
|
|
|
+typedef curlioerr (*Wcurl_ioctl_callback2)(CURL *, int, const void *);
|
|
|
+typedef curlioerr (*Wcurl_ioctl_callback3)(CURL *, curliocmd, void *);
|
|
|
+typedef curlioerr (*Wcurl_ioctl_callback4)(CURL *, curliocmd, const void *);
|
|
|
|
|
|
/* evaluates to true if expr is of type curl_sockopt_callback or "similar" */
|
|
|
#define curlcheck_sockopt_cb(expr) \
|
|
|
(curlcheck_NULL(expr) || \
|
|
|
curlcheck_cb_compatible((expr), curl_sockopt_callback) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_sockopt_callback1) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_sockopt_callback2))
|
|
|
-typedef int (*_curl_sockopt_callback1)(void *, curl_socket_t, curlsocktype);
|
|
|
-typedef int (*_curl_sockopt_callback2)(const void *, curl_socket_t,
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_sockopt_callback1) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_sockopt_callback2))
|
|
|
+typedef int (*Wcurl_sockopt_callback1)(void *, curl_socket_t, curlsocktype);
|
|
|
+typedef int (*Wcurl_sockopt_callback2)(const void *, curl_socket_t,
|
|
|
curlsocktype);
|
|
|
|
|
|
/* evaluates to true if expr is of type curl_opensocket_callback or
|
|
|
@@ -765,28 +776,28 @@ typedef int (*_curl_sockopt_callback2)(const void *, curl_socket_t,
|
|
|
#define curlcheck_opensocket_cb(expr) \
|
|
|
(curlcheck_NULL(expr) || \
|
|
|
curlcheck_cb_compatible((expr), curl_opensocket_callback) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_opensocket_callback1) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_opensocket_callback2) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_opensocket_callback3) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_opensocket_callback4))
|
|
|
-typedef curl_socket_t (*_curl_opensocket_callback1)
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_opensocket_callback1) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_opensocket_callback2) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_opensocket_callback3) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_opensocket_callback4))
|
|
|
+typedef curl_socket_t (*Wcurl_opensocket_callback1)
|
|
|
(void *, curlsocktype, struct curl_sockaddr *);
|
|
|
-typedef curl_socket_t (*_curl_opensocket_callback2)
|
|
|
+typedef curl_socket_t (*Wcurl_opensocket_callback2)
|
|
|
(void *, curlsocktype, const struct curl_sockaddr *);
|
|
|
-typedef curl_socket_t (*_curl_opensocket_callback3)
|
|
|
+typedef curl_socket_t (*Wcurl_opensocket_callback3)
|
|
|
(const void *, curlsocktype, struct curl_sockaddr *);
|
|
|
-typedef curl_socket_t (*_curl_opensocket_callback4)
|
|
|
+typedef curl_socket_t (*Wcurl_opensocket_callback4)
|
|
|
(const void *, curlsocktype, const struct curl_sockaddr *);
|
|
|
|
|
|
/* evaluates to true if expr is of type curl_progress_callback or "similar" */
|
|
|
#define curlcheck_progress_cb(expr) \
|
|
|
(curlcheck_NULL(expr) || \
|
|
|
curlcheck_cb_compatible((expr), curl_progress_callback) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_progress_callback1) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_progress_callback2))
|
|
|
-typedef int (*_curl_progress_callback1)(void *,
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_progress_callback1) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_progress_callback2))
|
|
|
+typedef int (*Wcurl_progress_callback1)(void *,
|
|
|
double, double, double, double);
|
|
|
-typedef int (*_curl_progress_callback2)(const void *,
|
|
|
+typedef int (*Wcurl_progress_callback2)(const void *,
|
|
|
double, double, double, double);
|
|
|
|
|
|
/* evaluates to true if expr is of type curl_xferinfo_callback */
|
|
|
@@ -798,29 +809,29 @@ typedef int (*_curl_progress_callback2)(const void *,
|
|
|
#define curlcheck_debug_cb(expr) \
|
|
|
(curlcheck_NULL(expr) || \
|
|
|
curlcheck_cb_compatible((expr), curl_debug_callback) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_debug_callback1) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_debug_callback2) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_debug_callback3) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_debug_callback4) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_debug_callback5) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_debug_callback6) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_debug_callback7) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_debug_callback8))
|
|
|
-typedef int (*_curl_debug_callback1) (CURL *,
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_debug_callback1) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_debug_callback2) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_debug_callback3) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_debug_callback4) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_debug_callback5) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_debug_callback6) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_debug_callback7) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_debug_callback8))
|
|
|
+typedef int (*Wcurl_debug_callback1) (CURL *,
|
|
|
curl_infotype, char *, size_t, void *);
|
|
|
-typedef int (*_curl_debug_callback2) (CURL *,
|
|
|
+typedef int (*Wcurl_debug_callback2) (CURL *,
|
|
|
curl_infotype, char *, size_t, const void *);
|
|
|
-typedef int (*_curl_debug_callback3) (CURL *,
|
|
|
+typedef int (*Wcurl_debug_callback3) (CURL *,
|
|
|
curl_infotype, const char *, size_t, void *);
|
|
|
-typedef int (*_curl_debug_callback4) (CURL *,
|
|
|
+typedef int (*Wcurl_debug_callback4) (CURL *,
|
|
|
curl_infotype, const char *, size_t, const void *);
|
|
|
-typedef int (*_curl_debug_callback5) (CURL *,
|
|
|
+typedef int (*Wcurl_debug_callback5) (CURL *,
|
|
|
curl_infotype, unsigned char *, size_t, void *);
|
|
|
-typedef int (*_curl_debug_callback6) (CURL *,
|
|
|
+typedef int (*Wcurl_debug_callback6) (CURL *,
|
|
|
curl_infotype, unsigned char *, size_t, const void *);
|
|
|
-typedef int (*_curl_debug_callback7) (CURL *,
|
|
|
+typedef int (*Wcurl_debug_callback7) (CURL *,
|
|
|
curl_infotype, const unsigned char *, size_t, void *);
|
|
|
-typedef int (*_curl_debug_callback8) (CURL *,
|
|
|
+typedef int (*Wcurl_debug_callback8) (CURL *,
|
|
|
curl_infotype, const unsigned char *, size_t, const void *);
|
|
|
|
|
|
/* evaluates to true if expr is of type curl_ssl_ctx_callback or "similar" */
|
|
|
@@ -828,66 +839,66 @@ typedef int (*_curl_debug_callback8) (CURL *,
|
|
|
#define curlcheck_ssl_ctx_cb(expr) \
|
|
|
(curlcheck_NULL(expr) || \
|
|
|
curlcheck_cb_compatible((expr), curl_ssl_ctx_callback) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_ssl_ctx_callback1) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_ssl_ctx_callback2) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_ssl_ctx_callback3) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_ssl_ctx_callback4) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_ssl_ctx_callback5) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_ssl_ctx_callback6) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_ssl_ctx_callback7) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_ssl_ctx_callback8))
|
|
|
-typedef CURLcode (*_curl_ssl_ctx_callback1)(CURL *, void *, void *);
|
|
|
-typedef CURLcode (*_curl_ssl_ctx_callback2)(CURL *, void *, const void *);
|
|
|
-typedef CURLcode (*_curl_ssl_ctx_callback3)(CURL *, const void *, void *);
|
|
|
-typedef CURLcode (*_curl_ssl_ctx_callback4)(CURL *, const void *,
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_ssl_ctx_callback1) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_ssl_ctx_callback2) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_ssl_ctx_callback3) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_ssl_ctx_callback4) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_ssl_ctx_callback5) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_ssl_ctx_callback6) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_ssl_ctx_callback7) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_ssl_ctx_callback8))
|
|
|
+typedef CURLcode (*Wcurl_ssl_ctx_callback1)(CURL *, void *, void *);
|
|
|
+typedef CURLcode (*Wcurl_ssl_ctx_callback2)(CURL *, void *, const void *);
|
|
|
+typedef CURLcode (*Wcurl_ssl_ctx_callback3)(CURL *, const void *, void *);
|
|
|
+typedef CURLcode (*Wcurl_ssl_ctx_callback4)(CURL *, const void *,
|
|
|
const void *);
|
|
|
#ifdef HEADER_SSL_H
|
|
|
/* hack: if we included OpenSSL's ssl.h, we know about SSL_CTX
|
|
|
* this will of course break if we are included before OpenSSL headers...
|
|
|
*/
|
|
|
-typedef CURLcode (*_curl_ssl_ctx_callback5)(CURL *, SSL_CTX *, void *);
|
|
|
-typedef CURLcode (*_curl_ssl_ctx_callback6)(CURL *, SSL_CTX *, const void *);
|
|
|
-typedef CURLcode (*_curl_ssl_ctx_callback7)(CURL *, const SSL_CTX *, void *);
|
|
|
-typedef CURLcode (*_curl_ssl_ctx_callback8)(CURL *, const SSL_CTX *,
|
|
|
+typedef CURLcode (*Wcurl_ssl_ctx_callback5)(CURL *, SSL_CTX *, void *);
|
|
|
+typedef CURLcode (*Wcurl_ssl_ctx_callback6)(CURL *, SSL_CTX *, const void *);
|
|
|
+typedef CURLcode (*Wcurl_ssl_ctx_callback7)(CURL *, const SSL_CTX *, void *);
|
|
|
+typedef CURLcode (*Wcurl_ssl_ctx_callback8)(CURL *, const SSL_CTX *,
|
|
|
const void *);
|
|
|
#else
|
|
|
-typedef _curl_ssl_ctx_callback1 _curl_ssl_ctx_callback5;
|
|
|
-typedef _curl_ssl_ctx_callback1 _curl_ssl_ctx_callback6;
|
|
|
-typedef _curl_ssl_ctx_callback1 _curl_ssl_ctx_callback7;
|
|
|
-typedef _curl_ssl_ctx_callback1 _curl_ssl_ctx_callback8;
|
|
|
+typedef Wcurl_ssl_ctx_callback1 Wcurl_ssl_ctx_callback5;
|
|
|
+typedef Wcurl_ssl_ctx_callback1 Wcurl_ssl_ctx_callback6;
|
|
|
+typedef Wcurl_ssl_ctx_callback1 Wcurl_ssl_ctx_callback7;
|
|
|
+typedef Wcurl_ssl_ctx_callback1 Wcurl_ssl_ctx_callback8;
|
|
|
#endif
|
|
|
|
|
|
/* evaluates to true if expr is of type curl_conv_callback or "similar" */
|
|
|
#define curlcheck_conv_cb(expr) \
|
|
|
(curlcheck_NULL(expr) || \
|
|
|
curlcheck_cb_compatible((expr), curl_conv_callback) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_conv_callback1) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_conv_callback2) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_conv_callback3) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_conv_callback4))
|
|
|
-typedef CURLcode (*_curl_conv_callback1)(char *, size_t length);
|
|
|
-typedef CURLcode (*_curl_conv_callback2)(const char *, size_t length);
|
|
|
-typedef CURLcode (*_curl_conv_callback3)(void *, size_t length);
|
|
|
-typedef CURLcode (*_curl_conv_callback4)(const void *, size_t length);
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_conv_callback1) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_conv_callback2) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_conv_callback3) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_conv_callback4))
|
|
|
+typedef CURLcode (*Wcurl_conv_callback1)(char *, size_t length);
|
|
|
+typedef CURLcode (*Wcurl_conv_callback2)(const char *, size_t length);
|
|
|
+typedef CURLcode (*Wcurl_conv_callback3)(void *, size_t length);
|
|
|
+typedef CURLcode (*Wcurl_conv_callback4)(const void *, size_t length);
|
|
|
|
|
|
/* evaluates to true if expr is of type curl_seek_callback or "similar" */
|
|
|
#define curlcheck_seek_cb(expr) \
|
|
|
(curlcheck_NULL(expr) || \
|
|
|
curlcheck_cb_compatible((expr), curl_seek_callback) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_seek_callback1) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_seek_callback2))
|
|
|
-typedef CURLcode (*_curl_seek_callback1)(void *, curl_off_t, int);
|
|
|
-typedef CURLcode (*_curl_seek_callback2)(const void *, curl_off_t, int);
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_seek_callback1) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_seek_callback2))
|
|
|
+typedef CURLcode (*Wcurl_seek_callback1)(void *, curl_off_t, int);
|
|
|
+typedef CURLcode (*Wcurl_seek_callback2)(const void *, curl_off_t, int);
|
|
|
|
|
|
/* evaluates to true if expr is of type curl_chunk_bgn_callback */
|
|
|
#define curlcheck_chunk_bgn_cb(expr) \
|
|
|
(curlcheck_NULL(expr) || \
|
|
|
curlcheck_cb_compatible((expr), curl_chunk_bgn_callback) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_chunk_bgn_callback1) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_chunk_bgn_callback2))
|
|
|
-typedef long (*_curl_chunk_bgn_callback1)(struct curl_fileinfo *,
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_chunk_bgn_callback1) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_chunk_bgn_callback2))
|
|
|
+typedef long (*Wcurl_chunk_bgn_callback1)(struct curl_fileinfo *,
|
|
|
void *, int);
|
|
|
-typedef long (*_curl_chunk_bgn_callback2)(void *, void *, int);
|
|
|
+typedef long (*Wcurl_chunk_bgn_callback2)(void *, void *, int);
|
|
|
|
|
|
/* evaluates to true if expr is of type curl_chunk_end_callback */
|
|
|
#define curlcheck_chunk_end_cb(expr) \
|
|
|
@@ -927,11 +938,11 @@ typedef long (*_curl_chunk_bgn_callback2)(void *, void *, int);
|
|
|
/* evaluates to true if expr is of type curl_interleave_callback */
|
|
|
#define curlcheck_interleave_cb(expr) \
|
|
|
(curlcheck_NULL(expr) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_interleave_callback1) || \
|
|
|
- curlcheck_cb_compatible((expr), _curl_interleave_callback2))
|
|
|
-typedef size_t (*_curl_interleave_callback1)(void *p, size_t s,
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_interleave_callback1) || \
|
|
|
+ curlcheck_cb_compatible((expr), Wcurl_interleave_callback2))
|
|
|
+typedef size_t (*Wcurl_interleave_callback1)(void *p, size_t s,
|
|
|
size_t n, void *u);
|
|
|
-typedef size_t (*_curl_interleave_callback2)(char *p, size_t s,
|
|
|
+typedef size_t (*Wcurl_interleave_callback2)(char *p, size_t s,
|
|
|
size_t n, void *u);
|
|
|
|
|
|
/* evaluates to true if expr is of type curl_prereq_callback */
|