mirror of
https://github.com/curl/curl.git
synced 2026-04-13 12:41:42 +08:00
Before this patch `memdebug.c` was compiled as a separate source in unity builds. This was necessary because `memdebug.c` failed to compile if `memdebug.h` was included before it, in `CURLDEBUG` mode. This patch fixes this issue and allows to compile `memdebug.c` as part of the unity source batch. This removes an exception and makes builds perform a notch better. - introduce `CURL_SCLOSE()` macro as an immutable synonym of `sclose()`. - memdebug: replace `sclose()` reference with `CURL_SCLOSE()` to compile as expected when `sclose()` is overridden by `memdebug.h`. - memdebug: make it not break when including `memdebug.h` before it in `CURLDEBUG` mode. Do this by calling low-level functions as `(function)`. - autotools, cmake: drop memdebug exception, include it like any other source file. This is now possible because `memdebug.c` doesn't break if `memdebug.h` was included before it, in `CURLDEBUG` builds. - mk-unity: drop `--exclude` option. No longer used after this patch. - drop `MEMDEBUG_NODEFINES` macro hack. No longer necessary. Ref: #16747 Closes #16746 Closes #16738 Closes #17631 |
||
|---|---|---|
| .. | ||
| cd2cd | ||
| cd2nroff | ||
| cdall | ||
| checksrc-all.sh | ||
| checksrc.pl | ||
| ciconfig.pl | ||
| cijobs.pl | ||
| cmakelint.sh | ||
| CMakeLists.txt | ||
| completion.pl | ||
| contributors.sh | ||
| contrithanks.sh | ||
| coverage.sh | ||
| delta | ||
| dmaketgz | ||
| firefox-db2pem.sh | ||
| installcheck.sh | ||
| Makefile.am | ||
| maketgz | ||
| managen | ||
| mdlinkcheck | ||
| mk-ca-bundle.pl | ||
| mk-unity.pl | ||
| nroff2cd | ||
| pythonlint.sh | ||
| randdisable | ||
| release-notes.pl | ||
| release-tools.sh | ||
| schemetable.c | ||
| singleuse.pl | ||
| top-complexity | ||
| verify-release | ||
| wcurl | ||