pike.git / src / mapping.h

version» Context lines:

pike.git/src/mapping.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: mapping.h,v 1.64 2006/07/05 19:24:19 mast Exp $ + || $Id: mapping.h,v 1.65 2006/08/06 16:10:02 mast Exp $   */      #ifndef MAPPING_H   #define MAPPING_H      #include "svalue.h"   #include "dmalloc.h"   #include "block_alloc_h.h"      /* Compatible with PIKE_WEAK_INDICES and PIKE_WEAK_VALUES. */
pike.git/src/mapping.h:86:    for(((k = MD_KEYPAIRS((m)->data, (m)->data->hashsize)), e=0) DO_IF_DMALLOC( ?0:(debug_malloc_touch(m),debug_malloc_touch((m)->data)) ) ; e<(m)->data->size; e++,k++)      #endif /* PIKE_MAPPING_KEYPAIR_LOOP */      #if defined(USE_DLL) && defined(DYNAMIC_MODULE)   /* Use the function in modules so we don't have to export the block    * alloc stuff. */   #define free_mapping(M) do_free_mapping (M)   #else    + void really_free_mapping(struct mapping *md); +    /** Free a previously allocated mapping. The preferred method of freeing    * a mapping is by calling the @ref do_free_mapping function.    *    * @param M The mapping to be freed    * @see do_free_mapping    * @see free_mapping_data    */   #define free_mapping(M) do{ \    struct mapping *m_=(M); \    debug_malloc_touch(m_); \
pike.git/src/mapping.h:121:    * @see mapping_data    * @see mapping    */   #define free_mapping_data(M) do{ \    struct mapping_data *md_=(M); \    debug_malloc_touch(md_); \    if(!sub_ref(md_)) really_free_mapping_data(md_); \    /* FIXME: What about valrefs & hardlinks? */ \   }while(0)    - PMOD_PROTO void really_free_mapping(struct mapping *md); -  +    /* Prototypes begin here */   BLOCK_ALLOC_FILL_PAGES(mapping, 2);                     PMOD_EXPORT struct mapping *debug_allocate_mapping(int size);