streamline fake_sclose() redef flow

This commit is contained in:
Viktor Szakats 2025-07-05 11:18:20 +02:00
parent 88b8a56334
commit 1c55ac1c17
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
2 changed files with 6 additions and 6 deletions

View file

@ -99,8 +99,6 @@
** Following section applies even when CURLDEBUG is not defined.
*/
#undef fake_sclose
#ifndef CURLDEBUG
/*

View file

@ -170,6 +170,7 @@ CURL_EXTERN ALLOC_FUNC
#undef sclose
#define sclose(sockfd) curl_dbg_sclose(sockfd,__LINE__,__FILE__)
#undef fake_sclose
#define fake_sclose(sockfd) curl_dbg_mark_sclose(sockfd,__LINE__,__FILE__)
#undef fopen
@ -179,16 +180,17 @@ CURL_EXTERN ALLOC_FUNC
#undef fclose
#define fclose(file) curl_dbg_fclose(file,__LINE__,__FILE__)
#else
#undef fake_sclose
#define fake_sclose(x) Curl_nop_stmt
#endif /* CURLDEBUG */
/*
** Following section applies even when CURLDEBUG is not defined.
*/
#ifndef fake_sclose
#define fake_sclose(x) Curl_nop_stmt
#endif
/*
* Curl_safefree defined as a macro to allow MemoryTracking feature
* to log free() calls at same location where Curl_safefree is used.