summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cpque.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-12-31 09:41:24 +0100
committerTyge Løvset <[email protected]>2022-12-31 09:41:24 +0100
commit91e79fc60713c1f09e940a7ee83ff2f8aa4f9d69 (patch)
treeb2f1eb8fef010ec490efcf0fb420b218ad23a4dd /include/stc/cpque.h
parent89de800ff2e0a8389359a8a7a2684edaae8ce742 (diff)
downloadSTC-modified-91e79fc60713c1f09e940a7ee83ff2f8aa4f9d69.tar.gz
STC-modified-91e79fc60713c1f09e940a7ee83ff2f8aa4f9d69.zip
Internally renamed ccommon.h macros to uppercase. Lowercase macros are still supported via include/stc/priv/lowcase.h.
Diffstat (limited to 'include/stc/cpque.h')
-rw-r--r--include/stc/cpque.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stc/cpque.h b/include/stc/cpque.h
index c1e7c13b..7f4bb588 100644
--- a/include/stc/cpque.h
+++ b/include/stc/cpque.h
@@ -49,7 +49,7 @@ STC_INLINE _cx_self _cx_memb(_init)(void)
STC_INLINE bool _cx_memb(_reserve)(_cx_self* self, const size_t cap) {
if (cap != self->_len && cap <= self->_cap) return true;
- _cx_value *d = (_cx_value *)c_realloc(self->data, cap*sizeof *d);
+ _cx_value *d = (_cx_value *)c_REALLOC(self->data, cap*sizeof *d);
return d ? (self->data = d, self->_cap = cap, true) : false;
}
@@ -73,7 +73,7 @@ STC_INLINE void _cx_memb(_clear)(_cx_self* self) {
}
STC_INLINE void _cx_memb(_drop)(_cx_self* self)
- { _cx_memb(_clear)(self); c_free(self->data); }
+ { _cx_memb(_clear)(self); c_FREE(self->data); }
STC_INLINE size_t _cx_memb(_size)(const _cx_self* q)
{ return q->_len; }