From 1d4ad83d6f3388982cb0aeadbc9815b4776df504 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Mon, 19 Dec 2022 09:04:23 +0100 Subject: Renames: cstr_null => cstr_NULL csview_null => csview_NULL cstr_npos => c_NPOS csview_npos => c_NPOS c_ARGsv(sv) => c_ARGSV(sv) c_init(x) => c_INIT(x) --- include/stc/csmap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/stc/csmap.h') diff --git a/include/stc/csmap.h b/include/stc/csmap.h index 68b69831..5c73294e 100644 --- a/include/stc/csmap.h +++ b/include/stc/csmap.h @@ -144,7 +144,7 @@ _cx_memb(_clear)(_cx_self* self) STC_INLINE _cx_raw _cx_memb(_value_toraw)(const _cx_value* val) { return _i_SET_ONLY( i_keyto(val) ) - _i_MAP_ONLY( c_init(_cx_raw){i_keyto((&val->first)), + _i_MAP_ONLY( c_INIT(_cx_raw){i_keyto((&val->first)), i_valto((&val->second))} ); } @@ -232,7 +232,7 @@ _cx_memb(_reserve)(_cx_self* self, const size_t cap) { _cx_node* nodes = (_cx_node*)c_realloc(self->nodes, (cap + 1)*sizeof(_cx_node)); if (!nodes) return false; - nodes[0] = c_init(_cx_node){{0, 0}, 0}; + nodes[0] = c_INIT(_cx_node){{0, 0}, 0}; self->nodes = nodes; self->cap = (i_size)cap; return true; -- cgit v1.2.3