summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/triples.c
AgeCommit message (Collapse)Author
2023-07-20Moved examples to sub-directories. Added cotask1.c cotask2.c examples.tylov
2023-07-15Improved warning, and other enhancements in ccommon.htylov
2023-07-02Update in coroutine API. cco_yield, cco_await, cco_await_on, cco_block_on ↵Tyge Løvset
has changed. cco_final: renamed => cco_cleanup: Reverted i_retain template param back to => i_more.
2023-06-08More small adjustments.Tyge Lovset
2023-05-24coroutine.h:Tyge Løvset
- Renamed Liigo's coroutine macro cco(x) => cco_routine(x). - Removed cco_begin(x), cco_end() macros. Replaced by cco_routine(x). - Replaced csleep_ms() with csleep_us(), using select() which is portable. - Updated all coroutine examples.
2023-05-04Updates in coroutines.h: No longer *required* with cco_final:, but only when ↵Tyge Løvset
no cleanup is needed.
2023-05-02Improved coroutine.h, added new coro examples.Tyge Løvset
2023-04-05Internal: renamed untemplate.h to template2.hTyge Løvset
2023-03-13Fixed bug and improved generic c_eraseremove_if().Tyge Løvset
2023-03-07Improved/simplified c_forfilter (): last optional parameter gone. Now ↵Tyge Løvset
c_flt_take() and c_flt_takewhile() breaks the loop always. c11/fmt.h : renamed fmt_freebuffer(buf) => fmt_destroy(buf).
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-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