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/cstack.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stc/cstack.h') diff --git a/stc/cstack.h b/stc/cstack.h index d90eee4e..5da47719 100644 --- a/stc/cstack.h +++ b/stc/cstack.h @@ -49,7 +49,7 @@ #define declare_cstack(tag, ctype) \ \ -typedef ctype cstack_##tag; \ +typedef struct ctype cstack_##tag; \ typedef ctype##_value_t cstack_##tag##_value_t; \ typedef ctype##_rawvalue_t cstack_##tag##_rawvalue_t; \ typedef ctype##_input_t cstack_##tag##_input_t; \ @@ -73,11 +73,11 @@ STC_INLINE void \ cstack_##tag##_push(cstack_##tag* self, cstack_##tag##_rawvalue_t rawValue) { \ ctype##_push_back(self, rawValue); \ } \ + \ STC_API void \ cstack_##tag##_push_n(cstack_##tag *self, const cstack_##tag##_input_t in[], size_t size) { \ ctype##_push_n(self, in, size); \ } \ - \ typedef ctype##_iter_t cstack_##tag##_iter_t; \ STC_INLINE cstack_##tag##_iter_t \ cstack_##tag##_begin(cstack_##tag* self) {return ctype##_begin(self);} \ -- cgit v1.2.3