summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2022-10-19- Removed deprecated carc_make and cbox_make (replaced by carc_from, cbox_from)Tyge Løvset
- Some improvements to template.h - Many smaller improvements to examples and docs.
2022-10-18Internal renamings only.Tyge Løvset
2022-10-14Replaced PRIuMAX with new c_zu macro in examples. "%zu" is not supported by ↵Tyge Løvset
mingw64 and PRIuMAX is not a replacement for "zu".
2022-10-14Update sso_bench.cpp benchmark, and some internal improvements.Tyge Løvset
2022-10-12Minor change in cbits print to str.Tyge Løvset
2022-10-07Merge branch 'master' of github.com:tylov/STCTyge Løvset
2022-10-07Fixed a bug in csmap.h regarding #ifndef _i_emplace.Tyge Løvset
Updated a few external maps for benchmarks.
2022-10-07Rename c_find_in() to overload c_find_if().Tyge Lovset
2022-10-05Internals.Tyge Løvset
2022-10-04- Removed deprecated c_forrange() (replaced by c_forloop + crange type)Tyge Løvset
- Removed csview_new(literal) macro. Use c_sv(literal) instead. - Added stc/views.h: moved crange from ccommon.h and added templated type c_listview. Instantiate by: using_listview(ViewName, ValueType) after #include, does not use #define i_val .... See examples in views.h.
2022-09-28Changed c_RANGE() to c_range(). Returns an lvalue object, which is accepted ↵Tyge Løvset
by c_forfilter().
2022-09-28Added a convenience macro: c_RANGE(), to mainly be used with c_forfilter().Tyge Løvset
2022-09-28Fixed bug in crange. Could only be iterated once.Tyge Løvset
2022-09-28A few docs changes.Tyge Løvset
2022-09-27Missing paranthesis in c_new().Tyge Løvset
2022-09-27Merge branch 'master' of github.com:tylov/STCTyge Løvset
2022-09-27Added index, count vars to c_erase_if() + improved docs.Tyge Løvset
2022-09-27Version 4.0, Release Candidate 3 (upd docs)Tyge Løvset
2022-09-27Version 4.0, Release Candidate 4Tyge Løvset
2022-09-27Version 4.0, Release Candidate 3Tyge Løvset
2022-09-27Update ccommon_api.mdTyge Løvset
2022-09-27Renamed c_flt_drop() and c_flt_dropwhile()Tyge Løvset
to c_flt_skip() and c_flt_skipwhile() This lines up with Rust namings, and does not conflict with the use of drop as destructor.
2022-09-26Deprecated c_pair() macro. Replaced with c_PAIR(), analogous to c_ARGsv() ↵Tyge Løvset
macro which are both unsafe regarding side effects on arg.
2022-09-26Added .count to c_forfilter() algorithm. Updated prime.c example, and added ↵Tyge Løvset
forloops.c example.
2022-09-26Added c_flt_takewhile() filter to c_forfilter() macro.Tyge Løvset
2022-09-26Another internal opt.Tyge Løvset
2022-09-26Another internal.Tyge Løvset
2022-09-26Internal refactor.Tyge Løvset
2022-09-26DEPRECATED: c_forrange(): replaced with c_forloop(). This uses 'long long' ↵Tyge Løvset
as iter type, i.e. "%lld" printf format. crange_from() renamed to crange_make(). More docs.
2022-09-25Added i.size to c_forlist() macro + example.Tyge Løvset
2022-09-25Fixed docs example in ccommon.h.Tyge Løvset
2022-09-25Change crange_value from intmax_t to 'long long' - enables usage of "%lld" ↵Tyge Løvset
format.
2022-09-25Fixed potential bug in c_forwhile/c_forfilter.Tyge Løvset
2022-09-25Fixed markdown error in docs.Tyge Løvset
2022-09-25Added: crange number generator type. (similar to c++ std::iota). Fixed ↵Tyge Løvset
c_forfilter again. Cleanups. Docs added.
2022-09-24Fixes for csview and cstr sub-types (_value and _iter).Tyge Løvset
2022-09-24Removed deprecated c_forarray, c_autovar, c_autoscope, c_autodefer.Tyge Løvset
Finalized and improved loops.
2022-09-23- Finished c_forfilter() functionality.Tyge Løvset
- Added c_forloop(), similar to c_forrange(), but same access to elements as other c_for-loops, i.e. *i.ref (but also i.val works).
2022-09-23Reverted c_forrange() macro with 3 or more args: swapped 1st and 2nd arg again.Tyge Løvset
2022-09-23Added assert() checks in pop-functions.Tyge Løvset
2022-09-23Enabled iteration on cqueue (like with cstack).Tyge Løvset
2022-09-23Renamed c_forloop* macros to more descriptive c_forwhile*.Tyge Løvset
2022-09-23Deprecated c_forarray, c_forarray_p macros - both replaced by c_forlist, and ↵Tyge Løvset
is consistent with other c_for* macros.
2022-09-22mendTyge Løvset
2022-09-22Renamed .idx => .index in c_forfilter() macroTyge Løvset
2022-09-22Updated _advance() iter methods. Some have signed offsets.Tyge Løvset
utf8_peek()/utf8_peek_off() added/changed.
2022-09-22Added c_forfilter_s() and c_forloop_s() intermediate macros, supports start ↵Tyge Løvset
iter instead of *_begin().
2022-09-22Renamed c_forfiltered() back to c_forfilter(), and iter member .count => .takenTyge Løvset
2022-09-21Added cstr_push(), cstr_pop() - push/pop one utf8 char.Tyge Løvset
Renamed c_forpred() to c_forloop() - used by c_forfiltered().
2022-09-21Recent macro renames:Tyge Løvset
c_foreach_token() => c_fortoken() c_foreach_match() => c_formatch() Added: c_forfiltered() c_forpred()