Remove the hard-coding of "_vgi_" as the intercept prefix in

vg_replace_malloc.c.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3882
This commit is contained in:
Nicholas Nethercote
2005-06-11 03:28:48 +00:00
parent 38d2799b5b
commit ea46df465c
2 changed files with 9 additions and 17 deletions

View File

@@ -96,14 +96,7 @@
Z --> ZZ
*/
/* It would be nice to be able to write VG_INTERCEPT_PREFIX instead of
"_vgi_" here, but I can't figure out how to get cpp to cooperate.
If you change this "_vgi_" you should also change the definitiion
of VG_INTERCEPT_PREFIX in core.h accordingly.
*/
#define ENCODE(libname,fnname) _vgi_##libname##_##fnname
#define ENCODE(libname,fnname) VG_INTERCEPT(libname##_##fnname)
/* Some handy mangled names */
#define m_libstc_plus_plus_star libstdcZpZpZa // libstdc++*