diff options
| author | Tyge Løvset <[email protected]> | 2020-12-30 11:17:30 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2020-12-30 11:17:30 +0100 |
| commit | 2b46410ef5bb28c4551cdd422c5e22731bd6b610 (patch) | |
| tree | 03408e3fb036ca610b81e2dccdbec9740605b074 /examples/share_ptr.c | |
| parent | e2de45078c5e668ed9fd0515eb8face9170b9f70 (diff) | |
| download | STC-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.c | 6 |
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();
|
