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.38 2002/11/23 17:03:00 mast Exp $ + || $Id: pike_memory.h,v 1.39 2002/11/23 17:26:50 mast Exp $   */      #ifndef MEMORY_H   #define MEMORY_H      #include "global.h"   #include "stralloc.h"      #ifdef HAVE_VALGRIND_H   #include <valgrind.h>
pike.git/src/pike_memory.h:42:    } while (0)      /* Read Only -- Not currently supported by valgrind */   #define PIKE_MEM_RO(lvalue) do { \    VALGRIND_DISCARD(VALGRIND_MAKE_READABLE(&(lvalue), sizeof (lvalue))); \    } while (0)   #define PIKE_MEM_RO_RANGE(addr, bytes) do { \    VALGRIND_DISCARD(VALGRIND_MAKE_READABLE(addr, bytes)); \    } while (0)    + #define PIKE_MEM_CHECKER() RUNNING_ON_VALGRIND +    #else      #define PIKE_MEM_NA(lvalue) do {} while (0)   #define PIKE_MEM_NA_RANGE(addr, bytes) do {} while (0)   #define PIKE_MEM_WO(lvalue) do {} while (0)   #define PIKE_MEM_WO_RANGE(addr, bytes) do {} while (0)   #define PIKE_MEM_RW(lvalue) do {} while (0)   #define PIKE_MEM_RW_RANGE(addr, bytes) do {} while (0)   #define PIKE_MEM_RO(lvalue) do {} while (0)   #define PIKE_MEM_RO_RANGE(addr, bytes) do {} while (0) -  + #define PIKE_MEM_CHECKER() 0      #endif /* USE_VALGRIND */         #define MEMSEARCH_LINKS 512      struct link   {    struct link *next;    INT32 key;