pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:9422:    ADD_EFUN("callablep", f_callablep,tFunc(tMix,tInt01),OPT_TRY_OPTIMIZE);       /* function(string,string:int(0..1))|function(string,string*:array(string)) */    ADD_EFUN("glob",f_glob,    tOr3(tFunc(tStr tStr,tInt01),    tFunc(tArr(tStr) tStr,tStr),    tFunc(tOr(tStr,tArr(tStr)) tSetvar(1,tArr(tStr)),tVar(1))),    OPT_TRY_OPTIMIZE);       /* function(string,int|void:int) */ -  ADD_EFUN("hash_8_0", f_hash_8_0, -  tAttr("deprecated",tFunc(tStr tOr(tInt1Plus,tVoid),tIntPos)), +  ADD_EFUN("hash_7_0",f_hash_7_0, +  tFunc(tStr tOr(tInt1Plus,tVoid),tIntPos),    OPT_TRY_OPTIMIZE);    -  ADD_EFUN("hash_7_0",f_hash_7_0, -  tAttr("deprecated",tFunc(tStr tOr(tInt1Plus,tVoid),tIntPos)), +  ADD_EFUN("hash_7_4",f_hash_7_4, +  tFunc(tStr tOr(tInt1Plus,tVoid),tIntPos),    OPT_TRY_OPTIMIZE);    -  +  ADD_EFUN("hash_8_0", f_hash_8_0, +  tFunc(tStr tOr(tInt1Plus,tVoid),tIntPos), +  OPT_TRY_OPTIMIZE); +     ADD_EFUN("hash",f_hash,    tFunc(tStr tOr(tInt1Plus,tVoid),tIntPos), OPT_TRY_OPTIMIZE);    -  ADD_EFUN("hash_7_4",f_hash_7_4, -  tAttr("deprecated",tFunc(tStr tOr(tInt1Plus,tVoid),tIntPos)), -  OPT_TRY_OPTIMIZE); -  +     ADD_EFUN("hash_value",f_hash_value,tFunc(tMix,tIntPos),OPT_TRY_OPTIMIZE);       ADD_EFUN2("indices",f_indices,    tOr3(tFunc(tArray,tArr(tIntPos)),    tFunc(tOr3(tMap(tSetvar(1,tMix),tMix),    tSet(tSetvar(1,tMix)),    tNStr(tSetvar(1,tInt))),    tArr(tVar(1))),    tFunc(tOr(tObj,tPrg(tObj)),tArr(tStr))),    OPT_TRY_OPTIMIZE,fix_indices_type,0);