Add internal facility for dynamic array handling
authorFlorian Weimer <fweimer@redhat.com>
Fri, 2 Jun 2017 09:59:28 +0000 (11:59 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 2 Jun 2017 09:59:28 +0000 (11:59 +0200)
commit91b6eb1140eda6bab324821ee3785e5d0ca155b8
treec8b630c412611a9b9f5e600e8824661f403bfa7f
parent09103e40252454e906a0b8543a142fc96b4c17c1
Add internal facility for dynamic array handling

This is intended as a type-safe alternative to obstacks and
hand-written realloc constructs.  The implementation avoids
writing function pointers to the heap.
21 files changed:
ChangeLog
malloc/Makefile
malloc/Versions
malloc/dynarray-skeleton.c [new file with mode: 0644]
malloc/dynarray.h [new file with mode: 0644]
malloc/dynarray_at_failure.c [new file with mode: 0644]
malloc/dynarray_emplace_enlarge.c [new file with mode: 0644]
malloc/dynarray_finalize.c [new file with mode: 0644]
malloc/dynarray_resize.c [new file with mode: 0644]
malloc/dynarray_resize_clear.c [new file with mode: 0644]
malloc/tst-dynarray-at-fail.c [new file with mode: 0644]
malloc/tst-dynarray-fail.c [new file with mode: 0644]
malloc/tst-dynarray-shared.h [new file with mode: 0644]
malloc/tst-dynarray.c [new file with mode: 0644]
support/Makefile
support/capture_subprocess.h [new file with mode: 0644]
support/support_capture_subprocess.c [new file with mode: 0644]
support/tst-support_capture_subprocess.c [new file with mode: 0644]
support/xdup2.c [new file with mode: 0644]
support/xpipe.c [new file with mode: 0644]
support/xunistd.h