pike.git / src / pike_memory.h

version» Context lines:

pike.git/src/pike_memory.h:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: pike_memory.h,v 1.54 2006/08/08 22:23:10 mast Exp $ + || $Id: pike_memory.h,v 1.55 2006/08/09 01:55:45 mast Exp $   */      #ifndef MEMORY_H   #define MEMORY_H      #include "global.h"   #include "stralloc.h"      #ifdef USE_VALGRIND   
pike.git/src/pike_memory.h:137:   PMOD_EXPORT void *debug_xalloc(size_t size);   PMOD_EXPORT void *debug_xmalloc(size_t s);   PMOD_EXPORT void debug_xfree(void *mem);   PMOD_EXPORT void *debug_xrealloc(void *m, size_t s);   PMOD_EXPORT void *debug_xcalloc(size_t n, size_t s);      PMOD_EXPORT void *mexec_alloc(size_t sz);   PMOD_EXPORT void *mexec_realloc(void *ptr, size_t sz);   PMOD_EXPORT void mexec_free(void *ptr);   void init_pike_memory (void); + void exit_pike_memory (void);      #undef BLOCK_ALLOC      #ifdef HANDLES_UNALIGNED_MEMORY_ACCESS   #define DO_IF_ELSE_UNALIGNED_MEMORY_ACCESS(IF, ELSE) IF   #else /* !HANDLES_UNALIGNED_MEMORY_ACCESS */   #define DO_IF_ELSE_UNALIGNED_MEMORY_ACCESS(IF, ELSE) ELSE   #endif /* HANDLES_UNALIGNED_MEMORY_ACCESS */      #if SIZEOF_CHAR_P == 4
pike.git/src/pike_memory.h:225:    t1=(t1<<3) + a[6]; \    t2=(t2<<4) + a[7]; \    a += 8; \    ret^=(ret<<7) + (ret>>6) + t1 + (t2<<6); \    } \    ) \    \    RET = ret; \    } while(0)    + /* Determine if we should use our own heap manager for executable +  * memory. */ + #if defined(MEXEC_USES_MMAP) || defined (_WIN32) + #define USE_MY_MEXEC_ALLOC   #endif -  +  + #endif