summaryrefslogtreecommitdiffhomepage
path: root/stc/cstack.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-09-03 12:59:41 +0200
committerTyge Løvset <[email protected]>2020-09-03 12:59:41 +0200
commita4e2ee22fd57665d2388d5debc17db896a4a389f (patch)
tree6a3a88772cd9d3b604f9def4c0579ed941983f61 /stc/cstack.h
parentaaa3d7f6a107a668b1f24d8ed061fe74237d9883 (diff)
downloadSTC-modified-a4e2ee22fd57665d2388d5debc17db896a4a389f.tar.gz
STC-modified-a4e2ee22fd57665d2388d5debc17db896a4a389f.zip
Changed constant <container>_init to <container>_ini to avoid conflict with <container>_init() method.
Reverted name cprique back to cpqueue.
Diffstat (limited to 'stc/cstack.h')
-rw-r--r--stc/cstack.h4
1 files changed, 2 insertions, 2 deletions
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);} \