]>
Commit | Line | Data |
---|---|---|
1a4d82fc JJ |
1 | #!/bin/sh |
2 | ||
3 | objroot=$1 | |
4 | ||
5 | cat <<EOF | |
6 | #ifndef JEMALLOC_H_ | |
7 | #define JEMALLOC_H_ | |
8 | #ifdef __cplusplus | |
9 | extern "C" { | |
10 | #endif | |
11 | ||
12 | EOF | |
13 | ||
14 | for hdr in jemalloc_defs.h jemalloc_rename.h jemalloc_macros.h \ | |
15 | jemalloc_protos.h jemalloc_typedefs.h jemalloc_mangle.h ; do | |
16 | cat "${objroot}include/jemalloc/${hdr}" \ | |
17 | | grep -v 'Generated from .* by configure\.' \ | |
18 | | sed -e 's/^#define /#define /g' \ | |
19 | | sed -e 's/ $//g' | |
20 | echo | |
21 | done | |
22 | ||
23 | cat <<EOF | |
24 | #ifdef __cplusplus | |
54a0048b | 25 | } |
1a4d82fc JJ |
26 | #endif |
27 | #endif /* JEMALLOC_H_ */ | |
28 | EOF |