summaryrefslogtreecommitdiffhomepage
path: root/stc/cstack.h
diff options
context:
space:
mode:
authortylo <[email protected]>2020-09-08 13:23:09 +0200
committertylo <[email protected]>2020-09-08 13:23:09 +0200
commit1f3545e681a0fa68608760d5ec7b555e41d35c77 (patch)
tree323798c5c2431150a474f7a39cb9c7a741bfc47e /stc/cstack.h
parent708f45220329f4e23b1671cb1b18c37f98232bff (diff)
downloadSTC-modified-1f3545e681a0fa68608760d5ec7b555e41d35c77.tar.gz
STC-modified-1f3545e681a0fa68608760d5ec7b555e41d35c77.zip
changed c_foreach() macro -> Removed cnt_range() methods, and simplified iters.
Diffstat (limited to 'stc/cstack.h')
-rw-r--r--stc/cstack.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/stc/cstack.h b/stc/cstack.h
index a56d99af..6ed6ccb3 100644
--- a/stc/cstack.h
+++ b/stc/cstack.h
@@ -34,10 +34,10 @@
for (int i=0; i<100; ++i)
cstack_i_push(&stack, i*i);
-
+
for (int i=0; i<90; ++i)
cstack_i_pop(&stack);
-
+
printf("top: %d\n", *cstack_i_top(&stack));
}
*/
@@ -82,8 +82,6 @@ STC_INLINE cstack_##X##_iter_t \
cstack_##X##_begin(cstack_##X* self) {return ctype##_begin(self);} \
STC_INLINE cstack_##X##_iter_t \
cstack_##X##_end(cstack_##X* self) {return ctype##_end(self);} \
-STC_INLINE cstack_##X##_iter_t \
-cstack_##X##_range(cstack_##X##_iter_t s, cstack_##X##_iter_t f) {return ctype##_range(s, f);} \
STC_INLINE void \
cstack_##X##_next(cstack_##X##_iter_t* it) {ctype##_next(it);} \
STC_INLINE cstack_##X##_value_t* \