summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/printspan.c
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2023-05-18 11:49:31 +0200
committerTyge Lovset <[email protected]>2023-05-18 11:49:31 +0200
commit50a16934dde8e65bbcf628d6342c1649f7e09365 (patch)
treea14f3347622979858ff60b95630877029cb46ef6 /misc/examples/printspan.c
parentbe7d9913d4a284bdeb7f0431482b5731b5ef31df (diff)
downloadSTC-modified-50a16934dde8e65bbcf628d6342c1649f7e09365.tar.gz
STC-modified-50a16934dde8e65bbcf628d6342c1649f7e09365.zip
Huge update: cqueue and cdeq completely rewritten. cvec and cdeq API harmonized. Docs update/improved.
Diffstat (limited to 'misc/examples/printspan.c')
-rw-r--r--misc/examples/printspan.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/misc/examples/printspan.c b/misc/examples/printspan.c
index 7459ac77..60a2d934 100644
--- a/misc/examples/printspan.c
+++ b/misc/examples/printspan.c
@@ -6,8 +6,6 @@
#include <stc/cvec.h>
#define i_val int
#include <stc/cstack.h>
-#define i_val int
-#include <stc/cdeq.h>
#define i_val_str
#include <stc/csset.h>
#include <stc/cspan.h>
@@ -40,9 +38,6 @@ int main()
cstack_int stk = c_make(cstack_int, {1, 2, 3, 4, 5, 6, 7});
printMe( (intspan)cspan_from(&stk) );
- cdeq_int deq = c_make(cdeq_int, {1, 2, 3, 4, 5, 6, 7, 8});
- printMe( (intspan)cspan_from(&deq) );
-
csset_str set = c_make(csset_str, {"5", "7", "4", "3", "8", "2", "1", "9", "6"});
printf("%d:", (int)csset_str_size(&set));
c_foreach (e, csset_str, set)
@@ -52,6 +47,5 @@ int main()
// cleanup
cvec_int_drop(&vec);
cstack_int_drop(&stk);
- cdeq_int_drop(&deq);
csset_str_drop(&set);
}