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.109 2000/10/09 23:58:49 hubbe Exp $"); + RCSID("$Id: mapping.c,v 1.110 2000/11/01 23:30:36 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:1370:    free_array(ci);    free_array(cv);       return m;   }      PMOD_EXPORT struct mapping *merge_mapping_array_ordered(struct mapping *a,    struct array *b, INT32 op)   {    struct array *ai, *av; -  struct array *ci, *cv; -  INT32 *zipper; +  struct array *ci = NULL, *cv = NULL; +  INT32 *zipper = NULL;    struct mapping *m;       ai=mapping_indices(a);    av=mapping_values(a);    if(ai->size > 1)    {    zipper=get_set_order(ai);    order_array(ai, zipper);    order_array(av, zipper);    free((char *)zipper);