summaryrefslogtreecommitdiffhomepage
path: root/misc/examples
AgeCommit message (Expand)Author
2023-04-05Internal: renamed untemplate.h to template2.hTyge Løvset
2023-04-03Split priv/template.h in two files to make mksingle.sh work.Tyge Løvset
2023-04-03Renamed c_flt_n() => c_flt_getcount(), and c_flt_count() => c_flt_counter().Tyge Lovset
2023-04-02Renamed c_flt_last(i) => c_flt_n(i) in algo/filter.hTyge Løvset
2023-04-01Update of stc/extend.hTyge Lovset
2023-03-31Added stc/extend.h: A generalized way to type-safely extend a container with ...Tyge Lovset
2023-03-30Added crand.h - Alternative API to crandom.h, which will be deprecated.Tyge Løvset
2023-03-29Removed i_less_functor, i_cmp_functor, i_eq_functor and i_hash_functor: not n...Tyge Lovset
2023-03-28Fix gauss2.cTyge Løvset
2023-03-28Example changes. Added crand.h possible replacement for crandom.hTyge Løvset
2023-03-27More RAII cleanup in examples. Also removed gauss1.c and new_deq.cTyge Løvset
2023-03-26Remove more c_with, c_autoTyge Løvset
2023-03-26Fixed bug/leak in intrusive.c example.Tyge Løvset
2023-03-26development branch for 4.2Tyge Løvset
2023-03-22Added c_foreach_r() macro for reverse iter of cvec, cdeq, cstack.Tyge Løvset
2023-03-17Reuse of coroutine context requires cco_reset of state.Tyge Løvset
2023-03-13Fixed bug and improved generic c_eraseremove_if().Tyge Løvset
2023-03-12Fix warning.Tyge Løvset
2023-03-12Replaced clist mergesort with qsort: no need for i_extern defined to include it.Tyge Løvset
2023-03-12Safer state machine in coroutine.h (internal).Tyge Løvset
2023-03-10Rename cco_alive() => cco_suspended(). Replaced cco_done() with cco_alive().Tyge Lovset
2023-03-07Improved/simplified c_forfilter (): last optional parameter gone. Now c_flt_t...Tyge Løvset
2023-03-01Reverted example moves.Tyge Løvset
2023-03-01Moved algorithm examples to algo folder.Tyge Løvset
2023-02-28Final cleanups on corotines.Tyge Løvset
2023-02-28Renamed cco_coroutine => overloaded cco_yield(coro, ctx, retval).Tyge Løvset
2023-02-28Fixed coroutine.h and examples. cco_return; has no arguments.Tyge Løvset
2023-02-27Added example Pythagorean triples. (Arthur O’Dwyer blog)Tyge Løvset
2023-02-27Enhanced c_with and c_scope macros. Improved coroutine.h and example.Tyge Løvset
2023-02-27Let cco_end(value) return value. Should be last in function anyway.Tyge Løvset
2023-02-27Simplified coroutine.h a bit and modified coroutines.cTyge Løvset
2023-02-26Addition to coroutine.h. Allow dynamic allocation of context.Tyge Løvset
2023-02-25Finish fixes in coroutine.h.Tyge Løvset
2023-02-25Some clever adjustment to coroutine state.Tyge Løvset
2023-02-25Improved coread.c example a lot.Tyge Løvset
2023-02-25Renamed algo/ccoro.h => algo/coroutine.h. Using cco_ as prefix. Changed ccoro...Tyge Løvset
2023-02-24Added eq function to cspan.Tyge Løvset
2023-02-24Update ccoro.h and added cosub.c example demoing a corotine calling another c...Tyge Løvset
2023-02-23Replaced coroutine.h with ccoro.h. Stackbased only.Tyge Løvset
2023-02-23Renamed cco.h to coroutine.hTyge Løvset
2023-02-23Internal updates.Tyge Løvset
2023-02-22Renamed ccontext => cco_handleTyge Løvset
2023-02-22Added coroutines, based upon Simon Tatham's famous implementation. This versi...Tyge Løvset
2023-02-20Added c_eraseremove_if() for cvec, cdeq, cstack, cqueue in ccommon.h. Some cl...Tyge Løvset
2023-02-18Fixed carc, cbox: no need for no_lookup and no_eq: use only no_cmp, no_hash i...Tyge Løvset
2023-02-17Improved clist: 1) added clist_X_sort_with(self, cmp) - custom compare func. ...Tyge Løvset
2023-02-16Reverted and removed maps put function. Renamed clist node api functions. Min...Tyge Løvset
2023-02-13Removed support for uppercase version of c_sv() (i.e c_SV => c_sv).Tyge Løvset
2023-02-13Docs update and improvementsTyge Løvset
2023-02-12Fairly large update before release 4.1, cleaning up docs and some minor addit...Tyge Løvset