pike.git / src / mapping.c

version» Context lines:

pike.git/src/mapping.c: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.c,v 1.167 2003/06/02 16:35:34 mast Exp $ + || $Id: mapping.c,v 1.168 2003/06/30 17:06:09 mast Exp $   */      #include "global.h" - RCSID("$Id: mapping.c,v 1.167 2003/06/02 16:35:34 mast Exp $"); + RCSID("$Id: mapping.c,v 1.168 2003/06/30 17:06:09 mast Exp $");   #include "main.h"   #include "object.h"   #include "mapping.h"   #include "svalue.h"   #include "array.h"   #include "pike_macros.h"   #include "pike_error.h"   #include "pike_memory.h"   #include "dynamic_buffer.h"   #include "interpret.h"
pike.git/src/mapping.c:33:      struct mapping *gc_internal_mapping = 0;   static struct mapping *gc_mark_mapping_pos = 0;      #define unlink_mapping_data(M) do{ \    struct mapping_data *md_=(M); \    if(md_->hardlinks) { md_->hardlinks--; md_->valrefs--; } \    free_mapping_data(M); \   }while(0)    -  +    #define MAPPING_DATA_SIZE(HSIZE, KEYPAIRS) \ -  (((char *)(MD_KEYPAIRS(0, HSIZE) + KEYPAIRS))-(char *)0) +  PTR_TO_INT(MD_KEYPAIRS(0, HSIZE) + KEYPAIRS)    -  -  +    #undef EXIT_BLOCK   #define EXIT_BLOCK(m) do{ \   DO_IF_DEBUG( \    if(m->refs) { \    DO_IF_DMALLOC(describe_something(m, T_MAPPING, 0,2,0, NULL)); \    Pike_fatal("really free mapping on mapping with %d refs.\n", m->refs); \    } \   ) \    \    FREE_PROT(m); \