summaryrefslogtreecommitdiffhomepage
path: root/include
AgeCommit message (Collapse)Author
2023-06-07Minor adjustment in fmt.hTyge Løvset
2023-06-07Updated and renamed c11/print.h to c11/fmt.h. Added fmt_tm() to print ↵Tyge Løvset
time/date from a struct tm.
2023-06-07cco: Minor internal cleanup + added cco_timer_elapsed().Tyge Løvset
2023-06-06Fixed some logic in coroutines.Tyge Løvset
Changed API in c11/print.h (not officially part of STC as it is C11).
2023-06-06Warning fixes and docs update.Tyge Løvset
2023-06-06Switched to double for times in cco_timer and cco_time, etc.Tyge Løvset
Reverted to just use Sleep on win32 - same effect.
2023-06-05Updated timers and time functions to microseconds (from milli).Tyge Løvset
2023-06-04Added dining_philosophers.c coroutine example.Tyge Løvset
Fixed cco_stop() when in state 0. Renamed cco_timer_with(msec) => cco_timer_from(msec) Renamed cco_sem_with(val) => cco_sem_from(val)
2023-06-01Changed API for cco_timer and cco_sem.Tyge Løvset
2023-05-31Simplified coroutine API. Removed unneeded cco_await_coro() and ↵Tyge Løvset
cco_yield_coro().
2023-05-30Changed extern to dllimport for Sleep() function.Tyge Løvset
2023-05-29Update extern benchmark maps.Tyge Løvset
Removed i_expandby in cmap. Always expand by 2 i.e 2^n buckets..
2023-05-26Minor addition to coroutine API.Tyge Løvset
2023-05-24Fixed portability for csleep_ms() function.Tyge Løvset
2023-05-24More coro adjustments.Tyge Løvset
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-24Merge pull request #57 from liigo/dev43Tyge Løvset
add `cco` macro, block style coroutine definition
2023-05-24Fixes for clang compiler.Tyge Løvset
2023-05-23Some house holding cleanup.Tyge Løvset
2023-05-23Updated docs to reflect changes in cstr linking shared.Tyge Lovset
2023-05-21NB! Made cstr.h header-only by default. Now requires #define i_static, ↵Tyge Lovset
i_implement or i_extern (includes utf8code.c) to implement non-inline functions (or link with libstc).
2023-05-20Fixed two minor things.Tyge Lovset
2023-05-20Merge branch 'dev43' of github.com:stclib/STC into dev43Tyge Lovset
2023-05-20Bug fix (NB!): cregex_captures() now returns num of cap. group *excluding* ↵Tyge Lovset
the full match group (0).
2023-05-20Rename c_make() macro to c_init(). c_make still available, but deprecated.Tyge Løvset
2023-05-19Minor cbits change.Tyge Lovset
2023-05-19Added container equality function to docs _eq(c1, c2).Tyge Lovset
2023-05-19Fixed an iter return bug in cdeq_insert_uninit().Tyge Lovset
2023-05-18Renamed template param i_con => i_base in stc/extend.h. Also the macro ↵Tyge Løvset
c_getcon(self) => c_extend(self).
2023-05-18Fixing find_in() in cdeq, and add support c_eraseremove_if() for cqueue and ↵Tyge Løvset
cdeq.
2023-05-18Huge update: cqueue and cdeq completely rewritten. cvec and cdeq API ↵Tyge Lovset
harmonized. Docs update/improved.
2023-05-18add `cco` macro, block style coroutine definition, to replace cco_begin(co) ↵Liigo Zhuang
&& cco_end()
2023-05-13File priv/raii.h no longer included by stc/ccommon.h, instead moved to ↵Tyge Løvset
stc/algo/raii.h and included by stc/calgo.h
2023-05-09fixed typo.Tyge Lovset
2023-05-09Renaming.Tyge Lovset
2023-05-09reverted cco_await_done => cco_await_at.Tyge Lovset
2023-05-08coroutine cco_await_* and cco_yield_* changes.Tyge Løvset
2023-05-08Final coroutine API updates.Tyge Løvset
2023-05-08More coroutine updates.Tyge Løvset
2023-05-08Updated API for timer and semaphores in coroutine.h (ctimer, csem)Tyge Løvset
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-05-01Remove warnings when using -Wextra.Tyge Løvset
2023-04-28Removed crandom.h and altnames.h. Housholding.Tyge Løvset
2023-04-27Reshuffled code in csmap.h and cmap.hTyge Løvset