summaryrefslogtreecommitdiffhomepage
path: root/misc
diff options
context:
space:
mode:
authortylov <[email protected]>2023-07-26 21:23:15 +0200
committertylov <[email protected]>2023-07-26 21:23:15 +0200
commitd7fba27af452de2d709767e615fa2e90d6b3a391 (patch)
tree33f83221b34b8a123d25ddc886512d81bbdee706 /misc
parent5b54b0ca26540dd116880f316c6fa0291a7c96c7 (diff)
downloadSTC-modified-d7fba27af452de2d709767e615fa2e90d6b3a391.tar.gz
STC-modified-d7fba27af452de2d709767e615fa2e90d6b3a391.zip
Added cmap_emplace_key() / csmap_emplace_key()
More docs.
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);