summaryrefslogtreecommitdiffhomepage
path: root/examples/stack.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-09-08 21:16:00 +0200
committerTyge Løvset <[email protected]>2021-09-08 21:16:00 +0200
commitc86e3d30299baea44f98f153c4b01ea5e244feaa (patch)
tree7de3a473408bdee0017d8efa452dd5a095b61177 /examples/stack.c
parentb9e58749fb77715f4635a45377350a75ce7e0948 (diff)
downloadSTC-modified-c86e3d30299baea44f98f153c4b01ea5e244feaa.tar.gz
STC-modified-c86e3d30299baea44f98f153c4b01ea5e244feaa.zip
Updated most examples to newstyle. Some changes in cpque/cstack.
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();