Defines | Typedefs | Functions
typecheck-gcc.h File Reference

Go to the source code of this file.

Defines

#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 int( _curl_debug_callback5 )(CURL *, curl_infotype, unsigned char *, size_t, void *)
typedef int( _curl_debug_callback6 )(CURL *, curl_infotype, unsigned char *, size_t, const void *)
typedef int( _curl_debug_callback7 )(CURL *, curl_infotype, const unsigned char *, size_t, void *)
typedef int( _curl_debug_callback8 )(CURL *, curl_infotype, const unsigned 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

Define 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 444 of file typecheck-gcc.h.

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

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

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

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

#define _curl_is_cb_data (   expr)    _curl_is_any_ptr(expr)

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

#define _curl_is_cb_data_option (   option)
Value:
((option) == CURLOPT_CHUNK_DATA ||                                          \
   (option) == CURLOPT_CLOSESOCKETDATA ||                                     \
   (option) == CURLOPT_DEBUGDATA ||                                           \
   (option) == CURLOPT_FNMATCH_DATA ||                                        \
   (option) == CURLOPT_HEADERDATA ||                                          \
   (option) == CURLOPT_INTERLEAVEDATA ||                                      \
   (option) == CURLOPT_IOCTLDATA ||                                           \
   (option) == CURLOPT_OPENSOCKETDATA ||                                      \
   (option) == CURLOPT_PRIVATE ||                                             \
   (option) == CURLOPT_PROGRESSDATA ||                                        \
   (option) == CURLOPT_READDATA ||                                            \
   (option) == CURLOPT_SEEKDATA ||                                            \
   (option) == CURLOPT_SOCKOPTDATA ||                                         \
   (option) == CURLOPT_SSH_KEYDATA ||                                         \
   (option) == CURLOPT_SSL_CTX_DATA ||                                        \
   (option) == CURLOPT_WRITEDATA ||                                           \
   0)

Definition at line 297 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) ||      \
   _curl_callback_compatible((expr), _curl_conv_callback1) ||                 \
   _curl_callback_compatible((expr), _curl_conv_callback2) ||                 \
   _curl_callback_compatible((expr), _curl_conv_callback3) ||                 \
   _curl_callback_compatible((expr), _curl_conv_callback4))

Definition at line 601 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 291 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) ||     \
   _curl_callback_compatible((expr), _curl_debug_callback1) ||                \
   _curl_callback_compatible((expr), _curl_debug_callback2) ||                \
   _curl_callback_compatible((expr), _curl_debug_callback3) ||                \
   _curl_callback_compatible((expr), _curl_debug_callback4) ||                \
   _curl_callback_compatible((expr), _curl_debug_callback5) ||                \
   _curl_callback_compatible((expr), _curl_debug_callback6) ||                \
   _curl_callback_compatible((expr), _curl_debug_callback7) ||                \
   _curl_callback_compatible((expr), _curl_debug_callback8))

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

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

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

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

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

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

Definition at line 430 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) ||     \
   _curl_callback_compatible((expr), _curl_ioctl_callback1) ||                \
   _curl_callback_compatible((expr), _curl_ioctl_callback2) ||                \
   _curl_callback_compatible((expr), _curl_ioctl_callback3) ||                \
   _curl_callback_compatible((expr), _curl_ioctl_callback4))

Definition at line 487 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 394 of file typecheck-gcc.h.

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

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

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

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

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

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

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

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

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

Definition at line 217 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_callback_compatible((expr), _curl_opensocket_callback1) ||           \
   _curl_callback_compatible((expr), _curl_opensocket_callback2) ||           \
   _curl_callback_compatible((expr), _curl_opensocket_callback3) ||           \
   _curl_callback_compatible((expr), _curl_opensocket_callback4))

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

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

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

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

Definition at line 317 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) ||  \
   _curl_callback_compatible((expr), _curl_progress_callback1) ||             \
   _curl_callback_compatible((expr), _curl_progress_callback2))

Definition at line 528 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 *))

Definition at line 375 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) ||      \
   _curl_callback_compatible((expr), _curl_read_callback1) ||                 \
   _curl_callback_compatible((expr), _curl_read_callback2) ||                 \
   _curl_callback_compatible((expr), _curl_read_callback3) ||                 \
   _curl_callback_compatible((expr), _curl_read_callback4) ||                 \
   _curl_callback_compatible((expr), _curl_read_callback5) ||                 \
   _curl_callback_compatible((expr), _curl_read_callback6))

Definition at line 449 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) ||      \
   _curl_callback_compatible((expr), _curl_seek_callback1) ||                 \
   _curl_callback_compatible((expr), _curl_seek_callback2))

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

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

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

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

Definition at line 323 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) ||   \
   _curl_callback_compatible((expr), _curl_sockopt_callback1) ||              \
   _curl_callback_compatible((expr), _curl_sockopt_callback2))

Definition at line 500 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_callback_compatible((expr), _curl_ssl_ctx_callback1) ||              \
   _curl_callback_compatible((expr), _curl_ssl_ctx_callback2) ||              \
   _curl_callback_compatible((expr), _curl_ssl_ctx_callback3) ||              \
   _curl_callback_compatible((expr), _curl_ssl_ctx_callback4) ||              \
   _curl_callback_compatible((expr), _curl_ssl_ctx_callback5) ||              \
   _curl_callback_compatible((expr), _curl_ssl_ctx_callback6) ||              \
   _curl_callback_compatible((expr), _curl_ssl_ctx_callback7) ||              \
   _curl_callback_compatible((expr), _curl_ssl_ctx_callback8))

Definition at line 569 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))

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

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

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

#define _curl_is_string_option (   option)

Definition at line 221 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) ||     \
   _curl_callback_compatible((expr), _curl_write_callback1) ||                \
   _curl_callback_compatible((expr), _curl_write_callback2) ||                \
   _curl_callback_compatible((expr), _curl_write_callback3) ||                \
   _curl_callback_compatible((expr), _curl_write_callback4) ||                \
   _curl_callback_compatible((expr), _curl_write_callback5) ||                \
   _curl_callback_compatible((expr), _curl_write_callback6))

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

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

Definition at line 286 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 143 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))                                      \
      if(!_curl_is_arr((arg), char *))                                        \
        _curl_easy_getinfo_err_string();                                      \
    if(_curl_is_long_info(_curl_info))                                        \
      if(!_curl_is_arr((arg), long))                                          \
        _curl_easy_getinfo_err_long();                                        \
    if(_curl_is_double_info(_curl_info))                                      \
      if(!_curl_is_arr((arg), double))                                        \
        _curl_easy_getinfo_err_double();                                      \
    if(_curl_is_slist_info(_curl_info))                                       \
      if(!_curl_is_arr((arg), struct curl_slist *))                           \
        _curl_easy_getinfo_err_curl_slist();                                  \
  }                                                                           \
  curl_easy_getinfo(handle, _curl_info, arg);                                 \
})

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

#define curl_easy_setopt (   handle,
  option,
  value 
)

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

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

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

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

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


Typedef Documentation

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

typedef int( _curl_debug_callback5)(CURL *, curl_infotype, unsigned char *, size_t, void *)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Definition at line 484 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"   
) [read]
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"   
)


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:09