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.101 2000/09/08 04:40:31 hubbe Exp $"); + RCSID("$Id: mapping.c,v 1.102 2000/09/08 16:38:20 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:548:    fatal("Mapping indices types out of order!\n");   #endif    m->data->val_types = val_types;    m->data->ind_types = ind_types;   }      PMOD_EXPORT void mapping_set_flags(struct mapping *m, int flags)   {    struct mapping_data *md = m->data;    if (md->refs > 1) { -  struct keypair *k, *prev; +  struct keypair *k = NULL, *prev = NULL;    COPYMAP2();    }    md->flags = flags;   }         /* This function inserts key:val into the mapping m.    * Same as doing m[key]=val; in pike.    */   PMOD_EXPORT void low_mapping_insert(struct mapping *m,