pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:10266:    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_value",f_hash_value,tFunc(tMix,tIntPos),OPT_TRY_OPTIMIZE);       ADD_EFUN2("indices",f_indices, -  tOr4(tFunc(tArray,tArr(tIntPos)), -  tFunc(tOr3(tMap(tSetvar(1,tMix),tMix), -  tSet(tSetvar(1,tMix)), -  tNStr(tSetvar(1,tInt))), -  tArr(tVar(1))), +  tOr6(tFunc(tLArr(tSetvar(1, tIntPos), tMix),tArr(tVar(1))), +  tFunc(tMap(tSetvar(1, tMix), tMix), tArr(tVar(1))), +  tFunc(tSet(tSetvar(1, tMix)), tArr(tVar(1))), +  tFunc(tLStr(tSetvar(1, tIntPos), tInt), tArr(tVar(1))),    tFunc(tPrg(tObj), tArr(tStr)),    tFuncArg(tSetvar(2, tObj),    tOr(tFindLFun(tVar(2), "_indices"),    tIfnot(tFindLFun(tVar(2), "_indices"),    tFunc(tNone, tArr(tStr)))))),    OPT_TRY_OPTIMIZE,fix_indices_type,0);       ADD_EFUN2("undefinedp", f_undefinedp, tFunc(tMix,tInt01), OPT_TRY_OPTIMIZE,    0, generate_undefinedp);    ADD_EFUN2("destructedp", f_destructedp, tFunc(tMix,tInt01), OPT_TRY_OPTIMIZE,
pike.git/src/builtin_functions.c:10431:    ADD_FUNCTION2("transpose",f_transpose,    tFunc(tArr(tSetvar(0,tMix)),tArr(tVar(0))), 0,    OPT_TRY_OPTIMIZE);       /* function(string:string)|function(int:int) */    ADD_EFUN("upper_case",f_upper_case,    tOr(tFunc(tStr,tStr),tFunc(tInt,tInt)),OPT_TRY_OPTIMIZE);       /* function(string|multiset:array(int))|function(array(0=mixed)|mapping(mixed:0=mixed)|object|program:array(0)) */    ADD_EFUN2("values",f_values, -  tOr(tFunc(tOr(tStr,tMultiset),tArr(tInt)), -  tFunc(tOr4(tArr(tSetvar(0,tMix)), -  tMap(tMix,tSetvar(0,tMix)), -  tObj,tPrg(tObj)), -  tArr(tVar(0)))),0,fix_values_type,0); +  tOr6(tFunc(tMultiset, tArr(tInt01)), +  tFunc(tNStr(tSetvar(0, tInt)), tArr(tVar(0))), +  tFunc(tSetvar(1, tArray), tVar(1)), +  tFunc(tMap(tMix, tSetvar(0, tMix)), tArr(tVar(0))), +  tFunc(tPrg(tObj), tArr(tStr)), +  tFuncArg(tSetvar(2, tObj), +  tOr(tFindLFun(tVar(2), "_values"), +  tIfnot(tFindLFun(tVar(2), "_values"), +  tFunc(tNone, tArr(tMix)))))), +  0, fix_values_type, 0);       /* function(string|multiset(array(int))|function(array(0=mixed)|mapping(mixed:0=mixed)|object|program:array(0)) */    ADD_EFUN2("types", f_types,    tOr3(tFunc(tOr3(tNStr(tSetvar(0,tInt)),    tArr(tSetvar(0,tMix)),    tMap(tMix,tSetvar(0,tMix))),    tArr(tType(tVar(0)))),    tFunc(tMultiset, tArr(tType(tInt1))),    tFunc(tOr(tObj,tPrg(tObj)), tArr(tType(tMix)))),0,NULL,0);