Updates
authorMatthias Clasen <mclasen@redhat.com>
Mon, 5 Dec 2005 06:01:10 +0000 (06:01 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 5 Dec 2005 06:01:10 +0000 (06:01 +0000)
2005-12-05  Matthias Clasen  <mclasen@redhat.com>

* gobject/tmpl/generic_values.sgml:
* glib/tmpl/trees-nary.sgml:
* glib/tmpl/linked_lists_double.sgml:
* glib/tmpl/linked_lists_single.sgml:
* glib/tmpl/memory_chunks.sgml:
* glib/tmpl/allocators.sgml:
* glib/tmpl/macros_misc.sgml: Updates

* glib/Makefile.am: Ignore gmirroringtable.h

docs/reference/ChangeLog
docs/reference/glib/tmpl/allocators.sgml
docs/reference/glib/tmpl/linked_lists_double.sgml
docs/reference/glib/tmpl/linked_lists_single.sgml
docs/reference/glib/tmpl/macros_misc.sgml
docs/reference/glib/tmpl/trees-nary.sgml
docs/reference/gobject/tmpl/generic_values.sgml

index e8a73bbd9116852f4ec0d2711f707ee64ac091bb..3fad98111e83234d9da5b8e1fd00f0f99792e320 100644 (file)
@@ -1,5 +1,13 @@
 2005-12-05  Matthias Clasen  <mclasen@redhat.com>
 
+       * gobject/tmpl/generic_values.sgml: 
+       * glib/tmpl/trees-nary.sgml: 
+       * glib/tmpl/linked_lists_double.sgml: 
+       * glib/tmpl/linked_lists_single.sgml: 
+       * glib/tmpl/memory_chunks.sgml: 
+       * glib/tmpl/allocators.sgml: 
+       * glib/tmpl/macros_misc.sgml: Updates 
+
        * glib/Makefile.am: Ignore gmirroringtable.h
 
 2005-12-04  Matthias Clasen  <mclasen@redhat.com>
index 54eb60bbbfde432e1e591aecaca5464be28df75b..4c17583aedd6ad89758e799ba6edc2696d89fef6 100644 (file)
@@ -2,31 +2,16 @@
 Memory Allocators
 
 <!-- ##### SECTION Short_Description ##### -->
-allocates chunks of memory for #GList, #GSList and #GNode.
+deprecated way to allocate chunks of memory for #GList, #GSList and #GNode.
 
 <!-- ##### SECTION Long_Description ##### -->
 <para>
-The #GAllocator is used as an efficient way to allocate small pieces of
-memory for use with the #GList, #GSList and #GNode data structures.
-It uses a #GMemChunk so elements are allocated in groups, rather than
-individually.
 </para>
 <para>
-The #GList, #GSList and #GNode implementations create default #GAllocator
-objects, which are probably sufficient for most purposes. These default
-allocators use blocks of 128 elements.
-</para>
-<para>
-To use your own #GAllocator, create it with g_allocator_new(). Then
-use g_list_push_allocator(), g_slist_push_allocator() or
-g_node_push_allocator() before any code which allocates new #GList, #GSList
-or #GNode elements respectively. After allocating the new elements, you must
-use g_list_pop_allocator(), g_slist_pop_allocator() or g_node_pop_allocator()
-to restore the previous allocators.
-</para>
-<para>
-Note that you cannot use the same allocator for #GList, #GSList and #GNode
-elements. Each must use separate allocators.
+Prior to 2.10, #GAllocator was used as an efficient way to allocate 
+small pieces of memory for use with the #GList, #GSList and #GNode data 
+structures. Since 2.10, it has been completely replaced by the 
+<link linkend="glib-Memory-Slices">slice allocator</link> and deprecated.
 </para>
 
 <!-- ##### SECTION See_Also ##### -->
@@ -39,8 +24,8 @@ elements. Each must use separate allocators.
 
 <!-- ##### STRUCT GAllocator ##### -->
 <para>
-The <structname>GAllocator</structname> struct contains private data. and should only be accessed
-using the following functions.
+The <structname>GAllocator</structname> struct contains private data. and 
+should only be accessed using the following functions.
 </para>
 
 
@@ -56,6 +41,8 @@ Larger blocks mean less calls to g_malloc(), but some memory may be wasted.
 (GLib uses 128 elements per block by default.) The value must be between 1
 and 65535.
 @Returns: a new #GAllocator.
+@Deprecated: Use the <link linkend="glib-Memory-Slices">slice allocator</link>
+instead
 
 
 <!-- ##### FUNCTION g_allocator_free ##### -->
@@ -64,5 +51,7 @@ Frees all of the memory allocated by the #GAllocator.
 </para>
 
 @allocator: a #GAllocator.
+@Deprecated: Use the <link linkend="glib-Memory-Slices">slice allocator</link>
+instead
 
 
index 4500af9aae67b1f6a1b54cd812a858ca56a20539..b33c3d6925126f5604faef1a4da1acbc9c2e3e70 100644 (file)
@@ -25,8 +25,9 @@ of the
 or simply pointers to any type of data.
 </para>
 <para>
-List elements are allocated in blocks using a #GAllocator, which is
-more efficient than allocating elements individually.
+List elements are allocated from the <link linkend="glib-Memory-Slices">slice
+allocator</link>, which is more efficient than allocating elements 
+individually.
 </para>
 <para>
 Note that most of the #GList functions expect to be passed a pointer to
@@ -224,7 +225,7 @@ the first node matching the given data.
 <!-- ##### FUNCTION g_list_free ##### -->
 <para>
 Frees all of the memory used by a #GList.
-The freed elements are added to the #GAllocator free list.
+The freed elements are returned to the slice allocator.
 </para>
 <note>
 <para>
@@ -501,6 +502,8 @@ with <option>--disable-mem-pools</option>
 </para>
 
 @allocator: the #GAllocator to use when allocating #GList elements.
+@Deprecated: Since 2.10, it does nothing, since #GList has been
+converted to the <link linkend="glib-Memory-Slices">slice allocator</link>
 
 
 <!-- ##### FUNCTION g_list_pop_allocator ##### -->
@@ -512,5 +515,8 @@ Note that this function is not available if GLib has been compiled
 with <option>--disable-mem-pools</option>
 </para>
 
+@Deprecated: Since 2.10, it does nothing, since #GList has been
+converted to the <link linkend="glib-Memory-Slices">slice allocator</link>
+
 
 
index 3cf50d27b4eb6b7335de0acd450a44ab0f40f98f..e66227435b1352edd065dcfdbf80682b2227ea48 100644 (file)
@@ -25,8 +25,9 @@ of the
 or simply pointers to any type of data.
 </para>
 <para>
-List elements are allocated in blocks using a #GAllocator, which is
-more efficient than allocating elements individually.
+List elements are allocated from the <link linkend="glib-Memory-Slices">slice
+allocator</link>, which is more efficient than allocating elements 
+individually.
 </para>
 <para>
 Note that most of the #GSList functions expect to be passed a pointer to
@@ -232,7 +233,7 @@ the first node matching the given data.
 <!-- ##### FUNCTION g_slist_free ##### -->
 <para>
 Frees all of the memory used by a #GSList.
-The freed elements are added to the #GAllocator free list.
+The freed elements are returned to the slice allocator.
 </para>
 
 @list: a #GSList.
@@ -247,13 +248,14 @@ It is usually used after g_slist_remove_link().
 @list: a #GSList element.
 
 
-<!-- ##### FUNCTION g_slist_free1 ##### -->
+<!-- ##### MACRO g_slist_free1 ##### -->
 <para>
 A macro which does the same as g_slist_free_1().
 </para>
 
 @Since: 2.10
 
+
 <!-- ##### FUNCTION g_slist_length ##### -->
 <para>
 Gets the number of elements in a #GSList.
@@ -431,9 +433,9 @@ Note that this function is not available if GLib has been compiled
 with <option>--disable-mem-pools</option>
 </para>
 
-@dummy: 
-<!-- # Unused Parameters # -->
-@allocator: the #GAllocator to use when allocating #GSList elements.
+@dummy: the #GAllocator to use when allocating #GSList elements.
+@Deprecated: Since 2.10, it does nothing, since #GSList has been
+converted to the <link linkend="glib-Memory-Slices">slice allocator</link>
 
 
 <!-- ##### FUNCTION g_slist_pop_allocator ##### -->
@@ -445,5 +447,8 @@ Note that this function is not available if GLib has been compiled
 with <option>--disable-mem-pools</option>
 </para>
 
+@Deprecated: Since 2.10, it does nothing, since #GSList has been
+converted to the <link linkend="glib-Memory-Slices">slice allocator</link>
+
 
 
index 38e97c26c95b5029dccdbf411bd9643abbe1c62d..08871ee3e1eafaf27d470826f125d7a06091340f 100644 (file)
@@ -250,6 +250,7 @@ See the GNU C documentation for details.
 Since: 2.8
 
 
+
 <!-- ##### MACRO G_GNUC_WARN_UNUSED_RESULT ##### -->
 <para>
 Expands to the GNU C <literal>warn_unused_ersult</literal> function attribute 
@@ -258,7 +259,8 @@ attribute makes the compiler emit a warning if the result of a function call
 is ignored. See the GNU C documentation for details. 
 </para>
 
-Since: 2.10
+@Since: 2.10
+
 
 
 <!-- ##### MACRO G_GNUC_FUNCTION ##### -->
index 041dfdcece7dcd7dfc146881497ce12fc32b91be..aafa0e4caa3d0557a2b79260d0ed6cd334dc5e94 100644 (file)
@@ -527,9 +527,9 @@ Note that this function is not available if GLib has been compiled
 with <option>--disable-mem-pools</option>
 </para>
 
-@dummy: 
-<!-- # Unused Parameters # -->
-@allocator: the #GAllocator to use when allocating #GNode elements.
+@dummy: the #GAllocator to use when allocating #GNode elements.
+@Deprecated: Since 2.10, it does nothing, since #GNode has been
+converted to the <link linkend="glib-Memory-Slices">slice allocator</link>
 
 
 <!-- ##### FUNCTION g_node_pop_allocator ##### -->
@@ -541,5 +541,7 @@ Note that this function is not available if GLib has been compiled
 with <option>--disable-mem-pools</option>
 </para>
 
+@Deprecated: Since 2.10, it does nothing, since #GNode has been
+converted to the <link linkend="glib-Memory-Slices">slice allocator</link>
 
 
index 10ddb6ccf3d57166aa294337d22568c0b2a73695..ec254f4e5aa878c4482de1d642c06828ec928ded 100644 (file)
@@ -163,7 +163,7 @@ value_table's collect_value() function.
 </para>
 
 @value: An initialized #GValue structure.
-@instance: 
+@instance: the instance
 
 
 <!-- ##### FUNCTION g_value_fits_pointer ##### -->