summaryrefslogtreecommitdiffhomepage
path: root/examples/ptr.c
AgeCommit message (Collapse)Author
2021-02-17Updated cptr.h examples.Tyge Løvset
2021-01-24Improved cvec cdeq. Must be initied with cvec_X_init() and cdeq_X_init(). ↵Tyge Løvset
Not cvec_inits. Improved docs.
2021-01-03Force template argument *clone* to be specified when *del* is specified for ↵Tyge Løvset
containers. Can be *c_no_clone* if clonable is not required.
2021-01-02Major upgrade: Added 'clone' template parameters to containers. Reorganized ↵Tyge Løvset
arg positions. Renamed csptr_X_share() to csptr_X_clone()
2020-12-30API change: Swapped destroy <-> compare function args in using_*() macros ↵Tyge Løvset
for cvec, cdeq, cptr and clist.
2020-12-17API change: Reverted back to original name used for .val in iterators to .refTyge Løvset
2020-12-10Reverted cuptr to cptr. Added some typedefs in docs in cmap and cset.Tyge Løvset
2020-12-09Renamed coption.h to copt.h. Added docs/copt_api.md.Tyge Løvset
2020-12-09Renamed cptr_X type to cuptr_X, as it is similar to a unique_ptr, rather ↵Tyge Løvset
than a bare pointer. More docs too.
2020-11-26Removed stc/cfmt.h, as _Generic requires C11. I have made it a gist: ↵Tyge Løvset
https://gist.github.com/tylov/bcc956a4779f1d14204e66a14f17beb9 All examples are reverted to use printf() instead of c_print().
2020-10-26Updates examples using cfmt.h c_print().Tyge Løvset
2020-10-14Renamed cstr() constructor to cstr_from(), cstr_from() to cstr_from_fmt().Tyge Løvset
2020-09-25Updated ptr.c example.Tyge Løvset
2020-09-25Added cptr.h and good examples for cptr and csptr (share_ptr.c). Some ↵Tyge Løvset
internal refactor.