memdebug: make debug-specific functions use curl_dbg_ prefix

To not "collide" or use up the regular curl_ name space. Also makes them
easier to detect in helper scripts.

Closes #3656
This commit is contained in:
Daniel Stenberg 2019-03-08 10:47:29 +01:00
parent 50afa478e1
commit 76b6348949
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
7 changed files with 149 additions and 167 deletions

View file

@ -145,22 +145,6 @@ my %api = (
# the following funcions are provided globally in debug builds
'curl_easy_perform_ev' => 'debug-build',
'curl_memdebug' => 'debug-build',
'curl_memlimit' => 'debug-build',
'curl_memlog' => 'debug-build',
'curl_accept' => 'debug-build',
'curl_docalloc' => 'debug-build',
'curl_dofree' => 'debug-build',
'curl_domalloc' => 'debug-build',
'curl_dorealloc' => 'debug-build',
'curl_dorecv' => 'debug-build',
'curl_dosend' => 'debug-build',
'curl_dostrdup' => 'debug-build',
'curl_fclose' => 'debug-build',
'curl_fopen' => 'debug-build',
'curl_sclose' => 'debug-build',
'curl_socket' => 'debug-build',
'curl_socketpair' => 'debug-build',
);
open(N, "nm $file|") ||
@ -202,6 +186,9 @@ for(sort keys %exist) {
$err++;
}
}
elsif($_ =~ /^curl_dbg_/) {
# we ignore the memdebug symbols
}
elsif($wl{$_}) {
#print "$_ is WL\n";
}