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.520 2003/11/14 11:00:44 mast Exp $ + || $Id: builtin_functions.c,v 1.521 2003/12/04 22:23:58 nilsson Exp $   */      #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.520 2003/11/14 11:00:44 mast Exp $"); + RCSID("$Id: builtin_functions.c,v 1.521 2003/12/04 22:23:58 nilsson 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:8165:    tZero))),    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, tInt), -  tFunc(tArray tIntPos, tInt), -  tFunc(tSet(tSetvar(0,tMix)) tVar(0), tInt), -  tFunc(tMap(tSetvar(1,tMix),tMix) tVar(1), tInt), -  tFunc(tObj tMix, tInt)), -  0); +  tOr5(tFunc(tStr tIntPos, tInt01), +  tFunc(tArray tIntPos, tInt01), +  tFunc(tSet(tSetvar(0,tMix)) tVar(0), tInt01), +  tFunc(tMap(tSetvar(1,tMix),tMix) tVar(1), tInt01), +  tFunc(tObj tMix, tInt01)), +  OPT_TRY_OPTIMIZE);       ADD_EFUN("has_value",f_has_value, -  tOr5(tFunc(tStr tOr(tStr, tInt), tInt), -  tFunc(tArr(tSetvar(0,tMix)) tVar(0), tInt), -  tFunc(tMultiset tInt, tInt), -  tFunc(tMap(tMix,tSetvar(1,tMix)) tVar(1), tInt), -  tFunc(tObj tMix, tInt)), -  0); +  tOr5(tFunc(tStr tOr(tStr, tInt), tInt01), +  tFunc(tArr(tSetvar(0,tMix)) tVar(0), tInt01), +  tFunc(tMultiset tInt, tInt01), +  tFunc(tMap(tMix,tSetvar(1,tMix)) tVar(1), tInt01), +  tFunc(tObj tMix, tInt01)), +  OPT_TRY_OPTIMIZE);      /* function(float|int,int|void:void) */    ADD_EFUN("sleep", f_sleep,    tFunc(tOr(tFlt,tInt) tOr(tInt,tVoid),tVoid),OPT_SIDE_EFFECT);    ADD_EFUN("delay", f_delay,    tFunc(tOr(tFlt,tInt) tOr(tInt,tVoid),tVoid),OPT_SIDE_EFFECT);      /* function(array(0=mixed),array(mixed)...:array(0)) */    ADD_EFUN("sort",f_sort,    tFuncV(tArr(tSetvar(0,tMix)),tArr(tMix),tArr(tVar(0))),
pike.git/src/builtin_functions.c:8269: Inside #if defined(HAVE_LOCALTIME)
     #ifdef HAVE_LOCALTIME      /* function(int:mapping(string:int)) */    ADD_EFUN("localtime",f_localtime,    tFunc(tInt,tMap(tStr,tInt)),OPT_EXTERNAL_DEPEND);   #endif   #ifdef HAVE_GMTIME      /* function(int:mapping(string:int)) */ -  ADD_EFUN("gmtime",f_gmtime,tFunc(tInt,tMap(tStr,tInt)),OPT_EXTERNAL_DEPEND); +  ADD_EFUN("gmtime",f_gmtime,tFunc(tInt,tMap(tStr,tInt)),OPT_TRY_OPTIMIZE);   #endif      #ifdef HAVE_MKTIME      /* function(int,int,int,int,int,int,int,void|int:int)|function(object|mapping:int) */    ADD_EFUN("mktime",f_mktime,    tOr(tFunc(tInt tInt tInt tInt tInt tInt tInt tOr(tVoid,tInt),tInt),    tFunc(tOr(tObj,tMapping),tInt)),OPT_TRY_OPTIMIZE);   #endif