Displaying 2 results from an estimated 2 matches for "append_one_region".
2020 Apr 15
0
[PATCH nbdkit 4/9] common/regions: Use new vector type to store the list of regions.
...bsearch (&offset, rs->ptr, rs->size,
sizeof (struct region), compare_offset);
}
@@ -86,50 +85,43 @@ find_region (const struct regions *regions, uint64_t offset)
* construct regions out of order using this function.
*/
static int __attribute__((__nonnull__ (1)))
-append_one_region (struct regions *regions, struct region region)
+append_one_region (regions *rs, struct region region)
{
- struct region *p;
-
/* The assertions in this function are meant to maintain the
* invariant about the array as described at the top of this file.
*/
- assert (region.start == vi...
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.