Lines Matching refs:ARRAY
137 #define DECLARRAY_BYTYPE(ARRAY, T) \ argument
138 struct ARRAY { \
142 struct ARRAY *ARRAY##_create(void); \
143 void ARRAY##_destroy(struct ARRAY *a); \
144 void ARRAY##_init(struct ARRAY *a); \
145 void ARRAY##_cleanup(struct ARRAY *a); \
146 unsigned ARRAY##_num(const struct ARRAY *a); \
147 T *ARRAY##_get(const struct ARRAY *a, unsigned index_); \
148 void ARRAY##_set(struct ARRAY *a, unsigned index_, T *val); \
149 int ARRAY##_setsize(struct ARRAY *a, unsigned num); \
150 int ARRAY##_add(struct ARRAY *a, T *val, unsigned *index_ret); \
151 int ARRAY##_insert(struct ARRAY *a, unsigned index_); \
152 void ARRAY##_remove(struct ARRAY *a, unsigned index_)
155 #define DEFARRAY_BYTYPE(ARRAY, T, INLINE) \ argument
157 ARRAY##_init(struct ARRAY *a) \
163 ARRAY##_cleanup(struct ARRAY *a) \
169 ARRAY *ARRAY##_create(void) \
171 struct ARRAY *a; \
177 ARRAY##_init(a); \
182 ARRAY##_destroy(struct ARRAY *a) \
184 ARRAY##_cleanup(a); \
189 ARRAY##_num(const struct ARRAY *a) \
195 ARRAY##_get(const struct ARRAY *a, unsigned index_) \
201 ARRAY##_set(struct ARRAY *a, unsigned index_, T *val) \
207 ARRAY##_setsize(struct ARRAY *a, unsigned num) \
213 ARRAY##_add(struct ARRAY *a, T *val, unsigned *ret) \
219 ARRAY##_insert(struct ARRAY *a, unsigned index_) \
225 ARRAY##_remove(struct ARRAY *a, unsigned index_) \