summaryrefslogtreecommitdiffhomepage
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/examples/smartpointers/arc_containers.c1
-rw-r--r--misc/tests/cspan_test.c4
2 files changed, 2 insertions, 3 deletions
diff --git a/misc/examples/smartpointers/arc_containers.c b/misc/examples/smartpointers/arc_containers.c
index 2fb04c56..6209005d 100644
--- a/misc/examples/smartpointers/arc_containers.c
+++ b/misc/examples/smartpointers/arc_containers.c
@@ -2,7 +2,6 @@
// and demonstrate sharing and cloning of maps.
#define i_implement
#include <stc/cstr.h>
-#include <stc/algo/raii.h>
#define i_type Map
#define i_key_str // strings
#define i_val int
diff --git a/misc/tests/cspan_test.c b/misc/tests/cspan_test.c
index d7ca9b64..ce267b14 100644
--- a/misc/tests/cspan_test.c
+++ b/misc/tests/cspan_test.c
@@ -1,6 +1,5 @@
#include <stdio.h>
#include <stc/cspan.h>
-#include <stc/algo/raii.h>
#include "ctest.h"
using_cspan3(intspan, int);
@@ -48,7 +47,8 @@ CTEST(cspan, slice) {
#include <stc/cstack.h>
CTEST(cspan, slice2) {
- c_auto (cstack_int, stack)
+ cstack_int stack = {0};
+ c_defer (cstack_int_drop(&stack))
{
c_forrange (i, 10*20*30)
cstack_int_push(&stack, i);