Displaying 5 results from an estimated 5 matches for "_extend".
Did you mean:
extend
2020 Apr 15
1
Re: [PATCH nbdkit 1/9] common: Add a generic implementation of vectors.
.../* Number of items allocated. */ \
> + }; \
> + typedef struct name name; \
> + static inline int \
> + name##_extend (name *v, size_t n) \
> + { \
> + return generic_vector_extend ((struct generic_vector *)v, n, \
> + sizeof (type)); \
&...
2020 Apr 15
0
[PATCH nbdkit 1/9] common: Add a generic implementation of vectors.
..._t alloc; /* Number of items allocated. */ \
+ }; \
+ typedef struct name name; \
+ static inline int \
+ name##_extend (name *v, size_t n) \
+ { \
+ return generic_vector_extend ((struct generic_vector *)v, n, \
+ sizeof (type)); \
+ }...
2020 Apr 15
18
[PATCH nbdkit 0/9] Generic vector, and pass $nbdkit_stdio_safe to shell scripts.
This was a rather longer trip around the houses than I anticipated!
The basic purpose of the patch series is to set $nbdkit_stdio_safe to
"0" or "1" in sh and eval plugin scripts.
To do that, I ended up adding a nicer way to manipulate environ lists,
and to do that, I ended up adding a whole generic vector
implementation which is applicable in a lot of different places.
2020 Apr 19
0
[PATCH nbdkit 2/2] Add insert function and use the new vector library in several places.
...ndef NBDKIT_VECTOR_H
#define NBDKIT_VECTOR_H
#include <assert.h>
+#include <string.h>
#define DEFINE_VECTOR_TYPE(name, type) \
struct name { \
@@ -55,15 +57,23 @@
return generic_vector_extend ((struct generic_vector *)v, n, \
sizeof (type)); \
} \
+ /* Insert at i'th element. i=0 => beginning i=size => append */ \
static inline int...
2020 Apr 19
2
[PATCH nbdkit 1/2] vddk: Use new vector library to allocate the argv list.
---
plugins/vddk/vddk.c | 41 +++++++++++++++++++++++++----------------
TODO | 1 -
2 files changed, 25 insertions(+), 17 deletions(-)
diff --git a/plugins/vddk/vddk.c b/plugins/vddk/vddk.c
index 87c0d146..d1a3015f 100644
--- a/plugins/vddk/vddk.c
+++ b/plugins/vddk/vddk.c
@@ -51,6 +51,7 @@
#include "isaligned.h"
#include "minmax.h"
#include