summaryrefslogtreecommitdiffhomepage
path: root/examples/stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/stack.c')
-rw-r--r--examples/stack.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/stack.c b/examples/stack.c
index 7ae53e0f..89987b7b 100644
--- a/examples/stack.c
+++ b/examples/stack.c
@@ -1,12 +1,14 @@
#include <stdio.h>
#include <stc/cstr.h>
+
+#define i_tag i
+#define i_val int
#include <stc/cstack.h>
-using_cvec(i, int);
-using_cvec(c, char);
-using_cstack(i, cvec_i);
-using_cstack(c, cvec_c);
+#define i_tag c
+#define i_val char
+#include <stc/cstack.h>
int main() {
cstack_i stack = cstack_i_init();