Lines Matching refs:type
11 #define HT_HEAD(name, type) \ argument
14 struct type **hth_table; \
29 #define HT_ENTRY(type) \ argument
31 struct type *hte_next; \
34 #define HT_ENTRY(type) \ argument
36 struct type *hte_next; \
129 #define HT_PROTOTYPE(name, type, field, hashfn, eqfn) \ argument
143 static inline struct type ** \
144 name##_HT_FIND_P_(struct name *head, struct type *elm) \
146 struct type **p; \
159 static inline struct type * \
160 name##_HT_FIND(const struct name *head, struct type *elm) \
162 struct type **p; \
171 name##_HT_INSERT(struct name *head, struct type *elm) \
173 struct type **p; \
185 static inline struct type * \
186 name##_HT_REPLACE(struct name *head, struct type *elm) \
188 struct type **p, *r; \
206 static inline struct type * \
207 name##_HT_REMOVE(struct name *head, struct type *elm) \
209 struct type **p, *r; \
226 int (*fn)(struct type *, void *), \
230 struct type **p, **nextp, *next; \
250 static inline struct type ** \
266 static inline struct type ** \
267 name##_HT_NEXT(struct name *head, struct type **elm) \
281 static inline struct type ** \
282 name##_HT_NEXT_RMV(struct name *head, struct type **elm) \
300 #define HT_GENERATE(name, type, field, hashfn, eqfn, load, mallocfn, \ argument
321 struct type **new_table; \
332 if ((new_table = mallocfn(new_len*sizeof(struct type*)))) { \
334 memset(new_table, 0, new_len*sizeof(struct type*)); \
336 struct type *elm, *next; \
352 new_table = reallocfn(head->hth_table, new_len*sizeof(struct type*)); \
355 (new_len - head->hth_table_length)*sizeof(struct type*)); \
357 struct type *e, **pE; \
391 struct type *elm; \