Home | History | Annotate | Download | only in dist

Lines Matching defs:index_

62 ARRAYINLINE void *array_get(const struct array *, unsigned index_);
63 ARRAYINLINE void array_set(const struct array *, unsigned index_, void *val);
66 void array_insert(struct array *a, unsigned index_);
67 void array_remove(struct array *a, unsigned index_);
79 array_get(const struct array *a, unsigned index_)
81 arrayassert(index_ < a->num);
82 return a->v[index_];
86 array_set(const struct array *a, unsigned index_, void *val)
88 arrayassert(index_ < a->num);
89 a->v[index_] = val;
95 unsigned index_ = a->num;
96 array_setsize(a, index_+1);
97 a->v[index_] = val;
99 *index_ret = index_;
172 INLINE T *ARRAY##_get(const struct ARRAY *a, unsigned index_); \
173 INLINE void ARRAY##_set(struct ARRAY *a, unsigned index_, T *val); \
176 INLINE void ARRAY##_insert(struct ARRAY *a, unsigned index_); \
177 INLINE void ARRAY##_remove(struct ARRAY *a, unsigned index_)
217 ARRAY##_get(const struct ARRAY *a, unsigned index_) \
219 return (T *)array_get(&a->arr, index_); \
223 ARRAY##_set(struct ARRAY *a, unsigned index_, T *val) \
225 array_set(&a->arr, index_, (void *)val); \
241 ARRAY##_insert(struct ARRAY *a, unsigned index_) \
243 array_insert(&a->arr, index_); \
247 ARRAY##_remove(struct ARRAY *a, unsigned index_) \
249 array_remove(&a->arr, index_); \