summaryrefslogtreecommitdiffhomepage
path: root/stc/cstack.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-01-04 18:25:44 +0100
committerTyge Løvset <[email protected]>2021-01-04 18:25:44 +0100
commita285bfb891ea00df8ab5cbb21f899ce9ced5f460 (patch)
tree28ea8c9fc44ae54a3655751b62d9c77212e1678c /stc/cstack.h
parent8505d9caf2280c0b7486fef9e018befe9d9fcb96 (diff)
downloadSTC-modified-a285bfb891ea00df8ab5cbb21f899ce9ced5f460.tar.gz
STC-modified-a285bfb891ea00df8ab5cbb21f899ce9ced5f460.zip
Simplified: Removed CONTAINER_input_t type, replaced with CONTAINER_rawvalue_t
Diffstat (limited to 'stc/cstack.h')
-rw-r--r--stc/cstack.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/stc/cstack.h b/stc/cstack.h
index 7bf9cfe3..276a577d 100644
--- a/stc/cstack.h
+++ b/stc/cstack.h
@@ -46,11 +46,10 @@
#include "cvec.h"
#define using_cstack(X, ctype) \
-\
typedef ctype##_t cstack_##X; \
typedef ctype##_value_t cstack_##X##_value_t; \
typedef ctype##_rawvalue_t cstack_##X##_rawvalue_t; \
- typedef ctype##_input_t cstack_##X##_input_t; \
+\
STC_INLINE cstack_##X \
cstack_##X##_init(void) {return ctype##_init();} \
STC_INLINE cstack_##X \
@@ -76,8 +75,8 @@
ctype##_emplace_back(self, raw); \
} \
STC_INLINE void \
- cstack_##X##_push_n(cstack_##X *self, const cstack_##X##_input_t in[], size_t size) { \
- ctype##_push_n(self, in, size); \
+ cstack_##X##_push_n(cstack_##X *self, const cstack_##X##_rawvalue_t arr[], size_t size) { \
+ ctype##_push_n(self, arr, size); \
} \
typedef ctype##_iter_t cstack_##X##_iter_t; \
STC_INLINE cstack_##X##_iter_t \