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.76 2001/07/03 02:39:12 david%hedbor.org Exp $"); + RCSID("$Id: mapping.c,v 1.77 2001/08/09 18:53:00 mast 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:1599:    ret->flags=m->flags;    doing.pointer_b=ret;       check_stack(2);       md=m->data;    md->valrefs++;    add_ref(md);    MAPPING_LOOP(m) /* FIXME: Shouldn't NEW_MAPPING_LOOP() be used? */    { -  copy_svalues_recursively_no_free(sp,&k->ind, 1, p); +  copy_svalues_recursively_no_free(sp,&k->ind, 1, &doing);    sp++; -  copy_svalues_recursively_no_free(sp,&k->val, 1, p); +  copy_svalues_recursively_no_free(sp,&k->val, 1, &doing);    sp++;       mapping_insert(ret, sp-2, sp-1);    pop_n_elems(2);    }    md->valrefs--;    free_mapping_data(md);       return ret;   }