Branch: Tag:

2004-09-30

2004-09-30 14:00:15 by Martin Stjernholm <mast@lysator.liu.se>

Wrap the allocation calls for better dmalloc info (just like it already is
for mappings).

Rev: src/array.c:1.173
Rev: src/array.h:1.66
Rev: src/multiset.c:1.90
Rev: src/multiset.h:1.39

2:   || 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: array.h,v 1.65 2004/09/28 23:58:26 mast Exp $ + || $Id: array.h,v 1.66 2004/09/30 14:00:14 mast Exp $   */      #ifndef ARRAY_H
87:   typedef short_cmpfun (*cmpfun_getter)(TYPE_T);       + #define low_allocate_array(size, extra_space) \ +  dmalloc_touch (struct array *, \ +  real_allocate_array ((size), (extra_space))) +    /* Prototypes begin here */ - PMOD_EXPORT struct array *low_allocate_array(ptrdiff_t size, ptrdiff_t extra_space); + PMOD_EXPORT struct array *real_allocate_array(ptrdiff_t size, ptrdiff_t extra_space);   PMOD_EXPORT void really_free_array(struct array *v);   PMOD_EXPORT void do_free_array(struct array *a);   PMOD_EXPORT struct array *array_set_flags(struct array *a, int flags);