Files
jemalloc-jemalloc/include/jemalloc/jemalloc.sh
T
2013-12-05 21:44:25 -08:00

26 lines
385 B
Bash
Executable File

#!/bin/sh
objroot=$1
cat <<EOF
#ifndef JEMALLOC_H_
#define JEMALLOC_H_
#ifdef __cplusplus
extern "C" {
#endif
EOF
for hdr in jemalloc_defs.h jemalloc_macros.h jemalloc_protos.h \
jemalloc_mangle.h ; do
cat "${objroot}include/jemalloc/${hdr}" | grep -v 'Generated from .* by configure\.'
echo
done
cat <<EOF
#ifdef __cplusplus
};
#endif
#endif /* JEMALLOC_H_ */
EOF