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.79 2000/07/28 17:16:54 hubbe Exp $"); + RCSID("$Id: array.c,v 1.80 2000/08/10 17:41:09 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:41:      struct array *gc_internal_array = &empty_array;   static struct array *gc_mark_array_pos = 0;         /* Allocate an array, this might be changed in the future to    * allocate linked lists or something    * NOTE: the new array have zero references    */    - PMOD_EXPORT struct array *low_allocate_array(INT32 size,INT32 extra_space) + PMOD_EXPORT struct array *low_allocate_array(ptrdiff_t size, ptrdiff_t extra_space)   {    struct array *v; -  INT32 e; +  ptrdiff_t e;       if(size == 0)    {    add_ref(&empty_array);    return &empty_array;    }       v=(struct array *)malloc(sizeof(struct array)+    (size+extra_space-1)*sizeof(struct svalue));    if(!v)