Displaying 4 results from an estimated 4 matches for "string_vector_insert".
2023 Mar 28
1
[nbdkit PATCH 1/2] common/utils: document empty_vector compound literal assignment
...d ?.len = 0?.
*
* DEFINE_VECTOR_TYPE also defines utility functions. For the full
* list see the definition below, but useful functions include:
*
* ?name?_append (eg. ?string_vector_append?)
* - Append a new element at the end. This operation is cheap.
*
* ?name?_insert (eg. ?string_vector_insert?)
* - Insert a new element at the beginning, middle or end. This
* operation is more expensive because existing elements may need
2023 Mar 28
3
[nbdkit PATCH 0/2] various
I originally meant to post only the "vector.h" patch, but then
(independently) nbdkit wouldn't build. Hence the other (rust plugin)
patch.
Laszlo
Laszlo Ersek (2):
common/utils: document empty_vector compound literal assignment
plugins/rust: restrict predicates-{tree,core} to {1.0.7,1.0.5}
common/utils/vector.h | 8 +++++++-
plugins/rust/Cargo.toml | 2 ++
2 files changed,
2020 Oct 27
0
[PATCH libnbd 1/5] common/utils: Copy simple vector library from nbdkit.
...‘.size = 0’.
+ *
+ * DEFINE_VECTOR_TYPE also defines utility functions. For the full
+ * list see the definition below, but useful functions include:
+ *
+ * ‘name’_append (eg. ‘string_vector_append’)
+ * - Append a new element at the end. This operation is cheap.
+ *
+ * ‘name’_insert (eg. ‘string_vector_insert’)
+ * - Insert a new element at the beginning, middle or end. This
+ * operation is more expensive because existing elements may need
+ * to be copied around.
+ *
+ * Both functions extend the vector if required, and so both may fail
+ * (returning -1) which you must check for.
+ */
+#de...
2020 Oct 27
6
[PATCH libnbd 0/5] info: --map: Coalesce adjacent extents of the same type.
This adds coalescing of adjacent extents of the same type, as
mentioned by Eric Blake in the commit message here:
https://github.com/libguestfs/libnbd/commit/46072f6611f80245846a445766da071e457b00cd
The patch series is rather long because it detours through adding the
<vector.h> library from nbdkit into libnbd and replacing ad hoc uses
of realloc, char ** etc in various places.
Rich.