summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cpque.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-01-31 13:26:04 +0100
committerTyge Løvset <[email protected]>2023-01-31 13:41:33 +0100
commita24ecd6bbfffc2e0b75b8ed48fcb5306d367ad3e (patch)
treea9231182b09e139af14920dc6701dded80761793 /include/stc/cpque.h
parent5bbcae2a3add163ea3b7a91d65fda6836c18f410 (diff)
downloadSTC-modified-a24ecd6bbfffc2e0b75b8ed48fcb5306d367ad3e.tar.gz
STC-modified-a24ecd6bbfffc2e0b75b8ed48fcb5306d367ad3e.zip
Reverted c_MALLOC, c_CALLOC, c_REALLOC and c_FREE to lowercase.
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 8bb70216..59419f16 100644
--- a/include/stc/cpque.h
+++ b/include/stc/cpque.h
@@ -55,7 +55,7 @@ STC_INLINE _cx_self _cx_memb(_from_n)(const _cx_raw* raw, size_t n)
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;
}
@@ -79,7 +79,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; }