pike.git/
src/
array.h
Branch:
Tag:
Non-build tags
All tags
No tags
1996-03-24
1996-03-24 14:19:47 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
2a129b32b237a4d9cbd927dfc4a5f8bfe0e7c889 (
6
lines) (+
4
/-
2
)
[
Show
|
Annotate
]
Branch:
2a129b32b237a4d9cbd927dfc4a5f8bfe0e7c889
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);