pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.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: builtin_functions.c,v 1.563 2008/04/23 07:37:03 mast Exp $ + || $Id: builtin_functions.c,v 1.564 2009/08/26 12:25:56 mast Exp $   */      #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.563 2008/04/23 07:37:03 mast Exp $"); + RCSID("$Id: builtin_functions.c,v 1.564 2009/08/26 12:25:56 mast Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"   #include "pike_error.h"   #include "constants.h"   #include "mapping.h"   #include "stralloc.h"
pike.git/src/builtin_functions.c:314:    *!    *! @seealso    *! @[equal()]    */   PMOD_EXPORT void f_copy_value(INT32 args)   {    if(!args)    SIMPLE_TOO_FEW_ARGS_ERROR("copy_value",1);       pop_n_elems(args-1); -  copy_svalues_recursively_no_free(Pike_sp,Pike_sp-1,1,0); -  free_svalue(Pike_sp-1); -  Pike_sp[-1]=Pike_sp[0]; +  Pike_sp++; +  copy_svalues_recursively_no_free(Pike_sp-1,Pike_sp-2,1,0); +  free_svalue(Pike_sp-2); +  move_svalue (Pike_sp - 2, Pike_sp - 1); +  Pike_sp--;    dmalloc_touch_svalue(Pike_sp-1);   }      struct case_info {    INT32 low; /* low end of range. */    INT32 mode;    INT32 data;   };      #define CIM_NONE 0 /* Case-less */