Re: [ccan] [PATCH 1/3] darray: Add darray_insert() to insert a value at a specified index

2017-08-29 Thread David Gibson
On Tue, Aug 29, 2017 at 12:08:40PM +0200, Damien Grassart wrote: > This module currently supports removing but not inserting at a > specified index, so this adds that along with some tests. Inserting a > value moves all existing data beyond index over one element. > > Signed-off-by: Damien

[ccan] [PATCH 1/3] darray: Add darray_insert() to insert a value at a specified index

2017-08-29 Thread Damien Grassart
This module currently supports removing but not inserting at a specified index, so this adds that along with some tests. Inserting a value moves all existing data beyond index over one element. Signed-off-by: Damien Grassart --- ccan/darray/darray.h | 7 +++