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.589 2005/02/10 00:19:31 nilsson Exp $ + || $Id: builtin_functions.c,v 1.590 2005/02/18 14:56:06 grubba Exp $   */      #include "global.h"   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"   #include "pike_error.h"
pike.git/src/builtin_functions.c:2129:   #endif    level = CDR (n)->u.sval.u.integer;    }    }    else level = 0;       emit1(F_THIS_OBJECT, level);    return 1;   }    - /*! @decl void throw(mixed value) + /*! @decl mixed|void throw(mixed value)    *!    *! Throw @[value] to a waiting @[catch].    *!    *! If no @[catch] is waiting the global error handling will send the    *! value to @[master()->handle_error()].    *!    *! If you throw an array with where the first index contains an error    *! message and the second index is a backtrace, (the output from    *! @[backtrace()]) then it will be treated exactly like a real error    *! by overlying functions.
pike.git/src/builtin_functions.c:8399:    tFunc(tArr(tSetvar(0,tMix)), tArr(tVar(0))), 0,    OPT_TRY_OPTIMIZE);      /* function(mixed:int) */    ADD_EFUN("stringp", f_stringp, tFunc(tMix,tInt01), 0);       ADD_EFUN2("this_object", f_this_object,tFunc(tOr(tVoid,tIntPos),tObj),    OPT_EXTERNAL_DEPEND, optimize_this_object, generate_this_object);      /* function(mixed:void) */ -  ADD_EFUN("throw",f_throw,tFunc(tMix,tVoid),OPT_SIDE_EFFECT); +  ADD_EFUN("throw",f_throw,tFunc(tMix,tOr(tMix,tVoid)),OPT_SIDE_EFFECT);      /* function(void|int(0..1):int(2..))|function(int(2..):float) */    ADD_EFUN("time",f_time,    tOr(tFunc(tOr(tVoid,tInt01),tInt2Plus),    tFunc(tInt2Plus,tFlt)),    OPT_EXTERNAL_DEPEND);       /* function(array(0=mixed):array(0)) */    ADD_FUNCTION2("transpose",f_transpose,    tFunc(tArr(tSetvar(0,tMix)),tArr(tVar(0))), 0,
pike.git/src/builtin_functions.c:8617:    tFuncV(tMap(tSetvar(3,tMix),tStringIndicable) tString,tMix,    tMap(tVar(3),tMix)),    tFuncV(tSet(tStringIndicable) tString,tMix,tSet(tMix)),    tFuncV(tOr(tPrg(tObj),tFunction) tString,tMix,tMapping)),       tFuncV(tObj,tMix,tMix) ),    OPT_TRY_OPTIMIZE, fix_map_node_info, 0);       ADD_EFUN2("filter", f_filter,    tOr3(tFuncV(tSetvar(1,tOr4(tArray,tMapping,tMultiset,tString)), -  tMixed,tVar(1)), + #if 1 +  tMixed, + #else +  tOr5(tFuncV(tMix, tMix, tAnd(tInt01,tNot(tVoid))), +  tArray, tMapping, tMultiset, tString), + #endif /* 1 */ +  tVar(1)),    tFuncV(tOr(tPrg(tObj),tFunction),tMixed,tMap(tString,tMix)),    tFuncV(tObj,tMix,tMix) ) ,    OPT_TRY_OPTIMIZE, fix_map_node_info, 0);       ADD_EFUN("enumerate",f_enumerate,    tOr8(tFunc(tIntPos,tArr(tInt)),    tFunc(tIntPos tInt,tArr(tInt)),    tFunc(tIntPos tInt tOr(tVoid,tInt),tArr(tInt)),    tFunc(tIntPos tFloat tOr3(tVoid,tInt,tFloat),tArr(tFloat)),    tFunc(tIntPos tOr(tInt,tFloat) tFloat,tArr(tFloat)),