{"author":"Viktor Szakats","author_email":"commit@vsz.me","author_time":1750032451,"commit_time":1750059301,"committer":"Viktor Szakats","committer_email":"commit@vsz.me","hash":"cde81e4398f2944e60c73f38823dafa305a5a2f4","message":"memdebug: include in unity batch\n\nBefore this patch `memdebug.c` was compiled as a separate source in\nunity builds. This was necessary because `memdebug.c` failed to compile\nif `memdebug.h` was included before it, in `CURLDEBUG` mode. This patch\nfixes this issue and allows to compile `memdebug.c` as part of the unity\nsource batch. This removes an exception and makes builds perform a notch\nbetter.\n\n- introduce `CURL_SCLOSE()` macro as an immutable synonym of `sclose()`.\n- memdebug: replace `sclose()` reference with `CURL_SCLOSE()` to compile\n  as expected when `sclose()` is overridden by `memdebug.h`.\n- memdebug: make it not break when including `memdebug.h` before it in\n  `CURLDEBUG` mode. Do this by calling low-level functions as\n  `(function)`.\n- autotools, cmake: drop memdebug exception, include it like any other\n  source file. This is now possible because `memdebug.c` doesn't break\n  if `memdebug.h` was included before it, in `CURLDEBUG` builds.\n- mk-unity: drop `--exclude` option. No longer used after this patch.\n- drop `MEMDEBUG_NODEFINES` macro hack. No longer necessary.\n\nRef: #16747\nCloses #16746\nCloses #16738\nCloses #17631\n","parents":["2ac18d7ae46e9a8ba2355353a94072ca13a91ba9"],"tree_hash":"3eb13e7f92f1b7e809ac2198d7a08db0008a2534"}