[glib] gslist: Document that g_slist_sort() is stable
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gslist: Document that g_slist_sort() is stable
- Date: Tue, 28 Nov 2017 14:11:48 +0000 (UTC)
commit 74cbd6c34f56634c3d9d25395e4bea322fc37d47
Author: Philip Withnall <withnall endlessm com>
Date: Thu Nov 16 10:27:37 2017 +0000
gslist: Document that g_slist_sort() is stable
Signed-off-by: Philip Withnall <withnall endlessm com>
https://bugzilla.gnome.org/show_bug.cgi?id=508976
glib/gslist.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/glib/gslist.c b/glib/gslist.c
index bc29b41..7a24fb6 100644
--- a/glib/gslist.c
+++ b/glib/gslist.c
@@ -1034,7 +1034,8 @@ g_slist_sort_real (GSList *list,
* first element comes before the second, or a positive value if
* the first element comes after the second.
*
- * Sorts a #GSList using the given comparison function.
+ * Sorts a #GSList using the given comparison function. The algorithm
+ * used is a stable sort.
*
* Returns: the start of the sorted #GSList
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]