From a4e2ee22fd57665d2388d5debc17db896a4a389f Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Thu, 3 Sep 2020 12:59:41 +0200 Subject: Changed constant _init to _ini to avoid conflict with _init() method. Reverted name cprique back to cpqueue. --- stc/cqueue.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stc/cqueue.h') diff --git a/stc/cqueue.h b/stc/cqueue.h index 824f70dc..8f9dc698 100644 --- a/stc/cqueue.h +++ b/stc/cqueue.h @@ -60,7 +60,7 @@ #define declare_cqueue(tag, ctype) \ \ -typedef ctype cqueue_##tag; \ +typedef struct ctype cqueue_##tag; \ typedef ctype##_value_t cqueue_##tag##_value_t; \ typedef ctype##_rawvalue_t cqueue_##tag##_rawvalue_t; \ typedef ctype##_input_t cqueue_##tag##_input_t; \ @@ -86,11 +86,11 @@ STC_INLINE void \ cqueue_##tag##_push(cqueue_##tag* self, cqueue_##tag##_rawvalue_t rawValue) { \ ctype##_push_back(self, rawValue); \ } \ + \ STC_API void \ cqueue_##tag##_push_n(cqueue_##tag *self, const cqueue_##tag##_input_t in[], size_t size) { \ ctype##_push_n(self, in, size); \ } \ - \ typedef ctype##_iter_t cqueue_##tag##_iter_t; \ STC_INLINE cqueue_##tag##_iter_t \ cqueue_##tag##_begin(cqueue_##tag* self) {return ctype##_begin(self);} \ -- cgit v1.2.3