[libgsystem] localalloc: add gs_free_list



commit c7e143cc984998c5dd92d297b7772b5f8b1b3dbd
Author: Thomas Haller <thaller redhat com>
Date:   Tue Jul 15 20:00:07 2014 +0200

    localalloc: add gs_free_list
    
    Signed-off-by: Thomas Haller <thaller redhat com>

 src/gsystem-local-alloc.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gsystem-local-alloc.h b/src/gsystem-local-alloc.h
index 5e91752..ddc8ade 100644
--- a/src/gsystem-local-alloc.h
+++ b/src/gsystem-local-alloc.h
@@ -130,6 +130,13 @@ GS_DEFINE_CLEANUP_FUNCTION(void*, gs_local_free, g_free)
 #define gs_unref_hashtable __attribute__ ((cleanup(gs_local_hashtable_unref)))
 
 /**
+ * gs_free_list:
+ *
+ * Call g_list_free() on a variable location when it goes out
+ * of scope.
+ */
+#define gs_free_list __attribute__ ((cleanup(gs_local_free_list)))
+
  * gs_free_checksum:
  *
  * Call g_checksum_free() on a variable location when it goes out


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]