pike.git / src / mapping.c

version» Context lines:

pike.git/src/mapping.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   /**/   #include "global.h" - RCSID("$Id: mapping.c,v 1.66 2000/02/15 02:41:18 grubba Exp $"); + RCSID("$Id: mapping.c,v 1.67 2000/03/07 18:32:49 grubba Exp $");   #include "main.h"   #include "object.h"   #include "mapping.h"   #include "svalue.h"   #include "array.h"   #include "pike_macros.h"   #include "language.h"   #include "error.h"   #include "pike_memory.h"   #include "dynamic_buffer.h"
pike.git/src/mapping.c:1826:   }      void gc_check_all_mappings(void)   {    INT32 e;    struct keypair *k;    struct mapping *m;       for(m=first_mapping;m;m=m->next)    { + #ifdef DEBUG_MALLOC +  if (((int)m->data) == 0x55555555) { +  fprintf(stderr, "** Zapped mapping in list of active mappings!\n"); +  describe_something(m, T_MAPPING, 1); +  fatal("Zapped mapping in list of active mappings!\n"); +  } + #endif /* DEBUG_MALLOC */    if((m->data->ind_types | m->data->val_types) & BIT_COMPLEX)    {    if(gc_check(m->data)) continue;       MAPPING_LOOP(m)    {    /* We do not want to count this key:index pair if    * the index is a destructed object or function    */    if(((1 << k->ind.type) & (BIT_OBJECT | BIT_FUNCTION)) &&