summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/forfilter.c
AgeCommit message (Collapse)Author
2023-07-20Moved examples to sub-directories. Added cotask1.c cotask2.c examples.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-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-20Rename c_make() macro to c_init(). c_make still available, but deprecated.Tyge Løvset
2023-04-08More docs updates, and a change in stc/extend.h.Tyge Lovset
2023-04-03Split priv/template.h in two files to make mksingle.sh work.Tyge Løvset
2023-03-27More RAII cleanup in examples. Also removed gauss1.c and new_deq.cTyge 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-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-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-13Removed support for uppercase version of c_sv() (i.e c_SV => c_sv).Tyge Løvset
Renamed c_ARGSV => c_SV. Old name is still working.
2023-02-08Changed to use lowercase flow-control macros in examples (uppercase will ↵Tyge Løvset
still be supported). Improved many examples to use c_make() to init containers.
2023-02-05Some last minute changes: reverted mostly the c_extern from last commit.Tyge Løvset
Renamed c_ARGSV(sv) macro to c_SVARG(sv). Both available.
2023-02-01Massive update from unsigned sizes and indices to signed.Tyge Lovset
2023-01-25Updates on cspan ++.Tyge Løvset
2023-01-19Finish last commit. Most safe function macros are now preferred lowercase, ↵Tyge Løvset
whereas flow control macros (c_FOREACH, ..) are preferred uppercase.
2023-01-15Large commit:Tyge Løvset
- Moved stc/algo/cspan.h to stc/cspan.h - its a data view type similar to csview. +Many updates. Added docs/cspan_api.md page! - Update c11/fmt.h to VER 2.0: NEW API, see test. NOTE: fmt.h is not officially part of STC, as it is C11, and STC is C99. - Renamed crange_LITERAL() back to crange_literal(), and cspan_LITERAL() to cspan_literal(). These returns a compound literal (lvalue) that can be passed to a c_FOR*-iterator.
2023-01-13Added algo/cmspan.h: multi-dim span, similar to c++23 mdspan. May get some ↵Tyge Løvset
API changes. Changed cspan.h, these may merge.
2023-01-04Removed the experimental c_AUTODROP macro.Tyge Lovset
2022-12-29Restructuring of some headers into include/algo folder. Some API changes ↵Tyge Løvset
*_replace*() functions have been renamed, and a few minor API changes.
2022-12-23Experimental uppercase macros.Tyge Løvset
2022-12-20Restructured folders: examples, benchmarks, tests into misc folder.Tyge Lovset