• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/curl-7.23.1/source/tmp.bak/include/curl/

Lines Matching refs:expr

345 /* XXX: should evaluate to true iff expr is a pointer */
346 #define _curl_is_any_ptr(expr) \
347 (sizeof(expr) == sizeof(void*))
349 /* evaluates to true if expr is NULL */
350 /* XXX: must not evaluate expr, so this check is not accurate */
351 #define _curl_is_NULL(expr) \
352 (__builtin_types_compatible_p(__typeof__(expr), __typeof__(NULL)))
354 /* evaluates to true if expr is type*, const type* or NULL */
355 #define _curl_is_ptr(expr, type) \
356 (_curl_is_NULL(expr) || \
357 __builtin_types_compatible_p(__typeof__(expr), type *) || \
358 __builtin_types_compatible_p(__typeof__(expr), const type *))
360 /* evaluates to true if expr is one of type[], type*, NULL or const type* */
361 #define _curl_is_arr(expr, type) \
362 (_curl_is_ptr((expr), type) || \
363 __builtin_types_compatible_p(__typeof__(expr), type []))
365 /* evaluates to true if expr is a string */
366 #define _curl_is_string(expr) \
367 (_curl_is_arr((expr), char) || \
368 _curl_is_arr((expr), signed char) || \
369 _curl_is_arr((expr), unsigned char))
371 /* evaluates to true if expr is a long (no matter the signedness)
374 #define _curl_is_long(expr) \
375 (__builtin_types_compatible_p(__typeof__(expr), long) || \
376 __builtin_types_compatible_p(__typeof__(expr), signed long) || \
377 __builtin_types_compatible_p(__typeof__(expr), unsigned long) || \
378 __builtin_types_compatible_p(__typeof__(expr), int) || \
379 __builtin_types_compatible_p(__typeof__(expr), signed int) || \
380 __builtin_types_compatible_p(__typeof__(expr), unsigned int) || \
381 __builtin_types_compatible_p(__typeof__(expr), short) || \
382 __builtin_types_compatible_p(__typeof__(expr), signed short) || \
383 __builtin_types_compatible_p(__typeof__(expr), unsigned short) || \
384 __builtin_types_compatible_p(__typeof__(expr), char) || \
385 __builtin_types_compatible_p(__typeof__(expr), signed char) || \
386 __builtin_types_compatible_p(__typeof__(expr), unsigned char))
388 /* evaluates to true if expr is of type curl_off_t */
389 #define _curl_is_off_t(expr) \
390 (__builtin_types_compatible_p(__typeof__(expr), curl_off_t))
392 /* evaluates to true if expr is abuffer suitable for CURLOPT_ERRORBUFFER */
394 #define _curl_is_error_buffer(expr) \
395 (_curl_is_NULL(expr) || \
396 __builtin_types_compatible_p(__typeof__(expr), char *) || \
397 __builtin_types_compatible_p(__typeof__(expr), char[]))
399 /* evaluates to true if expr is of type (const) void* or (const) FILE* */
401 #define _curl_is_cb_data(expr) \
402 (_curl_is_ptr((expr), void) || \
403 _curl_is_ptr((expr), FILE))
405 #define _curl_is_cb_data(expr) \
406 _curl_is_any_ptr(expr)
409 /* evaluates to true if expr is of type FILE* */
410 #define _curl_is_FILE(expr) \
411 (__builtin_types_compatible_p(__typeof__(expr), FILE *))
413 /* evaluates to true if expr can be passed as POST data (void* or char*) */
414 #define _curl_is_postfields(expr) \
415 (_curl_is_ptr((expr), void) || \
416 _curl_is_arr((expr), char))
428 /* evaluates to true if expr is of type curl_read_callback or "similar" */
429 #define _curl_is_read_cb(expr) \
430 (_curl_is_NULL(expr) || \
431 __builtin_types_compatible_p(__typeof__(expr), __typeof__(fread)) || \
432 __builtin_types_compatible_p(__typeof__(expr), curl_read_callback) || \
433 _curl_callback_compatible((expr), _curl_read_callback1) || \
434 _curl_callback_compatible((expr), _curl_read_callback2) || \
435 _curl_callback_compatible((expr), _curl_read_callback3) || \
436 _curl_callback_compatible((expr), _curl_read_callback4) || \
437 _curl_callback_compatible((expr), _curl_read_callback5) || \
438 _curl_callback_compatible((expr), _curl_read_callback6))
446 /* evaluates to true if expr is of type curl_write_callback or "similar" */
447 #define _curl_is_write_cb(expr) \
448 (_curl_is_read_cb(expr) || \
449 __builtin_types_compatible_p(__typeof__(expr), __typeof__(fwrite)) || \
450 __builtin_types_compatible_p(__typeof__(expr), curl_write_callback) || \
451 _curl_callback_compatible((expr), _curl_write_callback1) || \
452 _curl_callback_compatible((expr), _curl_write_callback2) || \
453 _curl_callback_compatible((expr), _curl_write_callback3) || \
454 _curl_callback_compatible((expr), _curl_write_callback4) || \
455 _curl_callback_compatible((expr), _curl_write_callback5) || \
456 _curl_callback_compatible((expr), _curl_write_callback6))
466 /* evaluates to true if expr is of type curl_ioctl_callback or "similar" */
467 #define _curl_is_ioctl_cb(expr) \
468 (_curl_is_NULL(expr) || \
469 __builtin_types_compatible_p(__typeof__(expr), curl_ioctl_callback) || \
470 _curl_callback_compatible((expr), _curl_ioctl_callback1) || \
471 _curl_callback_compatible((expr), _curl_ioctl_callback2) || \
472 _curl_callback_compatible((expr), _curl_ioctl_callback3) || \
473 _curl_callback_compatible((expr), _curl_ioctl_callback4))
479 /* evaluates to true if expr is of type curl_sockopt_callback or "similar" */
480 #define _curl_is_sockopt_cb(expr) \
481 (_curl_is_NULL(expr) || \
482 __builtin_types_compatible_p(__typeof__(expr), curl_sockopt_callback) || \
483 _curl_callback_compatible((expr), _curl_sockopt_callback1) || \
484 _curl_callback_compatible((expr), _curl_sockopt_callback2))
489 /* evaluates to true if expr is of type curl_opensocket_callback or
491 #define _curl_is_opensocket_cb(expr) \
492 (_curl_is_NULL(expr) || \
493 __builtin_types_compatible_p(__typeof__(expr), curl_opensocket_callback) ||\
494 _curl_callback_compatible((expr), _curl_opensocket_callback1) || \
495 _curl_callback_compatible((expr), _curl_opensocket_callback2) || \
496 _curl_callback_compatible((expr), _curl_opensocket_callback3) || \
497 _curl_callback_compatible((expr), _curl_opensocket_callback4))
507 /* evaluates to true if expr is of type curl_progress_callback or "similar" */
508 #define _curl_is_progress_cb(expr) \
509 (_curl_is_NULL(expr) || \
510 __builtin_types_compatible_p(__typeof__(expr), curl_progress_callback) || \
511 _curl_callback_compatible((expr), _curl_progress_callback1) || \
512 _curl_callback_compatible((expr), _curl_progress_callback2))
518 /* evaluates to true if expr is of type curl_debug_callback or "similar" */
519 #define _curl_is_debug_cb(expr) \
520 (_curl_is_NULL(expr) || \
521 __builtin_types_compatible_p(__typeof__(expr), curl_debug_callback) || \
522 _curl_callback_compatible((expr), _curl_debug_callback1) || \
523 _curl_callback_compatible((expr), _curl_debug_callback2) || \
524 _curl_callback_compatible((expr), _curl_debug_callback3) || \
525 _curl_callback_compatible((expr), _curl_debug_callback4) || \
526 _curl_callback_compatible((expr), _curl_debug_callback5) || \
527 _curl_callback_compatible((expr), _curl_debug_callback6) || \
528 _curl_callback_compatible((expr), _curl_debug_callback7) || \
529 _curl_callback_compatible((expr), _curl_debug_callback8))
547 /* evaluates to true if expr is of type curl_ssl_ctx_callback or "similar" */
549 #define _curl_is_ssl_ctx_cb(expr) \
550 (_curl_is_NULL(expr) || \
551 __builtin_types_compatible_p(__typeof__(expr), curl_ssl_ctx_callback) || \
552 _curl_callback_compatible((expr), _curl_ssl_ctx_callback1) || \
553 _curl_callback_compatible((expr), _curl_ssl_ctx_callback2) || \
554 _curl_callback_compatible((expr), _curl_ssl_ctx_callback3) || \
555 _curl_callback_compatible((expr), _curl_ssl_ctx_callback4) || \
556 _curl_callback_compatible((expr), _curl_ssl_ctx_callback5) || \
557 _curl_callback_compatible((expr), _curl_ssl_ctx_callback6) || \
558 _curl_callback_compatible((expr), _curl_ssl_ctx_callback7) || \
559 _curl_callback_compatible((expr), _curl_ssl_ctx_callback8))
580 /* evaluates to true if expr is of type curl_conv_callback or "similar" */
581 #define _curl_is_conv_cb(expr) \
582 (_curl_is_NULL(expr) || \
583 __builtin_types_compatible_p(__typeof__(expr), curl_conv_callback) || \
584 _curl_callback_compatible((expr), _curl_conv_callback1) || \
585 _curl_callback_compatible((expr), _curl_conv_callback2) || \
586 _curl_callback_compatible((expr), _curl_conv_callback3) || \
587 _curl_callback_compatible((expr), _curl_conv_callback4))
593 /* evaluates to true if expr is of type curl_seek_callback or "similar" */
594 #define _curl_is_seek_cb(expr) \
595 (_curl_is_NULL(expr) || \
596 __builtin_types_compatible_p(__typeof__(expr), curl_seek_callback) || \
597 _curl_callback_compatible((expr), _curl_seek_callback1) || \
598 _curl_callback_compatible((expr), _curl_seek_callback2))