Re: [PATCH 1/5] 9pfs: introduce P9Array

2021-10-01 Thread Christian Schoenebeck
On Freitag, 1. Oktober 2021 17:16:47 CEST Daniel P. Berrangé wrote: > On Fri, Oct 01, 2021 at 04:26:17PM +0200, Christian Schoenebeck wrote: > > Implements deep auto free of arrays while retaining common C-style > > squared bracket access. Main purpose of this API is to get rid of > > error prone i

Re: [PATCH 1/5] 9pfs: introduce P9Array

2021-10-01 Thread Daniel P . Berrangé
On Fri, Oct 01, 2021 at 04:26:17PM +0200, Christian Schoenebeck wrote: > Implements deep auto free of arrays while retaining common C-style > squared bracket access. Main purpose of this API is to get rid of > error prone individual array deallocation pathes in user code, i.e. > turning something l

[PATCH 1/5] 9pfs: introduce P9Array

2021-10-01 Thread Christian Schoenebeck
Implements deep auto free of arrays while retaining common C-style squared bracket access. Main purpose of this API is to get rid of error prone individual array deallocation pathes in user code, i.e. turning something like this: void doSomething(size_t n) { Foo *foos = malloc(n * sizeof(F