summaryrefslogtreecommitdiffhomepage
path: root/include/stc/ccommon.h
AgeCommit message (Collapse)Author
2023-09-06Renamed c_LTu(a, b) => c_less_unsigned(a, b)Tyge Løvset
Renamed c_u2i(i) => c_u2i_size(u) Renamed c_i2u(i) => c_i2u_size(i)
2023-09-05Swapped two parameters in newly renamed "internal" function stc_strnstrn().Tyge Løvset
2023-09-05Renamed (half)internal functions:Tyge Løvset
cfasthash() => stc_hash() cstrhash() => stc_strhash() cnextpow2() => stc_nextpow2()
2023-09-05Renamed (half) internal function cfasthash() => cbytehash().Tyge Løvset
Fixed missing parameter in call of i_hash().
2023-08-30Some simplifications. Added i_ndebug macro flag to disable assertions in cspan.Tyge Lovset
2023-08-23Removed the last committed c_forint macro.tylov
2023-08-22Added c_forint and c_for macros as additions to c_forrange.Tyge Lovset
2023-08-17Renamed "internal" csview member .str => .buf, as it is not null terminated ↵Tyge Lovset
like crawstr .str member.
2023-08-15Fixed c_i2u() didn't trigger -Wsign-conversion warning.tylov
2023-08-15Minors.Tyge Lovset
2023-08-14Reverted csubstr => csview. Sorry about that!Tyge Løvset
Added crawstr to become the null-terminated string view.
2023-08-14Finished last commit (cleanup, fixes).tylov
2023-08-13API CHANGES:tylov
Changed csview: becomes a null-terminated string view. Added csubview: a null-terminated string view/span, like previous csview. Note that csview works like a csubview, so not much compability issues should arise. However, some functions have changed from _sv suffix to _ss.
2023-08-11Finalized converting to i_use_cmp (vs i_no_cmp)tylov
2023-08-10Update template.h - also renamed i_cmp_native => i_use_cmpTyge Løvset
2023-08-02Renamed (most internal "class" type) crawstr => ccharptrTyge Løvset
2023-07-21Removed c_foreach_rv() - only worked for cvec, so not general.tylov
2023-07-21NB! Changed some coroutine API for consistency/simplicity: Added full task ↵tylov
support.
2023-07-15Improved warning, and other enhancements in ccommon.htylov
2023-07-13Moved c_defer() macro from raii.h to ccommon.h. Some changes in cspan.tylov
2023-07-12Changed docs and examples to use i_key* template parameters instead of ↵tylov
i_val* for all non-maps. Renamed c_ASSERT() to c_assert() and added optional message parameter to c_static_assert().
2023-07-10Reverted from crange_init() to crange_make() again. Added to changelog for v4.3tylov
2023-07-08Fixes from 32-bit raspberry pi testing.tylov
2023-07-07Issue #62: Fixed wrong printf format specifiers. Changed cbits.h to use long ↵Tyge Løvset
long (guaranteed at least 64-bit) instead of int64_t for easier print. Second part of #62 is due to a clang compiler bug, can be avoided by using c_foreach instead of c_forpair.
2023-07-07Issue #60: fixed compiler compability.Tyge Løvset
2023-06-29Usage change: comparison is no longer enabled when specifying i_val for ↵Tyge Lovset
cvec, cdeq and clist (like cstack and cqueue). Comparison functions are still required when specifying i_valclass. For fundamental/native types like integers, floats etc., define i_native_cmp along with i_val instead of i_less/i_cmp/i_eq.
2023-06-11Added priv/linkage.h and renamed priv/template2.h => priv/template_undef.h.Tyge Løvset
Make all examples c++ compatible, except those using cspan.h Removed: crange_obj() Renamed: crange_make() => crange_init() Renamed: cspan_make() => cspan_init() Renamed: cstr_NULL => cstr_null Renamed: csview_NULL => csview_null
2023-06-09Rename i_extern template flag to i_import. i_extern still available, but ↵Tyge Løvset
deprecated.
2023-06-09Fixed issues with linking params i_implement, i_extern.Tyge Løvset
2023-05-23Some house holding cleanup.Tyge Løvset
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-20Rename c_make() macro to c_init(). c_make still available, but deprecated.Tyge Løvset
2023-05-18Huge update: cqueue and cdeq completely rewritten. cvec and cdeq API ↵Tyge Lovset
harmonized. Docs update/improved.
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-04-28Removed crandom.h and altnames.h. Housholding.Tyge Løvset
2023-04-27removing compiler warning ++.Tyge Løvset
2023-04-24Final hashing tweakTyge Løvset
2023-04-24Final hash constants tunings.Tyge Løvset
2023-04-24Fixed another cmap issueTyge Løvset
2023-04-23Tuned cmap.h and hash function.Tyge Løvset
2023-04-21Householding.Tyge Løvset
2023-04-18Removed unneeded custom size type in maps and bits.h. Prepared for possible ↵Tyge Løvset
robin-hood impl. Improved sso_bench.c testing string hash - twice as fast as m.ankeln robin impl !?.
2023-04-14tuning of hash function. Adjusted benchmark balance.Tyge Løvset
2023-04-08Reverted c_arraylen(), removed c_ARRAYLEN()Tyge Lovset
2023-04-08More docs updates, and a change in stc/extend.h.Tyge Lovset
2023-04-07More docs updating.Tyge Lovset
2023-03-29Some optimizations in hash func.Tyge Løvset
2023-03-26development branch for 4.2Tyge Løvset
Removed uses of c_auto and c_with in documentation examples and code examples. Still using c_defer a few places. Renamed c11/fmt.h to c11/print.h. Some additions in ccommon.h, e.g. c_const_cast(T, x). Improved docs.
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-13Fixed bug and improved generic c_eraseremove_if().Tyge Løvset