Sync worktree updates into main repo folder

This commit is contained in:
Apocrypha12 2026-08-01 17:06:56 -08:00
parent bc1a502c1d
commit c4d2b5d9d1
21 changed files with 1565 additions and 347 deletions

View file

@ -139,6 +139,10 @@ void curl_easy_cleanup(CURL *handle)
free(e);
}
/* Modern curl.h wraps these two functions in __extension__ type-checking
* macros. Undefine them so our mock function definitions are visible to
* the linker without the macro interfering. */
#undef curl_easy_setopt
CURLcode curl_easy_setopt(CURL *handle, CURLoption option, ...)
{
struct mock_curl_easy *e = (struct mock_curl_easy *)handle;
@ -211,6 +215,7 @@ CURLcode curl_easy_perform(CURL *handle)
return CURLE_OK;
}
#undef curl_easy_getinfo
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO info, ...)
{
struct mock_curl_easy *e = (struct mock_curl_easy *)handle;