Displaying 2 results from an estimated 2 matches for "14ffc7ff".
2020 Apr 15
0
[PATCH nbdkit 7/9] common/utils: Add CLEANUP_FREE_STRING_LIST macro.
This automatically frees an argv-style list of strings, such as a copy
of environ.
---
common/utils/cleanup.h | 3 +++
common/utils/cleanup.c | 13 +++++++++++++
2 files changed, 16 insertions(+)
diff --git a/common/utils/cleanup.h b/common/utils/cleanup.h
index 7070290d..14ffc7ff 100644
--- a/common/utils/cleanup.h
+++ b/common/utils/cleanup.h
@@ -40,6 +40,9 @@
extern void cleanup_free (void *ptr);
#define CLEANUP_FREE __attribute__((cleanup (cleanup_free)))
+extern void cleanup_free_string_list (char ***ptr);
+#define CLEANUP_FREE_STRING_LIST __attribute__((cleanup (cl...
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.