pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:3081:    void *p = s->str;       if (args==1) {    pop_n_elems(args);    if (index<0)    index += len;    if (index<0 || index>=len)    index_error("Buffer->`[]", Pike_sp, args, NULL, Pike_sp,    "Index %"PRINTPIKEINT"d is out of array range 0..%d,\n",    index, len-1); -  p = (char*)p+(index<<shift); -  push_int (!shift ? *(p_wchar0*)p -  : shift==1 ? *(p_wchar1*)p -  : *(p_wchar2*)p); +  push_int (generic_extract(p, shift, index));    } else {    INT_TYPE end = end_or_none->u.integer;    struct object *res;    struct Buffer_struct *str2;       pop_n_elems(args);    res = fast_clone_object( Buffer_program );    str2 = OBJ2_BUFFER( res );    if (index < 0)    index = 0;