diff options
| author | Tyge Løvset <[email protected]> | 2023-01-31 13:26:04 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-01-31 13:41:33 +0100 |
| commit | a24ecd6bbfffc2e0b75b8ed48fcb5306d367ad3e (patch) | |
| tree | a9231182b09e139af14920dc6701dded80761793 /include/stc/cpque.h | |
| parent | 5bbcae2a3add163ea3b7a91d65fda6836c18f410 (diff) | |
| download | STC-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.h | 4 |
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; } |
