summaryrefslogtreecommitdiffhomepage
path: root/examples/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/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/ptr.c')
-rw-r--r--examples/ptr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/ptr.c b/examples/ptr.c
index b32fdb33..a9c4d258 100644
--- a/examples/ptr.c
+++ b/examples/ptr.c
@@ -17,13 +17,13 @@ int Person_compare(const Person* p, const Person* q) {
return cmp == 0 ? strcmp(p->last.str, q->last.str) : cmp;
}
-using_cvec(pe, Person, Person_del, Person_compare);
+using_cvec(pe, Person, Person_compare, Person_del);
-using_cptr(pu, Person, Person_del, Person_compare);
-using_cvec(pu, Person*, cptr_pu_del, cptr_pu_compare);
+using_cptr(pu, Person, Person_compare, Person_del);
+using_cvec(pu, Person*, cptr_pu_compare, cptr_pu_del);
-using_csptr(ps, Person, Person_del, Person_compare);
-using_cvec(ps, csptr_ps, csptr_ps_del, csptr_ps_compare);
+using_csptr(ps, Person, Person_compare, Person_del);
+using_cvec(ps, csptr_ps, csptr_ps_compare, csptr_ps_del);
const char* names[] = {