Automatically generate private symbol name mangling macros.

Rather than using a manually maintained list of internal symbols to
drive name mangling, add a compilation phase to automatically extract
the list of internal symbols.

This resolves #677.
This commit is contained in:
Jason Evans
2017-05-04 11:20:43 -07:00
parent a4ae9707da
commit 909f0482e4
9 changed files with 239 additions and 671 deletions

View File

@@ -38,7 +38,13 @@
* want the inclusion of hooks to happen early, so that we hook as much as
* possible.
*/
#include "jemalloc/internal/private_namespace.h"
#ifndef JEMALLOC_NO_PRIVATE_NAMESPACE
# ifndef JEMALLOC_JET
# include "jemalloc/internal/private_namespace.h"
# else
# include "jemalloc/internal/private_namespace_jet.h"
# endif
#endif
#include "jemalloc/internal/hooks.h"
static const bool config_debug =