Home | History | Annotate | Download | only in jemalloc
      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/ $//g'
     19   echo
     20 done
     21 
     22 cat <<EOF
     23 #ifdef __cplusplus
     24 }
     25 #endif
     26 #endif /* JEMALLOC_H_ */
     27 EOF
     28