Branch: Tag:

1996-03-24

1996-03-24 14:19:47 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

now resets all allocated arrays to zero

Rev: src/array.c:1.8
Rev: src/array.h:1.5

47:      #define free_array(V) do{ struct array *v_=(V); if(!--v_->refs) really_free_array(v_); }while(0)    + #define allocate_array(X) low_allocate_array((X),0) + #define allocate_array_no_init(X,Y) low_allocate_array((X),(Y))      typedef int (*cmpfun)(struct svalue *,struct svalue *);   typedef int (*short_cmpfun)(union anything *, union anything *);
54:         /* Prototypes begin here */ - struct array *allocate_array_no_init(INT32 size,INT32 extra_space); - struct array *allocate_array(INT32 size); + struct array *low_allocate_array(INT32 size,INT32 extra_space);   void really_free_array(struct array *v);   void array_index_no_free(struct svalue *s,struct array *v,INT32 index);   void array_index(struct svalue *s,struct array *v,INT32 index);