Home | History | Annotate | Download | only in dist

Lines Matching refs:INLINE

109  * DECLARRAY_BYTYPE(foo, bar, INLINE) declares "struct foo", which is
112 * DECLARRAY(foo, INLINE) is equivalent to
113 * DECLARRAY_BYTYPE(fooarray, struct foo, INLINE).
118 * The argument INLINE can be used as follows:
131 * 3. To inline using C99:
133 * DECLARRAY(foo, inline);
134 * DEFARRAY(foo, inline);
136 * 4. To inline with old gcc:
139 * #define FOO_INLINE extern inline
147 * 5. To inline such that it works both with old gcc and C99:
150 * #define FOO_INLINE extern inline
162 #define DECLARRAY_BYTYPE(ARRAY, T, INLINE) \
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) \
181 INLINE void \
187 INLINE void \
193 INLINE struct \
203 INLINE void \
210 INLINE unsigned \
216 INLINE T * \
222 INLINE void \
228 INLINE void \
234 INLINE void \
240 INLINE void \
246 INLINE void \
252 #define DECLARRAY(T, INLINE) DECLARRAY_BYTYPE(T##array, struct T, INLINE)
253 #define DEFARRAY(T, INLINE) DEFARRAY_BYTYPE(T##array, struct T, INLINE)
255 #define DESTROYALL_ARRAY(T, INLINE) \
256 INLINE void T##array_destroyall(struct T##array *arr); \
258 INLINE void \