[glib/wip/gcleanup: 32/78] gobject: Define a cleanup scope for libgobject



commit cc55f24e317cd832db752e2be0a2913aed96bad4
Author: Stef Walter <stefw gnome org>
Date:   Sun Nov 10 14:50:45 2013 +0100

    gobject: Define a cleanup scope for libgobject
    
    https://bugzilla.gnome.org/show_bug.cgi?id=711778

 gobject/Makefile.am |    1 +
 gobject/gobject.c   |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gobject/Makefile.am b/gobject/Makefile.am
index 1509616..c27652f 100644
--- a/gobject/Makefile.am
+++ b/gobject/Makefile.am
@@ -8,6 +8,7 @@ SUBDIRS = . tests
 
 AM_CPPFLAGS =                                  \
        -DG_LOG_DOMAIN=\"GLib-GObject\"         \
+       -DG_CLEANUP_SCOPE=gobject_cleanup       \
        $(glib_INCLUDES)                        \
        $(GLIB_DEBUG_FLAGS)                     \
        -DGOBJECT_COMPILATION
diff --git a/gobject/gobject.c b/gobject/gobject.c
index 899fe01..92023ae 100644
--- a/gobject/gobject.c
+++ b/gobject/gobject.c
@@ -100,6 +100,7 @@
  * ]|
  */
 
+G_CLEANUP_DEFINE;
 
 /* --- macros --- */
 #define PARAM_SPEC_PARAM_ID(pspec)             ((pspec)->param_id)


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