curl/include/curl
Patrick Monnerat e2aed00430
typecheck: accept expressions for option/info parameters
As expressions can have side effects, evaluate only once.

To enable deprecation reporting only once, get rid of the __typeof__
use to define the local temporary variable and use the target type
(CURLoption/CURLINFO). This also avoids multiple reports on type
conflicts (if some) by the curlcheck_* macros.

Note that CURLOPT_* and CURLINFO_* symbols may be deprecated, but not
their values: a curl_easy_setopt call with an integer constant as option
will never report a deprecation.

Reported-by: Thomas Klausner
Fixes #10148
Closes #10149
2022-12-26 10:04:55 +01:00
..
.gitignore copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
curl.h curl.h: reword comment to not use deprecated option 2022-12-09 09:41:24 +01:00
curlver.h RELEASE_NOTES: synced 2022-12-21 15:38:50 +01:00
easy.h headers: add endif comments 2022-11-09 00:36:33 +01:00
header.h header: define public API functions as extern c 2022-09-08 11:54:32 -04:00
Makefile.am ws: initial websockets support 2022-09-09 15:11:14 +02:00
mprintf.h headers: add endif comments 2022-11-09 00:36:33 +01:00
multi.h lib: feature deprecation warnings in gcc >= 4.3 2022-11-15 10:57:29 +01:00
options.h misc: null-terminate 2022-09-17 23:19:29 +02:00
stdcheaders.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
system.h system.h: fix socklen_t, curl_off_t, long long for Classic Mac OS 2022-12-09 08:21:15 +01:00
typecheck-gcc.h typecheck: accept expressions for option/info parameters 2022-12-26 10:04:55 +01:00
urlapi.h copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
websockets.h websockets: remodeled API to support 63 bit frame sizes 2022-10-07 12:50:58 +02:00