about summary refs log tree commit diff
path: root/malloc/dynarray_emplace_enlarge.c
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright dates with scripts/update-copyrights.Joseph Myers2018-01-011-1/+1
| | | | | | | * All files with FSF copyright notices: Update copyright dates using scripts/update-copyrights. * locale/programs/charmap-kw.h: Regenerated. * locale/programs/locfile-kw.h: Likewise.
* __libc_dynarray_emplace_enlarge: Add missing elseFlorian Weimer2017-09-061-1/+1
| | | | | Before, arrays of small elements received a starting allocation size of 8, not 16.
* dynarray: Set errno on overflow-induced allocation failureFlorian Weimer2017-08-301-2/+6
| | | | | This allows the caller to return directly on such an error, with an appropriate errno value.
* Add internal facility for dynamic array handlingFlorian Weimer2017-06-021-0/+69
This is intended as a type-safe alternative to obstacks and hand-written realloc constructs. The implementation avoids writing function pointers to the heap.