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.23 1997/10/16 06:34:26 hubbe Exp $"); + RCSID("$Id: mapping.c,v 1.24 1997/11/08 01:34:41 hubbe 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:941: Inside #if defined(DEBUG)
     void check_all_mappings(void)   {    struct mapping *m;    for(m=first_mapping;m;m=m->next)    check_mapping(m);   }   #endif       - #ifdef GC2 -  +    void gc_mark_mapping_as_referenced(struct mapping *m)   {    INT32 e;    struct keypair *k;       if(gc_mark(m))    {    if((m->ind_types | m->val_types) & BIT_COMPLEX)    {    LOOP(m)
pike.git/src/mapping.c:1050: Inside #if defined(GC2)
      next=m->next;       free_mapping(m);    }else{    next=m->next;    }    }   }    - #endif /* GC2 */ -  +    void zap_all_mappings(void)   {    INT32 e;    struct keypair *k;    struct mapping *m,*next;       for(m=first_mapping;m;m=next)    {    m->refs++;