From cf2ff10878153588b69e7e34523773e2bc42d79e Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Mon, 24 Oct 2022 12:23:30 +0200 Subject: 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. --- examples/new_sptr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/new_sptr.c') 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 @@ -19,11 +19,11 @@ uint64_t Person_hash(const Person* p); #include #define i_type IPStack -#define i_val_arcbox IPtr +#define i_valboxed IPtr #include #define i_type PASet -#define i_val_arcbox PersonArc +#define i_valboxed PersonArc #include -- cgit v1.2.3