summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/arc_containers.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/examples/arc_containers.c')
-rw-r--r--misc/examples/arc_containers.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/examples/arc_containers.c b/misc/examples/arc_containers.c
index b05bbea6..524758e7 100644
--- a/misc/examples/arc_containers.c
+++ b/misc/examples/arc_containers.c
@@ -10,18 +10,18 @@
#include <stc/csmap.h>
#define i_type Arc // (atomic) ref. counted type
-#define i_val Map
-#define i_valdrop(p) (printf("drop Arc:\n"), Map_drop(p))
+#define i_key Map
+#define i_keydrop(p) (printf("drop Arc:\n"), Map_drop(p))
// no need for atomic ref. count in single thread:
#define i_opt c_no_atomic
#include <stc/carc.h>
#define i_type Stack
-#define i_valboxed Arc // define i_valboxed for carc/cbox value (not i_val)
+#define i_keyboxed Arc // define i_keyboxed for carc/cbox value (not i_key)
#include <stc/cvec.h>
#define i_type List
-#define i_valboxed Arc // as above
+#define i_keyboxed Arc // as above
#include <stc/clist.h>
int main()