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

gEDA-cvs: pcb.git: branch: master updated (9cff01352fa7bc35c5f9e9707731aac05ff845f8)



The branch, master has been updated
       via  9cff01352fa7bc35c5f9e9707731aac05ff845f8 (commit)
      from  ff94f74eea190200f08941d362c84777378cf74b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 src/mymem.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)


=================
 Commit Messages
=================

commit 9cff01352fa7bc35c5f9e9707731aac05ff845f8
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    mymem.c: Provide an optional implementation of g_list_free_full ()
    
    This API was only added in GLib 2.28, and it is just a small
    convenience function. If an insufficient GLib version is found,
    provide our own implementation.

:100644 100644 77a2ce2... 1feb2ef... M	src/mymem.c

=========
 Changes
=========

commit 9cff01352fa7bc35c5f9e9707731aac05ff845f8
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    mymem.c: Provide an optional implementation of g_list_free_full ()
    
    This API was only added in GLib 2.28, and it is just a small
    convenience function. If an insufficient GLib version is found,
    provide our own implementation.

diff --git a/src/mymem.c b/src/mymem.c
index 77a2ce2..1feb2ef 100644
--- a/src/mymem.c
+++ b/src/mymem.c
@@ -56,6 +56,17 @@ RCSID ("$Id$");
  */
 static void DSRealloc (DynamicStringTypePtr, size_t);
 
+
+/* This API is quite new, provide a version here */
+#if !GLIB_CHECK_VERSION (2, 28, 0)
+static void
+g_list_free_full (GList *list, GDestroyNotify free_func)
+{
+  g_list_foreach (list, (GFunc) free_func, NULL);
+  g_list_free (list);
+}
+#endif
+
 /* ---------------------------------------------------------------------------
  * get next slot for a rubberband connection, allocates memory if necessary
  */




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs