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.80 2000/08/10 17:41:09 grubba Exp $"); + RCSID("$Id: array.c,v 1.81 2000/08/15 11:09:06 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:436:    }    v->size--;    return v;    }   }      /*    * Search for in svalue in an array.    * return the index if found, -1 otherwise    */ - PMOD_EXPORT INT32 array_search(struct array *v, struct svalue *s,INT32 start) + PMOD_EXPORT ptrdiff_t array_search(struct array *v, struct svalue *s, +  ptrdiff_t start)   { -  INT32 e; +  ptrdiff_t e; +    #ifdef PIKE_DEBUG    if(start<0)    fatal("Start of find_index is less than zero.\n");   #endif       check_destructed(s);      #ifdef PIKE_DEBUG    if(d_flag > 1) array_check_type_field(v);   #endif