summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cbox.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-12-19 09:04:23 +0100
committerTyge Løvset <[email protected]>2022-12-19 09:04:23 +0100
commit1d4ad83d6f3388982cb0aeadbc9815b4776df504 (patch)
tree6d0d389219644b127eaa83c8a54ccd93deef96b7 /include/stc/cbox.h
parent26a75a218a115a10cee82534be568a606c83dbb2 (diff)
downloadSTC-modified-1d4ad83d6f3388982cb0aeadbc9815b4776df504.tar.gz
STC-modified-1d4ad83d6f3388982cb0aeadbc9815b4776df504.zip
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)
Diffstat (limited to 'include/stc/cbox.h')
-rw-r--r--include/stc/cbox.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/stc/cbox.h b/include/stc/cbox.h
index a5e01519..4cbd5f84 100644
--- a/include/stc/cbox.h
+++ b/include/stc/cbox.h
@@ -64,7 +64,7 @@ int main() {
#include <stdlib.h>
#include <string.h>
-#define cbox_null {NULL}
+#define cbox_NULL {NULL}
#endif // CBOX_H_INCLUDED
#ifndef _i_prefix
@@ -79,13 +79,13 @@ _cx_deftypes(_c_cbox_types, _cx_self, i_key);
// constructors (takes ownsership)
STC_INLINE _cx_self _cx_memb(_init)(void)
- { return c_init(_cx_self){NULL}; }
+ { return c_INIT(_cx_self){NULL}; }
STC_INLINE long _cx_memb(_use_count)(const _cx_self* self)
{ return (long)(self->get != NULL); }
STC_INLINE _cx_self _cx_memb(_from_ptr)(_cx_value* p)
- { return c_init(_cx_self){p}; }
+ { return c_INIT(_cx_self){p}; }
// c++: std::make_unique<i_key>(val)
STC_INLINE _cx_self _cx_memb(_make)(_cx_value val) {