summaryrefslogtreecommitdiffhomepage
path: root/examples/new_sptr.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-10-24 12:23:30 +0200
committerTyge Løvset <[email protected]>2022-10-24 12:23:30 +0200
commitcf2ff10878153588b69e7e34523773e2bc42d79e (patch)
tree8980db94a0c79f5b02489510159821c0b8f22a39 /examples/new_sptr.c
parent60611de13ad64442287c5a57c7aa874ad45273ab (diff)
downloadSTC-modified-cf2ff10878153588b69e7e34523773e2bc42d79e.tar.gz
STC-modified-cf2ff10878153588b69e7e34523773e2bc42d79e.zip
API CHANGE: Renamed input params for naming consisteny and usage:
i_key_class TYPE => i_keyclass TYPE i_val_class TYPE => i_valclass TYPE i_key_arcbox TYPE => i_keyboxed TYPE i_val_arcbox TYPE => i_valboxed TYPE i_key_bind, i_val_bind are removed.
Diffstat (limited to 'examples/new_sptr.c')
-rw-r--r--examples/new_sptr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/new_sptr.c b/examples/new_sptr.c
index c4c9f7f5..2c6b28d6 100644
--- a/examples/new_sptr.c
+++ b/examples/new_sptr.c
@@ -8,7 +8,7 @@ int Person_cmp(const Person* a, const Person* b);
uint64_t Person_hash(const Person* p);
#define i_type PersonArc
-#define i_val_class Person // "class" ensure Person_drop will be called
+#define i_valclass Person // "class" ensure Person_drop will be called
#define i_cmp Person_cmp // enable carc object comparisons (not ptr to obj)
#define i_hash Person_hash // enable carc object hash (not ptr to obj)
#include <stc/carc.h>
@@ -19,11 +19,11 @@ uint64_t Person_hash(const Person* p);
#include <stc/carc.h>
#define i_type IPStack
-#define i_val_arcbox IPtr
+#define i_valboxed IPtr
#include <stc/cstack.h>
#define i_type PASet
-#define i_val_arcbox PersonArc
+#define i_valboxed PersonArc
#include <stc/cset.h>