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.632 2007/03/29 16:39:42 grubba Exp $ + || $Id: builtin_functions.c,v 1.633 2007/04/01 18:28:39 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:9066:    tFunc(tOr4(tObj,tFunction,tPrg(tObj),tInt) tArray, tArray)), 0);       /* FIXME: Is the third arg a good idea when the first is a mapping? */    ADD_EFUN("search",f_search,    tOr4(tFunc(tStr tOr(tStr,tInt) tOr(tVoid,tInt),    tInt),    tFunc(tArr(tSetvar(0,tMix)) tVar(0) tOr(tVoid,tInt),    tInt),    tFunc(tMap(tSetvar(1,tMix),tSetvar(2,tMix)) tVar(2) tOr(tVoid,tVar(1)),    tVar(1)), -  -  tIfnot(tOr(tFunc(tNot(tArray) tMix tOr(tVoid,tInt), tMix), -  tFunc(tNot(tMapping) tMix tOr(tVoid,tInt), tMix)), -  tFunc(tOr(tMapping, tArray) tMix tOr(tVoid,tInt), -  tZero))), +  tFunc(tObj tMix tOr(tVoid, tSetvar(3, tMix)), tVar(3))),    0);       ADD_EFUN2("has_prefix", f_has_prefix, tFunc(tStr tStr,tInt01),    OPT_TRY_OPTIMIZE, 0, 0);       ADD_EFUN2("has_suffix", f_has_suffix, tFunc(tStr tStr,tInt01),    OPT_TRY_OPTIMIZE, 0, 0);       ADD_EFUN("has_index",f_has_index,    tOr5(tFunc(tStr tIntPos, tInt01),