diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2020-07-12 17:49:42 +0100 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2020-11-21 21:53:29 +0000 |
commit | cb4b3bdf923c9ebc66f500d7cc484e6f453ebf0a (patch) | |
tree | 11a5f3cb6331f7d07ec9ce550a04b4923ba012dd /src/alloc.c | |
parent | a6d151bfed31490fbd34e79db59177a47ec9ee5e (diff) | |
download | libgit2-cb4b3bdf923c9ebc66f500d7cc484e6f453ebf0a.tar.gz |
win32: "crtdbg" is now "leakcheck"
msvc crtdbg is a mouthfull that is not particularly indicative of what
it does. Let's rename it to "win32 leakcheck".
Diffstat (limited to 'src/alloc.c')
-rw-r--r-- | src/alloc.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/alloc.c b/src/alloc.c index 6972e7b59..eedf85aa7 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -12,8 +12,7 @@ #include "allocators/win32_crtdbg.h" #if defined(GIT_MSVC_CRTDBG) -# include "win32/w32_stack.h" -# include "win32/w32_crtdbg_stacktrace.h" +# include "win32/w32_leakcheck.h" #endif git_allocator git__allocator; @@ -30,16 +29,16 @@ static int setup_default_allocator(void) #if defined(GIT_MSVC_CRTDBG) static void allocator_global_shutdown(void) { - git_win32__crtdbg_stacktrace_cleanup(); - git_win32__stack_cleanup(); + git_win32_leakcheck_stacktrace_cleanup(); + git_win32_leakcheck_stack_cleanup(); } #endif int git_allocator_global_init(void) { #if defined(GIT_MSVC_CRTDBG) - git_win32__crtdbg_stacktrace_init(); - git_win32__stack_init(); + git_win32_leakcheck_stacktrace_init(); + git_win32_leakcheck_stack_init(); if (git_runtime_shutdown_register(allocator_global_shutdown) < 0) return -1; |