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.448 2002/10/15 14:57:29 grubba Exp $ + || $Id: builtin_functions.c,v 1.449 2002/10/25 13:13:57 marcus Exp $   */      #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.448 2002/10/15 14:57:29 grubba Exp $"); + RCSID("$Id: builtin_functions.c,v 1.449 2002/10/25 13:13:57 marcus 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:3108:    if (SETJMP(tmp)) {    yywarning("Optimizer failure in replace().");    pop_n_elems(Pike_sp - save_sp);    free_svalue(&throw_value);    throw_value.type = T_INT;    } else {    extern struct program *multi_string_replace_program;    INT16 lfun;    struct object *replace_obj;    node *ret = NULL; -  INT32 args = eval_low(*arg1); /* NOTE: Addition splitted to ensure */ -  args += eval_low(*arg2); /* correct evaluation order. */ +  INT32 args = eval_low(*arg1,1); /* NOTE: Addition splitted to ensure */ +  args += eval_low(*arg2,1); /* correct evaluation order. */       replace_obj = clone_object(multi_string_replace_program, args);       push_object(replace_obj);    if (replace_obj->prog &&    ((lfun = FIND_LFUN(replace_obj->prog, LFUN_CALL)) != -1)) {    Pike_sp[-1].subtype = lfun;    Pike_sp[-1].type = PIKE_T_FUNCTION;    ADD_NODE_REF2(*arg0,    ret = mkapplynode(mkconstantsvaluenode(Pike_sp-1),