pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:8355:    BIT_ARRAY, BIT_INT | BIT_VOID, BIT_INT | BIT_VOID , 0);       switch(args)    {    default:    case 3:    start=Pike_sp[2-args].u.integer;    if(start<0)    bad_arg_error("everynth", Pike_sp-args, args, 3, "int", Pike_sp+2-args,    "Argument negative.\n"); +  /* FALLTHRU */    case 2:    n=Pike_sp[1-args].u.integer;    if(n<1)    bad_arg_error("everynth", Pike_sp-args, args, 2, "int", Pike_sp+1-args,    "Argument negative.\n"); -  +  /* FALLTHRU */    case 1:    ina=Pike_sp[-args].u.array;    }       a=allocate_array(((size=ina->size)-start+n-1)/n);    types = 0;    for(k=0; start<size; k++, start+=n) {    assign_svalue_no_free(ITEM(a) + k, ina->item+start);    types |= 1 << TYPEOF(ITEM(a)[k]);    }