diff options
Diffstat (limited to 'misc/archived')
| -rw-r--r-- | misc/archived/csmap.h | 6 | ||||
| -rw-r--r-- | misc/archived/cstr.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/misc/archived/csmap.h b/misc/archived/csmap.h index 5c9fba6b..2daec3b9 100644 --- a/misc/archived/csmap.h +++ b/misc/archived/csmap.h @@ -129,8 +129,8 @@ _cx_memb(_clear)(_cx_self* self) STC_INLINE _cx_raw _cx_memb(_value_toraw)(_cx_value* val) { return _i_SET_ONLY( i_keyto(val) ) - _i_MAP_ONLY( c_INIT(_cx_raw){i_keyto((&val->first)), - i_valto((&val->second))} ); + _i_MAP_ONLY( c_COMPOUND(_cx_raw){i_keyto((&val->first)), + i_valto((&val->second))} ); } STC_INLINE int @@ -470,7 +470,7 @@ _cx_memb(_clone_r_)(_cx_node *tn) { STC_DEF _cx_self _cx_memb(_clone)(_cx_self cx) { - return c_INIT(_cx_self){_cx_memb(_clone_r_)(cx.root), cx.size}; + return c_COMPOUND(_cx_self){_cx_memb(_clone_r_)(cx.root), cx.size}; } #endif // !i_no_clone diff --git a/misc/archived/cstr.h b/misc/archived/cstr.h index e074b6e4..1a5b0da4 100644 --- a/misc/archived/cstr.h +++ b/misc/archived/cstr.h @@ -67,7 +67,7 @@ STC_INLINE cstr cstr_init() { return cstr_NULL; } STC_INLINE const char* cstr_str(const cstr* self) { return self->str; } #define cstr_toraw(self) (self)->str STC_INLINE csview cstr_sv(const cstr* self) - { return c_INIT(csview){self->str, _cstr_p(self)->size}; } + { return c_COMPOUND(csview){self->str, _cstr_p(self)->size}; } #define cstr_lit(literal) \ cstr_from_n(literal, crawstr_len(literal)) STC_INLINE cstr cstr_from(const char* str) @@ -118,7 +118,7 @@ STC_INLINE bool cstr_getline(cstr *self, FILE *stream) STC_INLINE cstr_buf cstr_buffer(cstr* s) { cstr_priv* p = _cstr_p(s); - return c_INIT(cstr_buf){s->str, p->size, p->cap}; + return c_COMPOUND(cstr_buf){s->str, p->size, p->cap}; } STC_INLINE cstr cstr_with_capacity(const size_t cap) { |
