Planeshift
typecheck-gcc.h File Reference

Go to the source code of this file.

Macros

#define _curl_callback_compatible(func, type)
 
#define _curl_is_any_ptr(expr)   (sizeof(expr) == sizeof(void*))
 
#define _curl_is_arr(expr, type)
 
#define _curl_is_cb_data(expr)   _curl_is_any_ptr(expr)
 
#define _curl_is_cb_data_option(option)
 
#define _curl_is_conv_cb(expr)
 
#define _curl_is_conv_cb_option(option)
 
#define _curl_is_debug_cb(expr)
 
#define _curl_is_double_info(info)   (CURLINFO_DOUBLE < (info) && (info) < CURLINFO_SLIST)
 
#define _curl_is_error_buffer(expr)
 
#define _curl_is_FILE(expr)   (__builtin_types_compatible_p(__typeof__(expr), FILE *))
 
#define _curl_is_ioctl_cb(expr)
 
#define _curl_is_long(expr)
 
#define _curl_is_long_info(info)   (CURLINFO_LONG < (info) && (info) < CURLINFO_DOUBLE)
 
#define _curl_is_long_option(option)   (0 < (option) && (option) < CURLOPTTYPE_OBJECTPOINT)
 
#define _curl_is_NULL(expr)   (__builtin_types_compatible_p(__typeof__(expr), __typeof__(NULL)))
 
#define _curl_is_off_t(expr)   (__builtin_types_compatible_p(__typeof__(expr), curl_off_t))
 
#define _curl_is_off_t_option(option)   ((option) > CURLOPTTYPE_OFF_T)
 
#define _curl_is_opensocket_cb(expr)
 
#define _curl_is_postfields(expr)
 
#define _curl_is_postfields_option(option)
 
#define _curl_is_progress_cb(expr)
 
#define _curl_is_ptr(expr, type)
 
#define _curl_is_read_cb(expr)
 
#define _curl_is_seek_cb(expr)
 
#define _curl_is_slist_info(info)   (CURLINFO_SLIST < (info))
 
#define _curl_is_slist_option(option)
 
#define _curl_is_sockopt_cb(expr)
 
#define _curl_is_ssl_ctx_cb(expr)
 
#define _curl_is_string(expr)
 
#define _curl_is_string_info(info)   (CURLINFO_STRING < (info) && (info) < CURLINFO_LONG)
 
#define _curl_is_string_option(option)
 
#define _curl_is_write_cb(expr)
 
#define _curl_is_write_cb_option(option)
 
#define _CURL_WARNING(id, message)
 
#define curl_easy_getinfo(handle, info, arg)
 
#define curl_easy_setopt(handle, option, value)
 
#define curl_multi_setopt(handle, opt, param)   curl_multi_setopt(handle,opt,param)
 
#define curl_share_setopt(share, opt, param)   curl_share_setopt(share,opt,param)
 

Typedefs

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)
 
typedef int_curl_debug_callback1) (CURL *, curl_infotype, char *, size_t, void *)
 
typedef int_curl_debug_callback2) (CURL *, curl_infotype, char *, size_t, const void *)
 
typedef int_curl_debug_callback3) (CURL *, curl_infotype, const char *, size_t, void *)
 
typedef int_curl_debug_callback4) (CURL *, curl_infotype, const char *, size_t, const void *)
 
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 *)
 
typedef curl_socket_t_curl_opensocket_callback1) (void *, curlsocktype, struct curl_sockaddr *)
 
typedef curl_socket_t_curl_opensocket_callback2) (void *, curlsocktype, const struct curl_sockaddr *)
 
typedef curl_socket_t_curl_opensocket_callback3) (const void *, curlsocktype, struct curl_sockaddr *)
 
typedef curl_socket_t_curl_opensocket_callback4) (const void *, curlsocktype, const struct curl_sockaddr *)
 
typedef int_curl_progress_callback1) (void *, double, double, double, double)
 
typedef int_curl_progress_callback2) (const void *, double, double, double, double)
 
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 *)
 
typedef CURLcode(* _curl_seek_callback1) (void *, curl_off_t, int)
 
typedef CURLcode(* _curl_seek_callback2) (const void *, curl_off_t, int)
 
typedef int_curl_sockopt_callback1) (void *, curl_socket_t, curlsocktype)
 
typedef int_curl_sockopt_callback2) (const void *, curl_socket_t, curlsocktype)
 
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 *, const void *)
 
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 size_t( _curl_write_callback1) (const char *, size_t, size_t, void *)
 
typedef size_t( _curl_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, const void *)
 
typedef size_t( _curl_write_callback6) (const void *, size_t, size_t, FILE *)
 

Functions

 _CURL_WARNING (_curl_easy_setopt_err_long,"curl_easy_setopt expects a long argument for this option") _CURL_WARNING(_curl_easy_setopt_err_curl_off_t
 
curl_easy_setopt expects a curl_off_t argument for this option _CURL_WARNING (_curl_easy_setopt_err_string,"curl_easy_setopt expects a string (char* or char[]) argument for this option") _CURL_WARNING(_curl_easy_setopt_err_write_callback
 
curl_easy_setopt expects a curl_off_t argument for this option curl_easy_setopt expects a curl_write_callback argument for this option _CURL_WARNING (_curl_easy_setopt_err_read_cb,"curl_easy_setopt expects a curl_read_callback argument for this option") _CURL_WARNING(_curl_easy_setopt_err_ioctl_cb
 
curl_easy_setopt expects a curl_off_t argument for this option curl_easy_setopt expects a curl_write_callback argument for this option curl_easy_setopt expects a curl_ioctl_callback argument for this option _CURL_WARNING (_curl_easy_setopt_err_sockopt_cb,"curl_easy_setopt expects a curl_sockopt_callback argument for this option") _CURL_WARNING(_curl_easy_setopt_err_opensocket_cb
 
curl_easy_setopt expects a curl_off_t argument for this option curl_easy_setopt expects a curl_write_callback argument for this option curl_easy_setopt expects a curl_ioctl_callback argument for this option curl_easy_setopt expects a curl_opensocket_callback argument for this option _CURL_WARNING (_curl_easy_setopt_err_progress_cb,"curl_easy_setopt expects a curl_progress_callback argument for this option") _CURL_WARNING(_curl_easy_setopt_err_debug_cb
 
curl_easy_setopt expects a curl_off_t argument for this option curl_easy_setopt expects a curl_write_callback argument for this option curl_easy_setopt expects a curl_ioctl_callback argument for this option curl_easy_setopt expects a curl_opensocket_callback argument for this option curl_easy_setopt expects a curl_debug_callback argument for this option _CURL_WARNING (_curl_easy_setopt_err_ssl_ctx_cb,"curl_easy_setopt expects a curl_ssl_ctx_callback argument for this option") _CURL_WARNING(_curl_easy_setopt_err_conv_cb
 
curl_easy_setopt expects a curl_off_t argument for this option curl_easy_setopt expects a curl_write_callback argument for this option curl_easy_setopt expects a curl_ioctl_callback argument for this option curl_easy_setopt expects a curl_opensocket_callback argument for this option curl_easy_setopt expects a curl_debug_callback argument for this option curl_easy_setopt expects a curl_conv_callback argument for this option _CURL_WARNING (_curl_easy_setopt_err_seek_cb,"curl_easy_setopt expects a curl_seek_callback argument for this option") _CURL_WARNING(_curl_easy_setopt_err_cb_data
 
curl_easy_setopt expects a curl_off_t argument for this option curl_easy_setopt expects a curl_write_callback argument for this option curl_easy_setopt expects a curl_ioctl_callback argument for this option curl_easy_setopt expects a curl_opensocket_callback argument for this option curl_easy_setopt expects a curl_debug_callback argument for this option curl_easy_setopt expects a curl_conv_callback argument for this option curl_easy_setopt expects a private data pointer as argument for this option _CURL_WARNING (_curl_easy_setopt_err_error_buffer,"curl_easy_setopt expects a char buffer of CURL_ERROR_SIZE as argument for this option") _CURL_WARNING(_curl_easy_setopt_err_FILE
 
curl_easy_setopt expects a curl_off_t argument for this option curl_easy_setopt expects a curl_write_callback argument for this option curl_easy_setopt expects a curl_ioctl_callback argument for this option curl_easy_setopt expects a curl_opensocket_callback argument for this option curl_easy_setopt expects a curl_debug_callback argument for this option curl_easy_setopt expects a curl_conv_callback argument for this option curl_easy_setopt expects a private data pointer as argument for this option curl_easy_setopt expects a FILE *argument for this option _CURL_WARNING (_curl_easy_setopt_err_postfields,"curl_easy_setopt expects a void* or char* argument for this option") _CURL_WARNING(_curl_easy_setopt_err_curl_httpost
 
curl_easy_setopt expects a curl_off_t argument for this option curl_easy_setopt expects a curl_write_callback argument for this option curl_easy_setopt expects a curl_ioctl_callback argument for this option curl_easy_setopt expects a curl_opensocket_callback argument for this option curl_easy_setopt expects a curl_debug_callback argument for this option curl_easy_setopt expects a curl_conv_callback argument for this option curl_easy_setopt expects a private data pointer as argument for this option curl_easy_setopt expects a FILE *argument for this option curl_easy_setopt expects a struct curl_httppost *argument for this option _CURL_WARNING (_curl_easy_setopt_err_curl_slist,"curl_easy_setopt expects a struct curl_slist* argument for this option") _CURL_WARNING(_curl_easy_setopt_err_CURLSH
 
curl_easy_setopt expects a curl_off_t argument for this option curl_easy_setopt expects a curl_write_callback argument for this option curl_easy_setopt expects a curl_ioctl_callback argument for this option curl_easy_setopt expects a curl_opensocket_callback argument for this option curl_easy_setopt expects a curl_debug_callback argument for this option curl_easy_setopt expects a curl_conv_callback argument for this option curl_easy_setopt expects a private data pointer as argument for this option curl_easy_setopt expects a FILE *argument for this option curl_easy_setopt expects a struct curl_httppost *argument for this option curl_easy_setopt expects a CURLSH *argument for this option _CURL_WARNING (_curl_easy_getinfo_err_string,"curl_easy_getinfo expects a pointer to char * for this info") _CURL_WARNING(_curl_easy_getinfo_err_long
 
curl_easy_setopt expects a curl_off_t argument for this option curl_easy_setopt expects a curl_write_callback argument for this option curl_easy_setopt expects a curl_ioctl_callback argument for this option curl_easy_setopt expects a curl_opensocket_callback argument for this option curl_easy_setopt expects a curl_debug_callback argument for this option curl_easy_setopt expects a curl_conv_callback argument for this option curl_easy_setopt expects a private data pointer as argument for this option curl_easy_setopt expects a FILE *argument for this option curl_easy_setopt expects a struct curl_httppost *argument for this option curl_easy_setopt expects a CURLSH *argument for this option curl_easy_getinfo expects a pointer to long for this info _CURL_WARNING (_curl_easy_getinfo_err_double,"curl_easy_getinfo expects a pointer to double for this info") _CURL_WARNING(_curl_easy_getinfo_err_curl_slist
 

Macro Definition Documentation

#define _curl_callback_compatible (   func,
  type 
)
Value:
(__builtin_types_compatible_p(__typeof__(func), type) || \
__builtin_types_compatible_p(__typeof__(func), type*))

Definition at line 386 of file typecheck-gcc.h.

#define _curl_is_any_ptr (   expr)    (sizeof(expr) == sizeof(void*))

Definition at line 309 of file typecheck-gcc.h.

#define _curl_is_arr (   expr,
  type 
)
Value:
(_curl_is_ptr((expr), type) || \
__builtin_types_compatible_p(__typeof__(expr), type []))
#define _curl_is_ptr(expr, type)

Definition at line 324 of file typecheck-gcc.h.

#define _curl_is_cb_data (   expr)    _curl_is_any_ptr(expr)

Definition at line 367 of file typecheck-gcc.h.

#define _curl_is_cb_data_option (   option)
Value:
((option) == CURLOPT_WRITEDATA || \
(option) == CURLOPT_READDATA || \
(option) == CURLOPT_IOCTLDATA || \
(option) == CURLOPT_SOCKOPTDATA || \
(option) == CURLOPT_OPENSOCKETDATA || \
(option) == CURLOPT_PROGRESSDATA || \
(option) == CURLOPT_WRITEHEADER || \
(option) == CURLOPT_DEBUGDATA || \
(option) == CURLOPT_SSL_CTX_DATA || \
(option) == CURLOPT_SEEKDATA || \
(option) == CURLOPT_PRIVATE || \
0)
#define CURLOPT_READDATA
Definition: curl.h:1324
#define CURLOPT_WRITEDATA
Definition: curl.h:1323

Definition at line 248 of file typecheck-gcc.h.

#define _curl_is_conv_cb (   expr)
Value:
(_curl_is_NULL(expr) || \
__builtin_types_compatible_p(__typeof__(expr), curl_conv_callback) || \
CURLcode(* _curl_conv_callback1)(char *, size_t length)
CURLcode(* _curl_conv_callback3)(void *, size_t length)
CURLcode(* curl_conv_callback)(char *buffer, size_t length)
CURL_NO_OLDIES.
Definition: curl.h:473
#define _curl_callback_compatible(func, type)
CURLcode(* _curl_conv_callback2)(const char *, size_t length)
#define _curl_is_NULL(expr)
CURLcode(* _curl_conv_callback4)(const void *, size_t length)

Definition at line 529 of file typecheck-gcc.h.

#define _curl_is_conv_cb_option (   option)
Value:
((option) == CURLOPT_CONV_TO_NETWORK_FUNCTION || \
(option) == CURLOPT_CONV_FROM_NETWORK_FUNCTION || \
(option) == CURLOPT_CONV_FROM_UTF8_FUNCTION)

Definition at line 242 of file typecheck-gcc.h.

#define _curl_is_debug_cb (   expr)
Value:
(_curl_is_NULL(expr) || \
__builtin_types_compatible_p(__typeof__(expr), curl_debug_callback) || \
#define _curl_callback_compatible(func, type)
int(* curl_debug_callback)(CURL *handle, curl_infotype type, char *data, size_t size, void *userptr)
Definition: curl.h:297
int( _curl_debug_callback2)(CURL *, curl_infotype, char *, size_t, const void *)
int( _curl_debug_callback3)(CURL *, curl_infotype, const char *, size_t, void *)
int( _curl_debug_callback4)(CURL *, curl_infotype, const char *, size_t, const void *)
#define _curl_is_NULL(expr)
int( _curl_debug_callback1)(CURL *, curl_infotype, char *, size_t, void *)

Definition at line 480 of file typecheck-gcc.h.

#define _curl_is_double_info (   info)    (CURLINFO_DOUBLE < (info) && (info) < CURLINFO_SLIST)

Definition at line 289 of file typecheck-gcc.h.

#define _curl_is_error_buffer (   expr)
Value:
(__builtin_types_compatible_p(__typeof__(expr), char *) || \
__builtin_types_compatible_p(__typeof__(expr), char[]))

Definition at line 357 of file typecheck-gcc.h.

#define _curl_is_FILE (   expr)    (__builtin_types_compatible_p(__typeof__(expr), FILE *))

Definition at line 372 of file typecheck-gcc.h.

#define _curl_is_ioctl_cb (   expr)
Value:
(_curl_is_NULL(expr) || \
__builtin_types_compatible_p(__typeof__(expr), curl_ioctl_callback) || \
curlioerr( _curl_ioctl_callback2)(CURL *, int, const void *)
curlioerr( _curl_ioctl_callback4)(CURL *, curliocmd, const void *)
curlioerr( _curl_ioctl_callback3)(CURL *, curliocmd, void *)
#define _curl_callback_compatible(func, type)
curlioerr(* curl_ioctl_callback)(CURL *handle, int cmd, void *clientp)
Definition: curl.h:268
curlioerr( _curl_ioctl_callback1)(CURL *, int, void *)
#define _curl_is_NULL(expr)

Definition at line 429 of file typecheck-gcc.h.

#define _curl_is_long (   expr)
Value:
(__builtin_types_compatible_p(__typeof__(expr), long) || \
__builtin_types_compatible_p(__typeof__(expr), signed long) || \
__builtin_types_compatible_p(__typeof__(expr), unsigned long) || \
__builtin_types_compatible_p(__typeof__(expr), int) || \
__builtin_types_compatible_p(__typeof__(expr), signed int) || \
__builtin_types_compatible_p(__typeof__(expr), unsigned int) || \
__builtin_types_compatible_p(__typeof__(expr), short) || \
__builtin_types_compatible_p(__typeof__(expr), signed short) || \
__builtin_types_compatible_p(__typeof__(expr), unsigned short) || \
__builtin_types_compatible_p(__typeof__(expr), char) || \
__builtin_types_compatible_p(__typeof__(expr), signed char) || \
__builtin_types_compatible_p(__typeof__(expr), unsigned char))

Definition at line 337 of file typecheck-gcc.h.

#define _curl_is_long_info (   info)    (CURLINFO_LONG < (info) && (info) < CURLINFO_DOUBLE)

Definition at line 285 of file typecheck-gcc.h.

#define _curl_is_long_option (   option)    (0 < (option) && (option) < CURLOPTTYPE_OBJECTPOINT)

Definition at line 186 of file typecheck-gcc.h.

#define _curl_is_NULL (   expr)    (__builtin_types_compatible_p(__typeof__(expr), __typeof__(NULL)))

Definition at line 314 of file typecheck-gcc.h.

#define _curl_is_off_t (   expr)    (__builtin_types_compatible_p(__typeof__(expr), curl_off_t))

Definition at line 352 of file typecheck-gcc.h.

#define _curl_is_off_t_option (   option)    ((option) > CURLOPTTYPE_OFF_T)

Definition at line 189 of file typecheck-gcc.h.

#define _curl_is_opensocket_cb (   expr)
Value:
(_curl_is_NULL(expr) || \
__builtin_types_compatible_p(__typeof__(expr), curl_opensocket_callback) ||\
curl_socket_t( _curl_opensocket_callback2)(void *, curlsocktype, const struct curl_sockaddr *)
#define _curl_callback_compatible(func, type)
curl_socket_t(* curl_opensocket_callback)(void *clientp, curlsocktype purpose, struct curl_sockaddr *address)
Definition: curl.h:243
curl_socket_t( _curl_opensocket_callback3)(const void *, curlsocktype, struct curl_sockaddr *)
curl_socket_t( _curl_opensocket_callback1)(void *, curlsocktype, struct curl_sockaddr *)
#define _curl_is_NULL(expr)
curl_socket_t( _curl_opensocket_callback4)(const void *, curlsocktype, const struct curl_sockaddr *)

Definition at line 452 of file typecheck-gcc.h.

#define _curl_is_postfields (   expr)
Value:
(_curl_is_ptr((expr), void) || \
_curl_is_arr((expr), char))
#define _curl_is_arr(expr, type)
#define _curl_is_ptr(expr, type)

Definition at line 376 of file typecheck-gcc.h.

#define _curl_is_postfields_option (   option)
Value:
((option) == CURLOPT_POSTFIELDS || \
(option) == CURLOPT_COPYPOSTFIELDS || \
0)

Definition at line 263 of file typecheck-gcc.h.

#define _curl_is_progress_cb (   expr)
Value:
(_curl_is_NULL(expr) || \
__builtin_types_compatible_p(__typeof__(expr), curl_progress_callback) || \
int( _curl_progress_callback2)(const void *, double, double, double, double)
#define _curl_callback_compatible(func, type)
int( _curl_progress_callback1)(void *, double, double, double, double)
int(* curl_progress_callback)(void *clientp, double dltotal, double dlnow, double ultotal, double ulnow)
Definition: curl.h:172
#define _curl_is_NULL(expr)

Definition at line 469 of file typecheck-gcc.h.

#define _curl_is_ptr (   expr,
  type 
)
Value:
(_curl_is_NULL(expr) || \
__builtin_types_compatible_p(__typeof__(expr), type *) || \
__builtin_types_compatible_p(__typeof__(expr), const type *))
#define _curl_is_NULL(expr)

Definition at line 318 of file typecheck-gcc.h.

#define _curl_is_read_cb (   expr)
Value:
(_curl_is_NULL(expr) || \
__builtin_types_compatible_p(__typeof__(expr), __typeof__(fread)) || \
__builtin_types_compatible_p(__typeof__(expr), curl_read_callback) || \
size_t( _curl_read_callback5)(void *, size_t, size_t, const void *)
size_t( _curl_read_callback4)(void *, size_t, size_t, void *)
size_t( _curl_read_callback3)(char *, size_t, size_t, FILE *)
size_t( _curl_read_callback1)(char *, size_t, size_t, void *)
#define _curl_callback_compatible(func, type)
size_t( _curl_read_callback6)(void *, size_t, size_t, FILE *)
size_t( _curl_read_callback2)(char *, size_t, size_t, const void *)
size_t(* curl_read_callback)(char *buffer, size_t size, size_t nitems, void *instream)
Definition: curl.h:218
#define _curl_is_NULL(expr)

Definition at line 391 of file typecheck-gcc.h.

#define _curl_is_seek_cb (   expr)
Value:
(_curl_is_NULL(expr) || \
__builtin_types_compatible_p(__typeof__(expr), curl_seek_callback) || \
#define _curl_callback_compatible(func, type)
int(* curl_seek_callback)(void *instream, curl_off_t offset, int origin)
Definition: curl.h:207
CURLcode(* _curl_seek_callback2)(const void *, curl_off_t, int)
CURLcode(* _curl_seek_callback1)(void *, curl_off_t, int)
#define _curl_is_NULL(expr)

Definition at line 542 of file typecheck-gcc.h.

#define _curl_is_slist_info (   info)    (CURLINFO_SLIST < (info))

Definition at line 293 of file typecheck-gcc.h.

#define _curl_is_slist_option (   option)
Value:
((option) == CURLOPT_HTTPHEADER || \
(option) == CURLOPT_HTTP200ALIASES || \
(option) == CURLOPT_QUOTE || \
(option) == CURLOPT_POSTQUOTE || \
(option) == CURLOPT_PREQUOTE || \
(option) == CURLOPT_TELNETOPTIONS || \
0)

Definition at line 269 of file typecheck-gcc.h.

#define _curl_is_sockopt_cb (   expr)
Value:
(_curl_is_NULL(expr) || \
__builtin_types_compatible_p(__typeof__(expr), curl_sockopt_callback) || \
int( _curl_sockopt_callback1)(void *, curl_socket_t, curlsocktype)
#define _curl_callback_compatible(func, type)
int(* curl_sockopt_callback)(void *clientp, curl_socket_t curlfd, curlsocktype purpose)
Definition: curl.h:228
int( _curl_sockopt_callback2)(const void *, curl_socket_t, curlsocktype)
#define _curl_is_NULL(expr)

Definition at line 442 of file typecheck-gcc.h.

#define _curl_is_ssl_ctx_cb (   expr)
Value:
(_curl_is_NULL(expr) || \
__builtin_types_compatible_p(__typeof__(expr), curl_ssl_ctx_callback) || \
_curl_ssl_ctx_callback1 _curl_ssl_ctx_callback8
CURLcode( _curl_ssl_ctx_callback2)(CURL *, void *, const void *)
CURLcode( _curl_ssl_ctx_callback1)(CURL *, void *, void *)
CURLcode( _curl_ssl_ctx_callback4)(CURL *, const void *, const void *)
#define _curl_callback_compatible(func, type)
_curl_ssl_ctx_callback1 _curl_ssl_ctx_callback6
CURLcode( _curl_ssl_ctx_callback3)(CURL *, const void *, void *)
_curl_ssl_ctx_callback1 _curl_ssl_ctx_callback7
CURLcode(* curl_ssl_ctx_callback)(CURL *curl, void *ssl_ctx, void *userptr)
Definition: curl.h:475
_curl_ssl_ctx_callback1 _curl_ssl_ctx_callback5
#define _curl_is_NULL(expr)

Definition at line 498 of file typecheck-gcc.h.

#define _curl_is_string (   expr)
Value:
(_curl_is_arr((expr), char) || \
_curl_is_arr((expr), signed char) || \
_curl_is_arr((expr), unsigned char))
#define _curl_is_arr(expr, type)

Definition at line 329 of file typecheck-gcc.h.

#define _curl_is_string_info (   info)    (CURLINFO_STRING < (info) && (info) < CURLINFO_LONG)

Definition at line 281 of file typecheck-gcc.h.

#define _curl_is_string_option (   option)

Definition at line 193 of file typecheck-gcc.h.

#define _curl_is_write_cb (   expr)
Value:
(_curl_is_read_cb(expr) || \
__builtin_types_compatible_p(__typeof__(expr), __typeof__(fwrite)) || \
__builtin_types_compatible_p(__typeof__(expr), curl_write_callback) || \
size_t( _curl_write_callback4)(const void *, size_t, size_t, void *)
#define _curl_callback_compatible(func, type)
#define _curl_is_read_cb(expr)
size_t( _curl_write_callback2)(const char *, size_t, size_t, const void *)
size_t(* curl_write_callback)(char *buffer, size_t size, size_t nitems, void *outstream)
Definition: curl.h:197
size_t( _curl_write_callback3)(const char *, size_t, size_t, FILE *)
size_t( _curl_write_callback5)(const void *, size_t, size_t, const void *)
size_t( _curl_write_callback6)(const void *, size_t, size_t, FILE *)
size_t( _curl_write_callback1)(const char *, size_t, size_t, void *)

Definition at line 409 of file typecheck-gcc.h.

#define _curl_is_write_cb_option (   option)
Value:
((option) == CURLOPT_HEADERFUNCTION || \
(option) == CURLOPT_WRITEFUNCTION)

Definition at line 237 of file typecheck-gcc.h.

#define _CURL_WARNING (   id,
  message 
)
Value:
static void __attribute__((warning(message))) __attribute__((unused)) \
__attribute__((noinline)) id(void) { __asm__(""); }

Definition at line 121 of file typecheck-gcc.h.

#define curl_easy_getinfo (   handle,
  info,
  arg 
)
Value:
__extension__ ({ \
__typeof__ (info) _curl_info = info; \
if (__builtin_constant_p(_curl_info)) { \
if (_curl_is_string_info(_curl_info) && !_curl_is_arr((arg), char *)) \
_curl_easy_getinfo_err_string(); \
if (_curl_is_long_info(_curl_info) && !_curl_is_arr((arg), long)) \
_curl_easy_getinfo_err_long(); \
if (_curl_is_double_info(_curl_info) && !_curl_is_arr((arg), double)) \
_curl_easy_getinfo_err_double(); \
if (_curl_is_slist_info(_curl_info) && \
!_curl_is_arr((arg), struct curl_slist *)) \
_curl_easy_getinfo_err_curl_slist(); \
} \
curl_easy_getinfo(handle, _curl_info, arg); \
})
#define _curl_is_slist_info(info)
#define _curl_is_long_info(info)
#define _curl_is_double_info(info)
#define curl_easy_getinfo(handle, info, arg)
Definition: typecheck-gcc.h:92
#define _curl_is_arr(expr, type)
#define _curl_is_string_info(info)

Definition at line 92 of file typecheck-gcc.h.

#define curl_easy_setopt (   handle,
  option,
  value 
)

Definition at line 37 of file typecheck-gcc.h.

#define curl_multi_setopt (   handle,
  opt,
  param 
)    curl_multi_setopt(handle,opt,param)

Definition at line 114 of file typecheck-gcc.h.

#define curl_share_setopt (   share,
  opt,
  param 
)    curl_share_setopt(share,opt,param)

Definition at line 113 of file typecheck-gcc.h.

Typedef Documentation

typedef CURLcode(* _curl_conv_callback1) (char *, size_t length)

Definition at line 536 of file typecheck-gcc.h.

typedef CURLcode(* _curl_conv_callback2) (const char *, size_t length)

Definition at line 537 of file typecheck-gcc.h.

typedef CURLcode(* _curl_conv_callback3) (void *, size_t length)

Definition at line 538 of file typecheck-gcc.h.

typedef CURLcode(* _curl_conv_callback4) (const void *, size_t length)

Definition at line 539 of file typecheck-gcc.h.

typedef int( _curl_debug_callback1) (CURL *, curl_infotype, char *, size_t, void *)

Definition at line 487 of file typecheck-gcc.h.

typedef int( _curl_debug_callback2) (CURL *, curl_infotype, char *, size_t, const void *)

Definition at line 489 of file typecheck-gcc.h.

typedef int( _curl_debug_callback3) (CURL *, curl_infotype, const char *, size_t, void *)

Definition at line 491 of file typecheck-gcc.h.

typedef int( _curl_debug_callback4) (CURL *, curl_infotype, const char *, size_t, const void *)

Definition at line 493 of file typecheck-gcc.h.

typedef curlioerr( _curl_ioctl_callback1) (CURL *, int, void *)

Definition at line 436 of file typecheck-gcc.h.

typedef curlioerr( _curl_ioctl_callback2) (CURL *, int, const void *)

Definition at line 437 of file typecheck-gcc.h.

typedef curlioerr( _curl_ioctl_callback3) (CURL *, curliocmd, void *)

Definition at line 438 of file typecheck-gcc.h.

typedef curlioerr( _curl_ioctl_callback4) (CURL *, curliocmd, const void *)

Definition at line 439 of file typecheck-gcc.h.

typedef curl_socket_t( _curl_opensocket_callback1) (void *, curlsocktype, struct curl_sockaddr *)

Definition at line 460 of file typecheck-gcc.h.

typedef curl_socket_t( _curl_opensocket_callback2) (void *, curlsocktype, const struct curl_sockaddr *)

Definition at line 462 of file typecheck-gcc.h.

typedef curl_socket_t( _curl_opensocket_callback3) (const void *, curlsocktype, struct curl_sockaddr *)

Definition at line 464 of file typecheck-gcc.h.

typedef curl_socket_t( _curl_opensocket_callback4) (const void *, curlsocktype, const struct curl_sockaddr *)

Definition at line 466 of file typecheck-gcc.h.

typedef int( _curl_progress_callback1) (void *, double, double, double, double)

Definition at line 474 of file typecheck-gcc.h.

typedef int( _curl_progress_callback2) (const void *, double, double, double, double)

Definition at line 476 of file typecheck-gcc.h.

typedef size_t( _curl_read_callback1) (char *, size_t, size_t, void *)

Definition at line 401 of file typecheck-gcc.h.

typedef size_t( _curl_read_callback2) (char *, size_t, size_t, const void *)

Definition at line 402 of file typecheck-gcc.h.

typedef size_t( _curl_read_callback3) (char *, size_t, size_t, FILE *)

Definition at line 403 of file typecheck-gcc.h.

typedef size_t( _curl_read_callback4) (void *, size_t, size_t, void *)

Definition at line 404 of file typecheck-gcc.h.

typedef size_t( _curl_read_callback5) (void *, size_t, size_t, const void *)

Definition at line 405 of file typecheck-gcc.h.

typedef size_t( _curl_read_callback6) (void *, size_t, size_t, FILE *)

Definition at line 406 of file typecheck-gcc.h.

typedef CURLcode(* _curl_seek_callback1) (void *, curl_off_t, int)

Definition at line 547 of file typecheck-gcc.h.

typedef CURLcode(* _curl_seek_callback2) (const void *, curl_off_t, int)

Definition at line 548 of file typecheck-gcc.h.

typedef int( _curl_sockopt_callback1) (void *, curl_socket_t, curlsocktype)

Definition at line 447 of file typecheck-gcc.h.

typedef int( _curl_sockopt_callback2) (const void *, curl_socket_t, curlsocktype)

Definition at line 448 of file typecheck-gcc.h.

typedef CURLcode( _curl_ssl_ctx_callback1) (CURL *, void *, void *)

Definition at line 509 of file typecheck-gcc.h.

typedef CURLcode( _curl_ssl_ctx_callback2) (CURL *, void *, const void *)

Definition at line 510 of file typecheck-gcc.h.

typedef CURLcode( _curl_ssl_ctx_callback3) (CURL *, const void *, void *)

Definition at line 511 of file typecheck-gcc.h.

typedef CURLcode( _curl_ssl_ctx_callback4) (CURL *, const void *, const void *)

Definition at line 512 of file typecheck-gcc.h.

typedef size_t( _curl_write_callback1) (const char *, size_t, size_t, void *)

Definition at line 419 of file typecheck-gcc.h.

typedef size_t( _curl_write_callback2) (const char *, size_t, size_t, const void *)

Definition at line 420 of file typecheck-gcc.h.

typedef size_t( _curl_write_callback3) (const char *, size_t, size_t, FILE *)

Definition at line 422 of file typecheck-gcc.h.

typedef size_t( _curl_write_callback4) (const void *, size_t, size_t, void *)

Definition at line 423 of file typecheck-gcc.h.

typedef size_t( _curl_write_callback5) (const void *, size_t, size_t, const void *)

Definition at line 424 of file typecheck-gcc.h.

typedef size_t( _curl_write_callback6) (const void *, size_t, size_t, FILE *)

Definition at line 426 of file typecheck-gcc.h.

Function Documentation

_CURL_WARNING ( _curl_easy_setopt_err_long  ,
"curl_easy_setopt expects a long argument for this option"   
)
curl_easy_setopt expects a curl_off_t argument for this option _CURL_WARNING ( _curl_easy_setopt_err_string  ,
"curl_easy_setopt expects a string (char* or char[]) argument for this option"   
)
curl_easy_setopt expects a curl_off_t argument for this option curl_easy_setopt expects a curl_write_callback argument for this option _CURL_WARNING ( _curl_easy_setopt_err_read_cb  ,
"curl_easy_setopt expects a curl_read_callback argument for this option"   
)
curl_easy_setopt expects a curl_off_t argument for this option curl_easy_setopt expects a curl_write_callback argument for this option curl_easy_setopt expects a curl_ioctl_callback argument for this option _CURL_WARNING ( _curl_easy_setopt_err_sockopt_cb  ,
"curl_easy_setopt expects a curl_sockopt_callback argument for this option"   
)
curl_easy_setopt expects a curl_off_t argument for this option curl_easy_setopt expects a curl_write_callback argument for this option curl_easy_setopt expects a curl_ioctl_callback argument for this option curl_easy_setopt expects a curl_opensocket_callback argument for this option _CURL_WARNING ( _curl_easy_setopt_err_progress_cb  ,
"curl_easy_setopt expects a curl_progress_callback argument for this option"   
)
curl_easy_setopt expects a curl_off_t argument for this option curl_easy_setopt expects a curl_write_callback argument for this option curl_easy_setopt expects a curl_ioctl_callback argument for this option curl_easy_setopt expects a curl_opensocket_callback argument for this option curl_easy_setopt expects a curl_debug_callback argument for this option _CURL_WARNING ( _curl_easy_setopt_err_ssl_ctx_cb  ,
"curl_easy_setopt expects a curl_ssl_ctx_callback argument for this option"   
)
curl_easy_setopt expects a curl_off_t argument for this option curl_easy_setopt expects a curl_write_callback argument for this option curl_easy_setopt expects a curl_ioctl_callback argument for this option curl_easy_setopt expects a curl_opensocket_callback argument for this option curl_easy_setopt expects a curl_debug_callback argument for this option curl_easy_setopt expects a curl_conv_callback argument for this option _CURL_WARNING ( _curl_easy_setopt_err_seek_cb  ,
"curl_easy_setopt expects a curl_seek_callback argument for this option"   
)
curl_easy_setopt expects a curl_off_t argument for this option curl_easy_setopt expects a curl_write_callback argument for this option curl_easy_setopt expects a curl_ioctl_callback argument for this option curl_easy_setopt expects a curl_opensocket_callback argument for this option curl_easy_setopt expects a curl_debug_callback argument for this option curl_easy_setopt expects a curl_conv_callback argument for this option curl_easy_setopt expects a private data pointer as argument for this option _CURL_WARNING ( _curl_easy_setopt_err_error_buffer  ,
"curl_easy_setopt expects a char buffer of CURL_ERROR_SIZE as argument for this option"   
)
curl_easy_setopt expects a curl_off_t argument for this option curl_easy_setopt expects a curl_write_callback argument for this option curl_easy_setopt expects a curl_ioctl_callback argument for this option curl_easy_setopt expects a curl_opensocket_callback argument for this option curl_easy_setopt expects a curl_debug_callback argument for this option curl_easy_setopt expects a curl_conv_callback argument for this option curl_easy_setopt expects a private data pointer as argument for this option curl_easy_setopt expects a FILE* argument for this option _CURL_WARNING ( _curl_easy_setopt_err_postfields  ,
"curl_easy_setopt expects a void* or char* argument for this option"   
)
curl_easy_setopt expects a curl_off_t argument for this option curl_easy_setopt expects a curl_write_callback argument for this option curl_easy_setopt expects a curl_ioctl_callback argument for this option curl_easy_setopt expects a curl_opensocket_callback argument for this option curl_easy_setopt expects a curl_debug_callback argument for this option curl_easy_setopt expects a curl_conv_callback argument for this option curl_easy_setopt expects a private data pointer as argument for this option curl_easy_setopt expects a FILE* argument for this option curl_easy_setopt expects a struct curl_httppost* argument for this option _CURL_WARNING ( _curl_easy_setopt_err_curl_slist  ,
"curl_easy_setopt expects a struct curl_slist* argument for this option"   
)
curl_easy_setopt expects a curl_off_t argument for this option curl_easy_setopt expects a curl_write_callback argument for this option curl_easy_setopt expects a curl_ioctl_callback argument for this option curl_easy_setopt expects a curl_opensocket_callback argument for this option curl_easy_setopt expects a curl_debug_callback argument for this option curl_easy_setopt expects a curl_conv_callback argument for this option curl_easy_setopt expects a private data pointer as argument for this option curl_easy_setopt expects a FILE* argument for this option curl_easy_setopt expects a struct curl_httppost* argument for this option curl_easy_setopt expects a CURLSH* argument for this option _CURL_WARNING ( _curl_easy_getinfo_err_string  ,
"curl_easy_getinfo expects a pointer to char * for this info"   
)
curl_easy_setopt expects a curl_off_t argument for this option curl_easy_setopt expects a curl_write_callback argument for this option curl_easy_setopt expects a curl_ioctl_callback argument for this option curl_easy_setopt expects a curl_opensocket_callback argument for this option curl_easy_setopt expects a curl_debug_callback argument for this option curl_easy_setopt expects a curl_conv_callback argument for this option curl_easy_setopt expects a private data pointer as argument for this option curl_easy_setopt expects a FILE* argument for this option curl_easy_setopt expects a struct curl_httppost* argument for this option curl_easy_setopt expects a CURLSH* argument for this option curl_easy_getinfo expects a pointer to long for this info _CURL_WARNING ( _curl_easy_getinfo_err_double  ,
"curl_easy_getinfo expects a pointer to double for this info"   
)