]> git.proxmox.com Git - rustc.git/blame - src/jemalloc/include/jemalloc/jemalloc.sh
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / jemalloc / include / jemalloc / jemalloc.sh
CommitLineData
1a4d82fc
JJ
1#!/bin/sh
2
3objroot=$1
4
5cat <<EOF
6#ifndef JEMALLOC_H_
7#define JEMALLOC_H_
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12EOF
13
14for 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
21done
22
23cat <<EOF
24#ifdef __cplusplus
54a0048b 25}
1a4d82fc
JJ
26#endif
27#endif /* JEMALLOC_H_ */
28EOF