summaryrefslogtreecommitdiffhomepage
path: root/include/stc/algo
AgeCommit message (Collapse)Author
2023-05-04Updates in coroutines.h: No longer *required* with cco_final:, but only when ↵Tyge Løvset
no cleanup is needed.
2023-05-03Reverted from cco_await_with(promise, ret) to cco_await(promise, ret).Tyge Løvset
2023-05-02Changed cco_with_..() API again, final.Tyge Løvset
2023-05-02Add cco_await_void().Tyge Løvset
2023-05-02Removed cco_alive(), was same as !cco_done()Tyge Løvset
2023-05-02Improved coroutine.h, added new coro examples.Tyge Løvset
2023-05-01Replaced cco_yield(corocall, ctx, retval) with cco_await(cond) and ↵Tyge Løvset
cco_await_while(cond).
2023-04-28Removed crandom.h and altnames.h. Housholding.Tyge Løvset
2023-04-27removing compiler warning ++.Tyge Løvset
2023-04-08More docs updates, and a change in stc/extend.h.Tyge Lovset
2023-04-07Massive documentation update/improvements.Tyge Lovset
Reduced benchmarks/plotbench repetition/sizes.
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-03-27Some missing files.Tyge Løvset
2023-03-26Remove more c_with, c_autoTyge Løvset
2023-03-23Forgot an increment.Tyge Lovset
2023-03-23Internal in filter. c_xxx_if() macros now all have an _index var that can be ↵Tyge Lovset
used in the predicate.
2023-03-22Added c_foreach_r() macro for reverse iter of cvec, cdeq, cstack.Tyge Løvset
Moved c_find_if, c_erase_if, c_eraseremove_if to algo/filter.h Internals.
2023-03-17Reuse of coroutine context requires cco_reset of state.Tyge Løvset
2023-03-12Minor fix in coroutine.hTyge Løvset
2023-03-12Safer state machine in coroutine.h (internal).Tyge Løvset
Removed c_forwhile() macro. Redundant, use c_forfilter(). Removed find and eq in cspan (use general c_find_if() instead for search).
2023-03-10Added short names by default to c11/fmt.h print, println and printd.Tyge Løvset
c_forwhile() now takes container not start iter: may be removed! Cleanup in filter.h
2023-03-10Rename cco_alive() => cco_suspended(). Replaced cco_done() with cco_alive().Tyge Lovset
2023-03-09Removed useless typedef in coroutine.Tyge Løvset
2023-03-09Added c_flt_transform() and some updates to coroutine.h. Added stc/calgo.h : ↵Tyge Løvset
includes filter.h, crange.h and coroutine.h from algo subfolder.
2023-03-08Added cco_done(ctx) to check if coroutine is complete (including cleanup stage).Tyge Løvset
2023-03-07Merge branch 'master' of github.com:tylov/STCTyge 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-06Simplify macro calling coroutine from coroutine.Tyge Løvset
2023-03-01Reverted example moves.Tyge Løvset
2023-03-01Moved algorithm examples to algo folder.Tyge Løvset
2023-02-28Fixed stopping of sub-coroutines.Tyge Løvset
2023-02-28Fixed a state issue in coroutine.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-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
Assume context always non-NULL when calling cco_alive(context).
2023-02-27Minor issue fixed.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-25Renamed algo/ccoro.h => algo/coroutine.h. Using cco_ as prefix. Changed ↵Tyge Løvset
ccoro_execute(c) => cco_begin(c); ... cco_end(); (was required).
2023-02-24Update ccoro.h and added cosub.c example demoing a corotine calling another ↵Tyge Løvset
coroutine.
2023-02-24Replace by ccoro.hTyge Løvset
2023-02-23Replaced coroutine.h with ccoro.h. Stackbased only.Tyge Løvset
2023-02-23Fix minor regression in coroutine.h.Tyge Løvset