summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension/list.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-11-28 23:10:38 -0500
committerTavian Barnes <tavianator@gmail.com>2010-11-28 23:10:38 -0500
commit05f9fe66c0b1248f75fdc96b346e40f66c6976c7 (patch)
tree7ab8268154fd760faca6bc50defdf8d85e84fdff /libdimension/dimension/list.h
parentb3e10e1f5b8b0f2dea64debe41b96872beee8e97 (diff)
downloaddimension-05f9fe66c0b1248f75fdc96b346e40f66c6976c7.tar.xz
Fix constness for dmnsn_list_comparator_fn.
Diffstat (limited to 'libdimension/dimension/list.h')
-rw-r--r--libdimension/dimension/list.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/libdimension/dimension/list.h b/libdimension/dimension/list.h
index 9d99c9f..5a72f04 100644
--- a/libdimension/dimension/list.h
+++ b/libdimension/dimension/list.h
@@ -331,9 +331,14 @@ dmnsn_list_pop(dmnsn_list *list, void *obj)
*/
dmnsn_list *dmnsn_list_split(dmnsn_list *list);
-/** List object comparator function type. */
-typedef bool dmnsn_list_comparator_fn(dmnsn_list_iterator *l,
- dmnsn_list_iterator *r);
+/**
+ * List object comparator function type.
+ * @param[in] l The first iterator.
+ * @param[in] r The second iterator.
+ * @return Whether \p l < \p r.
+ */
+typedef bool dmnsn_list_comparator_fn(const dmnsn_list_iterator *l,
+ const dmnsn_list_iterator *r);
/**
* Sort a list, with O(n*log(n)) comparisons.