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.53 2006/07/05 19:28:10 mast Exp $ + || $Id: pike_memory.h,v 1.54 2006/08/08 22:23:10 mast Exp $   */      #ifndef MEMORY_H   #define MEMORY_H      #include "global.h"   #include "stralloc.h"      #ifdef USE_VALGRIND   
pike.git/src/pike_memory.h:107:    struct link links[MEMSEARCH_LINKS];    struct link *set[MEMSEARCH_LINKS];   };         #include "pike_search.h"      #include "block_alloc_h.h"   #define MEMCHR0 MEMCHR    + extern int page_size; +    /* Note to self: Prototypes must be updated manually /Hubbe */   PMOD_EXPORT ptrdiff_t pcharp_memcmp(PCHARP a, PCHARP b, int sz);   PMOD_EXPORT long pcharp_strlen(PCHARP a);   PMOD_EXPORT p_wchar1 *MEMCHR1(p_wchar1 *p, p_wchar2 c, ptrdiff_t e);   PMOD_EXPORT p_wchar2 *MEMCHR2(p_wchar2 *p, p_wchar2 c, ptrdiff_t e);   PMOD_EXPORT void swap(char *a, char *b, size_t size);   PMOD_EXPORT void reverse(char *memory, size_t nitems, size_t size);   PMOD_EXPORT void reorder(char *memory, INT32 nitems, INT32 size,INT32 *order);   PMOD_EXPORT size_t hashmem(const unsigned char *a, size_t len, size_t mlen);   PMOD_EXPORT size_t hashstr(const unsigned char *str, ptrdiff_t maxn);
pike.git/src/pike_memory.h:134:    INT32 offset);   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);      #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:222:    t1=(t1<<3) + a[6]; \    t2=(t2<<4) + a[7]; \    a += 8; \    ret^=(ret<<7) + (ret>>6) + t1 + (t2<<6); \    } \    ) \    \    RET = ret; \    } while(0)    - #ifdef DEBUG_MALLOC - void initialize_dmalloc(void); - #else - #define initialize_dmalloc() +    #endif -  - #endif +