summaryrefslogtreecommitdiffhomepage
path: root/examples/stack.c
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 /examples/stack.c
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 'examples/stack.c')
-rw-r--r--examples/stack.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/stack.c b/examples/stack.c
index 321228a2..de30c5b4 100644
--- a/examples/stack.c
+++ b/examples/stack.c
@@ -1,12 +1,15 @@
-#include <stc/cstack.h>
#include <stdio.h>
+#include <stc/cstr.h>
+#include <stc/cstack.h>
declare_cvec(i, int);
declare_cstack(i, cvec_i);
+declare_cstack(c, cstr);
int main() {
cstack_i stack = cstack_i_init();
+ cstack_c chars = cstack_c_init();
for (int i=0; i<100; ++i)
cstack_i_push(&stack, i*i);