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.76 2000/04/16 22:25:06 hubbe Exp $"); + RCSID("$Id: mapping.c,v 1.77 2000/04/17 16:42:16 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:1919:    check_mapping_for_destruct(m);    if(gc_do_free(m))    {    add_ref(m);    md = m->data;    /* Protect against unlink_mapping_data() recursing too far. */    m->data=&empty_data;    m->data->refs++;       unlink_mapping_data(md); -  next=m->next; +    #ifdef PIKE_DEBUG    m->debug_size=0;   #endif -  -  free_mapping(m); +  SET_NEXT_AND_FREE(m, free_mapping);    }    else if(m->flags & MAPPING_FLAG_WEAK)    {    add_ref(m);    md=m->data;    /* no locking required (no is_eq) */    for(e=0;e<md->hashsize;e++)    {    for(prev= md->hash + e;(k=*prev);)    {