Lines Matching refs:ARRAY
162 #define DECLARRAY_BYTYPE(ARRAY, T, INLINE) \ argument
163 struct ARRAY { \
167 INLINE struct ARRAY *ARRAY##_create(void); \
168 INLINE void ARRAY##_destroy(struct ARRAY *a); \
169 INLINE void ARRAY##_init(struct ARRAY *a); \
170 INLINE void ARRAY##_cleanup(struct ARRAY *a); \
171 INLINE unsigned ARRAY##_num(const struct ARRAY *a); \
172 INLINE T *ARRAY##_get(const struct ARRAY *a, unsigned index_); \
173 INLINE void ARRAY##_set(struct ARRAY *a, unsigned index_, T *val); \
174 INLINE void ARRAY##_setsize(struct ARRAY *a, unsigned num); \
175 INLINE void ARRAY##_add(struct ARRAY *a, T *val, unsigned *index_ret);\
176 INLINE void ARRAY##_insert(struct ARRAY *a, unsigned index_); \
177 INLINE void ARRAY##_remove(struct ARRAY *a, unsigned index_)
180 #define DEFARRAY_BYTYPE(ARRAY, T, INLINE) \ argument
182 ARRAY##_init(struct ARRAY *a) \
188 ARRAY##_cleanup(struct ARRAY *a) \
194 ARRAY *ARRAY##_create(void) \
196 struct ARRAY *a; \
199 ARRAY##_init(a); \
204 ARRAY##_destroy(struct ARRAY *a) \
206 ARRAY##_cleanup(a); \
211 ARRAY##_num(const struct ARRAY *a) \
217 ARRAY##_get(const struct ARRAY *a, unsigned index_) \
223 ARRAY##_set(struct ARRAY *a, unsigned index_, T *val) \
229 ARRAY##_setsize(struct ARRAY *a, unsigned num) \
235 ARRAY##_add(struct ARRAY *a, T *val, unsigned *ret) \
241 ARRAY##_insert(struct ARRAY *a, unsigned index_) \
247 ARRAY##_remove(struct ARRAY *a, unsigned index_) \