From 99979df6c500dbdea0ea7e202c7076db529d7e42 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Wed, 3 Nov 2021 11:51:10 +0100 Subject: Update container_X_getmut() for mutable version. --- include/stc/cdeq.h | 2 +- include/stc/clist.h | 2 +- include/stc/cmap.h | 2 +- include/stc/csmap.h | 2 +- include/stc/cvec.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/stc/cdeq.h b/include/stc/cdeq.h index 2cdedcd8..4e35a569 100644 --- a/include/stc/cdeq.h +++ b/include/stc/cdeq.h @@ -183,7 +183,7 @@ _cx_memb(_get)(const _cx_self* self, i_valraw raw) { } STC_INLINE _cx_value* -_cx_memb(_mutget)(_cx_self* self, i_valraw raw) +_cx_memb(_getmut)(_cx_self* self, i_valraw raw) { return (_cx_value *) _cx_memb(_get)(self, raw); } STC_INLINE void diff --git a/include/stc/clist.h b/include/stc/clist.h index 5ae56634..93e8c249 100644 --- a/include/stc/clist.h +++ b/include/stc/clist.h @@ -172,7 +172,7 @@ _cx_memb(_get)(const _cx_self* self, i_valraw val) { } STC_INLINE _cx_value* -_cx_memb(_mutget)(_cx_self* self, i_valraw val) { +_cx_memb(_getmut)(_cx_self* self, i_valraw val) { return _cx_memb(_find_in)(_cx_memb(_begin)(self), _cx_memb(_end)(self), val).ref; } diff --git a/include/stc/cmap.h b/include/stc/cmap.h index cccf3199..100f93f6 100644 --- a/include/stc/cmap.h +++ b/include/stc/cmap.h @@ -177,7 +177,7 @@ _cx_memb(_get)(const _cx_self* self, i_keyraw rkey) { } STC_INLINE _cx_value* -_cx_memb(_mutget)(const _cx_self* self, i_keyraw rkey) +_cx_memb(_getmut)(const _cx_self* self, i_keyraw rkey) { return (_cx_value*) _cx_memb(_get)(self, rkey); } STC_INLINE _cx_iter diff --git a/include/stc/csmap.h b/include/stc/csmap.h index 4eedb60d..a42bd030 100644 --- a/include/stc/csmap.h +++ b/include/stc/csmap.h @@ -116,7 +116,7 @@ STC_INLINE bool _cx_memb(_contains)(const _cx_self* self, i_keyraw rkey) { _cx_iter it; return _cx_memb(_find_it)(self, rkey, &it) != NULL; } STC_INLINE const _cx_value* _cx_memb(_get)(const _cx_self* self, i_keyraw rkey) { _cx_iter it; return _cx_memb(_find_it)(self, rkey, &it); } -STC_INLINE _cx_value* _cx_memb(_mutget)(_cx_self* self, i_keyraw rkey) +STC_INLINE _cx_value* _cx_memb(_getmut)(_cx_self* self, i_keyraw rkey) { _cx_iter it; return _cx_memb(_find_it)(self, rkey, &it); } STC_INLINE _cx_self diff --git a/include/stc/cvec.h b/include/stc/cvec.h index 2e1dcd6e..8c213e8a 100644 --- a/include/stc/cvec.h +++ b/include/stc/cvec.h @@ -205,7 +205,7 @@ _cx_memb(_get)(const _cx_self* self, i_valraw raw) { } STC_INLINE _cx_value* -_cx_memb(_mutget)(const _cx_self* self, i_valraw raw) +_cx_memb(_getmut)(const _cx_self* self, i_valraw raw) { return (_cx_value*) _cx_memb(_get)(self, raw); } STC_INLINE _cx_iter -- cgit v1.2.3