mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 07:38:54 +02:00
Add a note about double indirection in g_ptr_array_sort[_with_data]().
2003-07-18 Matthias Clasen <maclas@gmx.de> * glib/tmpl/arrays_pointer.sgml: Add a note about double indirection in g_ptr_array_sort[_with_data](). (#113697, Owen Taylor)
This commit is contained in:
committed by
Matthias Clasen
parent
686c2b540d
commit
27da11aa5a
@@ -1,3 +1,8 @@
|
|||||||
|
2003-07-18 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/tmpl/arrays_pointer.sgml: Add a note about double indirection in
|
||||||
|
g_ptr_array_sort[_with_data](). (#113697, Owen Taylor)
|
||||||
|
|
||||||
2003-07-12 Matthias Clasen <maclas@gmx.de>
|
2003-07-12 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* glib/tmpl/string_utils.sgml: Add a paragraph about string precision, add links to it.
|
* glib/tmpl/string_utils.sgml: Add a paragraph about string precision, add links to it.
|
||||||
|
@@ -161,6 +161,10 @@ Sorts the array, using @compare_func which should be a <function>qsort()</functi
|
|||||||
function (returns -1 for first arg is less than second arg, 0 for equal, 1 if
|
function (returns -1 for first arg is less than second arg, 0 for equal, 1 if
|
||||||
first arg is greater than second arg).
|
first arg is greater than second arg).
|
||||||
</para>
|
</para>
|
||||||
|
<note><para>
|
||||||
|
The comparison function for g_ptr_array_sort() doesn't take the pointers from the array as arguments,
|
||||||
|
it takes pointers to the pointers in the array.
|
||||||
|
</para></note>
|
||||||
|
|
||||||
@array: a #GPtrArray.
|
@array: a #GPtrArray.
|
||||||
@compare_func: comparison function.
|
@compare_func: comparison function.
|
||||||
@@ -170,6 +174,10 @@ first arg is greater than second arg).
|
|||||||
<para>
|
<para>
|
||||||
Like g_ptr_array_sort(), but the comparison function has a user data argument.
|
Like g_ptr_array_sort(), but the comparison function has a user data argument.
|
||||||
</para>
|
</para>
|
||||||
|
<note><para>
|
||||||
|
The comparison function for g_ptr_array_sort_with_data() doesn't take the pointers from the array as arguments,
|
||||||
|
it takes pointers to the pointers in the array.
|
||||||
|
</para></note>
|
||||||
|
|
||||||
@array: a #GPtrArray.
|
@array: a #GPtrArray.
|
||||||
@compare_func: comparison function.
|
@compare_func: comparison function.
|
||||||
|
Reference in New Issue
Block a user