summaryrefslogtreecommitdiffhomepage
path: root/include/stc/clist.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-09-02 23:45:11 +0200
committerTyge Løvset <[email protected]>2022-09-02 23:45:11 +0200
commit491a8cba3ee55a1200fc2de8ef3807dd8436f829 (patch)
treef877ef241836ca369561cf62d2db465ef3cbeca0 /include/stc/clist.h
parenta2a18a52df4fc10ad453eba7cdfbe2d02a026f0b (diff)
downloadSTC-modified-491a8cba3ee55a1200fc2de8ef3807dd8436f829.tar.gz
STC-modified-491a8cba3ee55a1200fc2de8ef3807dd8436f829.zip
Change: carc and cbox defaults to pointer comparison when none of i_cmp, i_less or i_eq is specified. This removes annoying requirement.
Diffstat (limited to 'include/stc/clist.h')
-rw-r--r--include/stc/clist.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/stc/clist.h b/include/stc/clist.h
index 5b9cf0d3..7e47f7b7 100644
--- a/include/stc/clist.h
+++ b/include/stc/clist.h
@@ -101,7 +101,7 @@ STC_API _cx_value* _cx_memb(_push_node_front)(_cx_self* self, _cx_node* nod
STC_API _cx_iter _cx_memb(_insert_at)(_cx_self* self, _cx_iter it, i_key value);
STC_API _cx_iter _cx_memb(_erase_at)(_cx_self* self, _cx_iter it);
STC_API _cx_iter _cx_memb(_erase_range)(_cx_self* self, _cx_iter it1, _cx_iter it2);
-#if !c_option(c_no_cmp)
+#if !defined _i_no_cmp
STC_API size_t _cx_memb(_remove)(_cx_self* self, _cx_raw val);
STC_API _cx_iter _cx_memb(_find_in)(_cx_iter it1, _cx_iter it2, _cx_raw val);
STC_API int _cx_memb(_value_cmp)(const _cx_value* x, const _cx_value* y);
@@ -181,7 +181,7 @@ _cx_memb(_splice_range)(_cx_self* self, _cx_iter it,
return _cx_memb(_splice)(self, it, &tmp);
}
-#if !c_option(c_no_cmp)
+#if !defined _i_no_cmp
STC_INLINE _cx_iter
_cx_memb(_find)(const _cx_self* self, _cx_raw val) {
return _cx_memb(_find_in)(_cx_memb(_begin)(self), _cx_memb(_end)(self), val);
@@ -378,7 +378,7 @@ _cx_memb(_split_off)(_cx_self* self, _cx_iter it1, _cx_iter it2) {
return cx;
}
-#if !c_option(c_no_cmp)
+#if !defined _i_no_cmp
STC_DEF _cx_iter
_cx_memb(_find_in)(_cx_iter it1, _cx_iter it2, _cx_raw val) {