pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:8325:    for(i=-args; i<0; i++)    {    assign_svalue_no_free(out->item+k, Pike_sp[i].u.array->item+j);    out->type_field |= (1<<TYPEOF(*(out->item+(k++))));    }       push_array(out);    return;   }    - /*! @decl array(mixed) everynth(array(mixed) a, void|int n, @ -  *! void|int start) + /*! @decl array(mixed) everynth(array(mixed) a, void|int(1..) n, @ +  *! void|int(0..) start)    *!    *! Return an array with every @[n]:th element of the array @[a].    *!    *! If @[n] is zero every other element will be returned.    *!    *! @seealso    *! @[splice()], @[`/()]    */   PMOD_EXPORT void f_everynth(INT32 args)   {
pike.git/src/builtin_functions.c:9580:    tOr(tFunc(tOr(tStr,tVoid),tStr7),tFunc(tStr tStr,tInt01)),OPT_EXTERNAL_DEPEND);       /* function(object|void:void) */    ADD_EFUN("destruct",f_destruct,tFunc(tOr(tObj,tVoid),tVoid),OPT_SIDE_EFFECT);       /* function(mixed,mixed:int) */    ADD_EFUN("equal",f_equal,tFunc(tMix tMix,tInt01),OPT_TRY_OPTIMIZE);       /* function(array(0=mixed),int|void,int|void:array(0)) */    ADD_FUNCTION2("everynth",f_everynth, -  tFunc(tArr(tSetvar(0,tMix)) tOr(tInt,tVoid) tOr(tInt,tVoid), +  tFunc(tArr(tSetvar(0,tMix)) tOr(tInt1Plus,tVoid) tOr(tIntPos,tVoid),    tArr(tVar(0))), 0, OPT_TRY_OPTIMIZE);       /* function(int:void) */    ADD_EFUN("exit",f_exit,tFuncV(tInt tOr(tVoid,tStr),tOr(tVoid,tMix),tVoid),    OPT_SIDE_EFFECT);       /* function(int:void) */    ADD_EFUN("_exit",f__exit,tFunc(tInt,tVoid),OPT_SIDE_EFFECT);       /* function(mixed:int) */