Lines Matching refs:dynarray_header

130     struct dynarray_header dynarray_abstract;
137 } dynarray_header; member
184 if (list->u.dynarray_header.array != list->scratch) in DYNARRAY_NAME()
185 free (list->u.dynarray_header.array); in DYNARRAY_NAME()
187 free (list->u.dynarray_header.array); in DYNARRAY_NAME()
199 list->u.dynarray_header.used = 0; in DYNARRAY_NAME()
200 list->u.dynarray_header.allocated = DYNARRAY_INITIAL_SIZE; in DYNARRAY_NAME()
201 list->u.dynarray_header.array = DYNARRAY_SCRATCH (list); in DYNARRAY_NAME()
210 (list->u.dynarray_header.array, list->u.dynarray_header.used); in DYNARRAY_FREE()
220 return list->u.dynarray_header.allocated == __dynarray_error_marker (); in DYNARRAY_NAME()
230 (list->u.dynarray_header.array, list->u.dynarray_header.used); in DYNARRAY_NAME()
232 list->u.dynarray_header.array = DYNARRAY_SCRATCH (list); in DYNARRAY_NAME()
233 list->u.dynarray_header.used = 0; in DYNARRAY_NAME()
234 list->u.dynarray_header.allocated = __dynarray_error_marker (); in DYNARRAY_NAME()
243 return list->u.dynarray_header.used; in DYNARRAY_NAME()
254 return list->u.dynarray_header.array + index; in DYNARRAY_NAME()
264 return list->u.dynarray_header.array; in DYNARRAY_NAME()
274 return list->u.dynarray_header.array + list->u.dynarray_header.used; in DYNARRAY_NAME()
291 list->u.dynarray_header.array[list->u.dynarray_header.used++] = item; in DYNARRAY_NAME()
306 if (__glibc_unlikely (list->u.dynarray_header.used in DYNARRAY_NAME()
307 == list->u.dynarray_header.allocated)) in DYNARRAY_NAME()
314 list->u.dynarray_header.array[list->u.dynarray_header.used++] = item; in DYNARRAY_NAME()
323 = &list->u.dynarray_header.array[list->u.dynarray_header.used]; in DYNARRAY_NAME()
324 ++list->u.dynarray_header.used; in DYNARRAY_NAME()
365 if (__glibc_unlikely (list->u.dynarray_header.used in DYNARRAY_NAME()
366 == list->u.dynarray_header.allocated)) in DYNARRAY_NAME()
379 if (size > list->u.dynarray_header.used) in DYNARRAY_NAME()
384 size_t old_size = list->u.dynarray_header.used; in DYNARRAY_NAME()
391 DYNARRAY_ELEMENT_INIT (&list->u.dynarray_header.array[i]); in DYNARRAY_NAME()
412 (list->u.dynarray_header.array + size, in DYNARRAY_NAME()
413 list->u.dynarray_header.used - size); in DYNARRAY_NAME()
414 list->u.dynarray_header.used = size; in DYNARRAY_NAME()
425 if (list->u.dynarray_header.used > 0) in DYNARRAY_NAME()
427 size_t new_length = list->u.dynarray_header.used - 1; in DYNARRAY_NAME()
429 DYNARRAY_ELEMENT_FREE (&list->u.dynarray_header.array[new_length]); in DYNARRAY_NAME()
431 list->u.dynarray_header.used = new_length; in DYNARRAY_NAME()
444 (list->u.dynarray_header.array, list->u.dynarray_header.used); in DYNARRAY_NAME()
445 list->u.dynarray_header.used = 0; in DYNARRAY_NAME()