mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 22:16:16 +01: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:
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>
|
||||
|
||||
* 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
|
||||
first arg is greater than second arg).
|
||||
</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.
|
||||
@compare_func: comparison function.
|
||||
@ -170,6 +174,10 @@ first arg is greater than second arg).
|
||||
<para>
|
||||
Like g_ptr_array_sort(), but the comparison function has a user data argument.
|
||||
</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.
|
||||
@compare_func: comparison function.
|
||||
|
Loading…
Reference in New Issue
Block a user