pike.git / src / array.c

version» Context lines:

pike.git/src/array.c:12:   #include "interpret.h"   #include "language.h"   #include "error.h"   #include "pike_types.h"   #include "fsort.h"   #include "builtin_functions.h"   #include "pike_memory.h"   #include "gc.h"   #include "main.h"    - RCSID("$Id: array.c,v 1.37 1998/05/12 23:49:52 hubbe Exp $"); + RCSID("$Id: array.c,v 1.38 1998/05/13 07:38:29 hubbe Exp $");      struct array empty_array=   {    1, /* Never free */    &empty_array, /* Next */    &empty_array, /* previous (circular) */    0, /* Size = 0 */    0, /* malloced Size = 0 */    0, /* no types */    0, /* no flags */
pike.git/src/array.c:204:   void array_set_index(struct array *v,INT32 index, struct svalue *s)   {   #ifdef DEBUG    if(index<0 || index>v->size)    fatal("Illegal index in low level array set routine.\n");   #endif       add_ref(v);    check_destructed(s);    -  v->type_field = (v->type_field & ~BIT_UNFINISHED) | 1 << s->type; +  v->type_field = (v->type_field & ~BIT_UNFINISHED) | (1 << s->type);    assign_svalue( ITEM(v) + index, s);    free_array(v);   }         void simple_set_index(struct array *a,struct svalue *ind,struct svalue *s)   {    INT32 i;    if(ind->type != T_INT)    error("Index is not an integer.\n");