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.106 2000/09/17 19:33:33 grubba Exp $"); + RCSID("$Id: mapping.c,v 1.107 2000/09/24 15:20:14 grubba Exp $");   #include "main.h"   #include "object.h"   #include "mapping.h"   #include "svalue.h"   #include "array.h"   #include "pike_macros.h"   #include "error.h"   #include "pike_memory.h"   #include "dynamic_buffer.h"   #include "interpret.h"
pike.git/src/mapping.c:1137:    INT32 e;    struct array *a;    struct svalue *s;    struct keypair *k;      #ifdef PIKE_DEBUG    if(m->data->refs <=0)    fatal("Zero refs in mapping->data\n");   #endif    +  check_mapping_for_destruct(m); +     a=allocate_array(m->data->size);    s=ITEM(a);       /* no locking required */    NEW_MAPPING_LOOP(m->data) assign_svalue(s++, & k->ind);       a->type_field = m->data->ind_types;      #ifdef PIKE_DEBUG    if(d_flag > 1) check_mapping_type_fields(m);
pike.git/src/mapping.c:1164:    INT32 e;    struct keypair *k;    struct array *a;    struct svalue *s;      #ifdef PIKE_DEBUG    if(m->data->refs <=0)    fatal("Zero refs in mapping->data\n");   #endif    +  check_mapping_for_destruct(m); +     a=allocate_array(m->data->size);    s=ITEM(a);       /* no locking required */    NEW_MAPPING_LOOP(m->data) assign_svalue(s++, & k->val);       a->type_field = m->data->val_types;      #ifdef PIKE_DEBUG    if(d_flag > 1) check_mapping_type_fields(m);