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

@@ -1,5 +1,5 @@
#!/bin/sh
for symbol in `cat $1` ; do
for symbol in `cat "$@"` ; do
echo "#define ${symbol} JEMALLOC_N(${symbol})"
done