pike.git / src / dmalloc.h

version» Context lines:

pike.git/src/dmalloc.h:53:      extern char *dmalloc_tracelog[DMALLOC_TRACELOGSIZE];   extern size_t dmalloc_tracelogptr;      #define DMALLOC_TRACE_LOG(X) (dmalloc_tracelog[ dmalloc_tracelogptr = (dmalloc_tracelogptr +1 )%DMALLOC_TRACELOGSIZE ] = (X))      #endif /* DMALLOC_TRACE */      #ifdef PIKE_DEBUG   PMOD_EXPORT extern int gc_external_refs_zapped; - PMOD_EXPORT void gc_check_zapped (void *a, TYPE_T type, const char *file, int line); + PMOD_EXPORT void gc_check_zapped (void *a, TYPE_T type, const char *file, INT_TYPE line);   #endif      #ifdef DO_PIKE_CLEANUP   extern int exit_with_cleanup;   extern int exit_cleanup_in_progress;   #define DO_IF_PIKE_CLEANUP(X) X   #else   #define DO_IF_PIKE_CLEANUP(X)   #endif   
pike.git/src/dmalloc.h:100: Inside #if defined(DEBUG_MALLOC)
  PMOD_EXPORT void dmalloc_free(void *p);   PMOD_EXPORT int debug_malloc_touch_fd(int, LOCATION);   PMOD_EXPORT int debug_malloc_register_fd(int, LOCATION);   PMOD_EXPORT void debug_malloc_accept_leak_fd(int);   PMOD_EXPORT int debug_malloc_close_fd(int, LOCATION);   PMOD_EXPORT int dmalloc_mark_as_free(void*,int);      PMOD_EXPORT void *debug_malloc_update_location(void *, LOCATION);   PMOD_EXPORT void *debug_malloc_update_location_ptr(void *, ptrdiff_t, LOCATION);   PMOD_EXPORT void *debug_malloc_update_location_bt (void *p, const char *file, -  int line, const char *name); +  INT_TYPE line, const char *name);   void search_all_memheaders_for_references(void);      /* Beware! names of named memory regions are never ever freed!! /Hubbe */ - PMOD_EXPORT void *debug_malloc_name(void *p, const char *fn, int line); + PMOD_EXPORT void *debug_malloc_name(void *p, const char *fn, INT_TYPE line);   PMOD_EXPORT int debug_malloc_copy_names(void *p, void *p2);   char *dmalloc_find_name(void *p);      /* glibc 2.1 defines this as a macro. */   #ifdef strdup   #undef strdup   #endif      #define malloc(x) debug_malloc((x), DMALLOC_NAMED_LOCATION(" malloc"))   #define calloc(x, y) debug_calloc((x), (y), DMALLOC_NAMED_LOCATION(" calloc"))
pike.git/src/dmalloc.h:167:   #define dmalloc_register_fd(X) debug_malloc_register_fd((X),DMALLOC_LOCATION())   #define dmalloc_accept_leak_fd(X) debug_malloc_accept_leak_fd(X)   #define dmalloc_close_fd(X) debug_malloc_close_fd((X),DMALLOC_LOCATION())      /* Beware, these do not exist without DMALLOC */   struct memory_map;   void dmalloc_set_mmap(void *ptr, struct memory_map *m);   void dmalloc_set_mmap_template(void *ptr, struct memory_map *m);   void dmalloc_set_mmap_from_template(void *p, void *p2);   void dmalloc_describe_location(void *p, int offset, int indent); - struct memory_map *dmalloc_alloc_mmap(char *name, int line); + struct memory_map *dmalloc_alloc_mmap(char *name, INT_TYPE line);   void dmalloc_add_mmap_entry(struct memory_map *m,    char *name,    int offset,    int size,    int count,    struct memory_map *recur,    int recur_offset);   int dmalloc_is_invalid_memory_block(void *block);