diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-11-28 23:10:38 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-11-28 23:10:38 -0500 |
commit | 05f9fe66c0b1248f75fdc96b346e40f66c6976c7 (patch) | |
tree | 7ab8268154fd760faca6bc50defdf8d85e84fdff /libdimension/dimension/list.h | |
parent | b3e10e1f5b8b0f2dea64debe41b96872beee8e97 (diff) | |
download | dimension-05f9fe66c0b1248f75fdc96b346e40f66c6976c7.tar.xz |
Fix constness for dmnsn_list_comparator_fn.
Diffstat (limited to 'libdimension/dimension/list.h')
-rw-r--r-- | libdimension/dimension/list.h | 11 |
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. |