pike.git
/
src
/
mapping.h
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/mapping.h: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. */ #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. */ #define MAPPING_WEAK_INDICES 2 #define MAPPING_WEAK_VALUES 4 #define MAPPING_WEAK 6 #define MAPPING_FLAG_WEAK 6 /* Compat. */ struct keypair { struct keypair *next;
pike.git/src/mapping.h:126:
* @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) /* Prototypes begin here */
-
BLOCK
_
ALLOC
_
FILL_PAGES
(mapping,
2
);
+
void really
_
free
_
mapping(struct mapping * m);
+
void count
_
memory_in_mappings
(
size_t * num
,
size_t * size
);
-
+
void mapping_free_keypair(struct mapping_data *md, struct keypair *k); PMOD_EXPORT struct mapping *debug_allocate_mapping(int size); /** Function that actually frees the mapping data, called by the wrapper * macro free_mapping_data. * * @param M The mapping structure data member of the mapping whose data is to be removed * @see free_mapping * @see really_free_mapping_data