pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:4134:       default:    SIMPLE_ARG_TYPE_ERROR("values", 1,    "string|array|mapping|multiset|"    "object|program|function");    }    pop_n_elems(args);    push_array(a);   }    - /*! @decl array(type(mixed)) types(string|array|mapping|multiset|object x) + /*! @decl array(type(mixed)) types(string|array|mapping|multiset|object|program x)    *!    *! Return an array with the types of all valid indices for the value @[x].    *!    *! @param x    *! @mixed    *! @type string    *! For strings this is simply an array with @tt{int@}    *!    *! @type array    *! @type mapping
pike.git/src/builtin_functions.c:10270:    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);    -  /* function(string|multiset:array(int))|function(array(0=mixed)|mapping(mixed:0=mixed)|object|program:array(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);       /* function(object|program, int(0..1)|void:array(multiset)) */    ADD_EFUN2("annotations", f_annotations,