mirror of
https://github.com/curl/curl.git
synced 2026-08-24 19:53:46 +03:00
streamline fake_sclose() redef flow
This commit is contained in:
parent
88b8a56334
commit
1c55ac1c17
2 changed files with 6 additions and 6 deletions
|
|
@ -99,8 +99,6 @@
|
|||
** Following section applies even when CURLDEBUG is not defined.
|
||||
*/
|
||||
|
||||
#undef fake_sclose
|
||||
|
||||
#ifndef CURLDEBUG
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue