• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/ $//g'
19  echo
20done
21
22cat <<EOF
23#ifdef __cplusplus
24}
25#endif
26#endif /* JEMALLOC_H_ */
27EOF
28