diff options
| author | Tyge Løvset <[email protected]> | 2020-12-09 11:46:15 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2020-12-09 11:46:15 +0100 |
| commit | 30a400f71df76c077c97590b7a60daba98bef396 (patch) | |
| tree | b8bd823f0bcb8170c3c8c66c881c73573f8fa85c /examples/ptr.c | |
| parent | b28159c2b1d4f477f78a2434a9a25caeb2a2e898 (diff) | |
| download | STC-modified-30a400f71df76c077c97590b7a60daba98bef396.tar.gz STC-modified-30a400f71df76c077c97590b7a60daba98bef396.zip | |
Renamed cptr_X type to cuptr_X, as it is similar to a unique_ptr, rather than a bare pointer. More docs too.
Diffstat (limited to 'examples/ptr.c')
| -rw-r--r-- | examples/ptr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/ptr.c b/examples/ptr.c index 3ffb9292..4e8f11aa 100644 --- a/examples/ptr.c +++ b/examples/ptr.c @@ -18,8 +18,8 @@ int Person_compare(const Person* p, const Person* q) { }
using_cvec(pe, Person, Person_del, Person_compare);
-using_cptr(pe, Person, Person_del, Person_compare);
-using_cvec(pp, Person*, cptr_pe_del, cptr_pe_compare);
+using_cuptr(pe, Person, Person_del, Person_compare);
+using_cvec(pp, Person*, cuptr_pe_del, cuptr_pe_compare);
int main() {
puts("Vec of Person *:");
|
