pike.git / src / array.c

version» Context lines:

pike.git/src/array.c:16:   #include "pike_types.h"   #include "fsort.h"   #include "builtin_functions.h"   #include "pike_memory.h"   #include "gc.h"   #include "main.h"   #include "security.h"   #include "stuff.h"   #include "bignum.h"    - RCSID("$Id: array.c,v 1.85 2000/08/16 21:39:07 mast Exp $"); + RCSID("$Id: array.c,v 1.86 2000/09/08 16:19:42 grubba Exp $");      PMOD_EXPORT struct array empty_array=   {    1, /* Never free */   #ifdef PIKE_SECURITY    0,   #endif    &empty_array, /* Next */    &empty_array, /* previous (circular) */    0, /* Size = 0 */
pike.git/src/array.c:1581:       s=str->str;    end=s+(str->len << str->size_shift);       ret=allocate_array(10);    ret->size=0;       init_generic_memsearcher(&searcher,    del->str,    del->len, -  del->size_shift, +  (char)del->size_shift,    str->len, -  str->size_shift); +  (char)str->size_shift);       while((tmp=(char *)generic_memory_search(&searcher,    s,    (end-s)>>str->size_shift, -  str->size_shift))) +  (char)str->size_shift)))    {    if(ret->size == ret->malloced_size)    {    e=ret->size;    ret=resize_array(ret, e * 2);    ret->size=e;    }       ITEM(ret)[ret->size].u.string=string_slice(str,    (s-str->str)>>str->size_shift,