pike.git / src / mapping.c

version» Context lines:

pike.git/src/mapping.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: mapping.c,v 1.165 2003/04/01 18:10:21 nilsson Exp $ + || $Id: mapping.c,v 1.166 2003/04/28 00:32:43 mast Exp $   */      #include "global.h" - RCSID("$Id: mapping.c,v 1.165 2003/04/01 18:10:21 nilsson Exp $"); + RCSID("$Id: mapping.c,v 1.166 2003/04/28 00:32:43 mast Exp $");   #include "main.h"   #include "object.h"   #include "mapping.h"   #include "svalue.h"   #include "array.h"   #include "pike_macros.h"   #include "pike_error.h"   #include "pike_memory.h"   #include "dynamic_buffer.h"   #include "interpret.h"
pike.git/src/mapping.c:1240:       a=allocate_array(m->data->size);    s=ITEM(a);       /* no locking required */    NEW_MAPPING_LOOP(m->data)    {    struct array *b=allocate_array(2);    assign_svalue(b->item+0, & k->ind);    assign_svalue(b->item+1, & k->val); +  b->type_field = (1 << k->ind.type) | (1 << k->val.type);    s->u.array=b;    s->type=T_ARRAY;    s++;    }    a->type_field = BIT_ARRAY;       return a;   }      PMOD_EXPORT void mapping_replace(struct mapping *m,struct svalue *from, struct svalue *to)