Protect the the various push/pop allocator functions by #ifndef
authorMatthias Clasen <mclasen@redhat.com>
Thu, 2 Dec 2004 15:28:30 +0000 (15:28 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 2 Dec 2004 15:28:30 +0000 (15:28 +0000)
2004-12-02  Matthias Clasen  <mclasen@redhat.com>

* glib/glib.symbols: Protect the the various push/pop allocator
functions by #ifndef DISABLE_MEM_POOLS.  (#160215, Frederic Crozat)

* glib/makegalias.pl: Support #ifndef'ed sections.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/glib.symbols
glib/makegalias.pl

index 39dc772..df473e7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2004-12-02  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/glib.symbols: Protect the the various push/pop allocator
+       functions by #ifndef DISABLE_MEM_POOLS.  (#160215, Frederic Crozat)
+
+       * glib/makegalias.pl: Support #ifndef'ed sections.
+
        * glib/gutils.c (g_get_system_config_dirs): Don't forget to 
        initialize g_system_config_dirs.  (#160213, Frederic Crozat)
 
index 39dc772..df473e7 100644 (file)
@@ -1,5 +1,10 @@
 2004-12-02  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/glib.symbols: Protect the the various push/pop allocator
+       functions by #ifndef DISABLE_MEM_POOLS.  (#160215, Frederic Crozat)
+
+       * glib/makegalias.pl: Support #ifndef'ed sections.
+
        * glib/gutils.c (g_get_system_config_dirs): Don't forget to 
        initialize g_system_config_dirs.  (#160213, Frederic Crozat)
 
index 39dc772..df473e7 100644 (file)
@@ -1,5 +1,10 @@
 2004-12-02  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/glib.symbols: Protect the the various push/pop allocator
+       functions by #ifndef DISABLE_MEM_POOLS.  (#160215, Frederic Crozat)
+
+       * glib/makegalias.pl: Support #ifndef'ed sections.
+
        * glib/gutils.c (g_get_system_config_dirs): Don't forget to 
        initialize g_system_config_dirs.  (#160213, Frederic Crozat)
 
index 39dc772..df473e7 100644 (file)
@@ -1,5 +1,10 @@
 2004-12-02  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/glib.symbols: Protect the the various push/pop allocator
+       functions by #ifndef DISABLE_MEM_POOLS.  (#160215, Frederic Crozat)
+
+       * glib/makegalias.pl: Support #ifndef'ed sections.
+
        * glib/gutils.c (g_get_system_config_dirs): Don't forget to 
        initialize g_system_config_dirs.  (#160213, Frederic Crozat)
 
index 39dc772..df473e7 100644 (file)
@@ -1,5 +1,10 @@
 2004-12-02  Matthias Clasen  <mclasen@redhat.com>
 
+       * glib/glib.symbols: Protect the the various push/pop allocator
+       functions by #ifndef DISABLE_MEM_POOLS.  (#160215, Frederic Crozat)
+
+       * glib/makegalias.pl: Support #ifndef'ed sections.
+
        * glib/gutils.c (g_get_system_config_dirs): Don't forget to 
        initialize g_system_config_dirs.  (#160213, Frederic Crozat)
 
index 0c3eb93..67c6b83 100644 (file)
@@ -379,10 +379,12 @@ g_list_length
 g_list_nth
 g_list_nth_data
 g_list_nth_prev
+#ifndef DISABLE_MEM_POOLS
 g_list_pop_allocator
+g_list_push_allocator
+#endif
 g_list_position
 g_list_prepend
-g_list_push_allocator
 g_list_remove
 g_list_remove_all
 g_list_remove_link
@@ -481,9 +483,11 @@ g_node_n_children
 g_node_new
 g_node_n_nodes
 g_node_nth_child
+#ifndef DISABLE_MEM_POOLS
 g_node_pop_allocator
-g_node_prepend
 g_node_push_allocator
+#endif
+g_node_prepend
 g_node_reverse_children
 g_node_traverse
 g_node_unlink
@@ -660,10 +664,12 @@ g_slist_last
 g_slist_length
 g_slist_nth
 g_slist_nth_data
+#ifndef DISABLE_MEM_POOLS
 g_slist_pop_allocator
+g_slist_push_allocator
+#endif
 g_slist_position
 g_slist_prepend
-g_slist_push_allocator
 g_slist_remove
 g_slist_remove_all
 g_slist_remove_link
index 786232b..daa6769 100755 (executable)
@@ -70,7 +70,7 @@ while (<>) {
       next;
   }
 
-  if ($_ =~ /^\#ifdef\s+G/)
+  if ($_ =~ /^\#ifn?def\s+(G|DISABLE_MEM_POOLS)/)
   {
       print $_;