summaryrefslogtreecommitdiffhomepage
path: root/examples/share_ptr.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-12-30 11:17:30 +0100
committerTyge Løvset <[email protected]>2020-12-30 11:17:30 +0100
commit2b46410ef5bb28c4551cdd422c5e22731bd6b610 (patch)
tree03408e3fb036ca610b81e2dccdbec9740605b074 /examples/share_ptr.c
parente2de45078c5e668ed9fd0515eb8face9170b9f70 (diff)
downloadSTC-modified-2b46410ef5bb28c4551cdd422c5e22731bd6b610.tar.gz
STC-modified-2b46410ef5bb28c4551cdd422c5e22731bd6b610.zip
API change: Swapped destroy <-> compare function args in using_*() macros for cvec, cdeq, cptr and clist.
Diffstat (limited to 'examples/share_ptr.c')
-rw-r--r--examples/share_ptr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/share_ptr.c b/examples/share_ptr.c
index 2ec2470e..785333d0 100644
--- a/examples/share_ptr.c
+++ b/examples/share_ptr.c
@@ -19,9 +19,9 @@ int Person_compare(const Person* p, const Person* q) {
return cmp == 0 ? strcmp(p->last.str, q->last.str) : cmp;
}
-using_csptr(pe, Person, Person_del, Person_compare);
-using_clist(pe, csptr_pe, csptr_pe_del, csptr_pe_compare);
-using_cvec(pe, csptr_pe, csptr_pe_del, csptr_pe_compare);
+using_csptr(pe, Person, Person_compare, Person_del);
+using_clist(pe, csptr_pe, csptr_pe_compare, csptr_pe_del);
+using_cvec(pe, csptr_pe, csptr_pe_compare, csptr_pe_del);
int main() {
clist_pe queue = clist_pe_init();