summaryrefslogtreecommitdiffhomepage
path: root/examples
AgeCommit message (Collapse)Author
2022-12-20Restructured folders: examples, benchmarks, tests into misc folder.Tyge Lovset
2022-12-20Minor docs changes.Tyge Løvset
2022-12-20Renamed (reverted) cstr_new(lit) => cstr_lit(lit). Old name is deprecated ↵Tyge Løvset
(supported for now).
2022-12-20Renamed c_sv() => c_SV() and reverted cstr_new() => cstr_lit(). Old names ↵Tyge Løvset
are deprecated (not removed).
2022-12-19Some "internal" macros in ccommon.h made all caps.Tyge Løvset
2022-12-19Renames:Tyge Løvset
cstr_null => cstr_NULL csview_null => csview_NULL cstr_npos => c_NPOS csview_npos => c_NPOS c_ARGsv(sv) => c_ARGSV(sv) c_init(x) => c_INIT(x)
2022-12-14cregex: renamed enums to all uppercase and prefixed CREG_Tyge Løvset
2022-12-08Changed/simplified cregex_replace*() API.Tyge Løvset
2022-12-05Minor corrections/changes.Tyge Løvset
2022-12-04Support for linking dependant UTF8 and cstr functions and/or cregex.c by ↵Tyge Løvset
defining i_extern before including <stc/cstr.h> and <stc/cregex.h>. I.e. #define i_extern #define i_implement // define cstr functions as shared symbols (static if not defined). #include <stc/cregex.h> // include cstr.h, utf8code.c, cregex.c, unless already included.
2022-11-27Moved c_forfilter macros from ccommon.h to views.hTyge Løvset
2022-11-27Removed dependence to STC_CSTR_V1.Tyge Løvset
2022-11-21Updated shootout_hashmap.cpp, and fixed some unsigned warnings.Tyge Løvset
2022-11-15More internal cleanup and fixes for cbox and carc.Tyge Løvset
2022-11-13Simplified csview API and usage. Fixed c++ compilation of csmap.Tyge Løvset
2022-11-13Reverted forward declaration from c_declare_X back to c_forward_X, and the ↵Tyge Løvset
flag "i_opt c_declared" to "i_opt c_is_forward". Sorry about this, but hopefully not a widely used feature for most yet.
2022-11-10updated examples/make.shTyge Lovset
2022-11-06Adding example of clist used as an intrusive list.Tyge Løvset
2022-11-06Fixed recent minor potential bug in examples/bits.c code.Tyge Løvset
2022-11-06Added c_autodrop() macro, and removed c_autobuf() which wasn't that useful ↵Tyge Løvset
(and was undocumented).
2022-11-06Updated examples/cpque.c to better explain the i_less_functor template ↵Tyge Løvset
parameter.
2022-11-05Added possibility to have per container-instance customizable compare/lookup ↵Tyge Løvset
functions (cmp, less, eq, hash) for priority queue and associative containers. Is achived by embedding the container in a struct along with function pointer(s) which can be accessed through the c_container_of() macro. See the updated cpque.c example in the examples folder.
2022-11-05Fixed examples/make.sh. Also some -Wextra warnings in cstr removed.Tyge Løvset
2022-11-04csmap: bug fix from previous commit: forgot to init zero-node (1st node in ↵Tyge Løvset
array)
2022-11-03Changed internal representation of csmap.Tyge Løvset
2022-11-03Renamed forward_CONTAINER(...) => declare_CONTAINER(...),Tyge Løvset
and c_is_fwd => c_declared, for the i_opt option define.
2022-11-02Change to c_forwhile: takes start iter, not container.Tyge Løvset
Other minor updates.
2022-11-01Various updates.Tyge Løvset
2022-11-01Modified the not-yet-documented stc/views.hTyge Løvset
Renamed listview => clview clview_literal(), and crange_literal() creates compound literal objects.
2022-10-28Renamed some semi-internal functions which appeared to be macros by their name.Tyge Løvset
2022-10-28Renamed semi-internal macro (used for c++ compability) c_make => c_init.Tyge Løvset
2022-10-27Merge branch 'master' of github.com:tylov/STCTyge Løvset
2022-10-27Some more tuning of template.h.Tyge Løvset
Need to specify i_rawclass in order to bind i_keyraw type to _cmp() and _hash() functions, otherwise just specify i_keyraw.
2022-10-25More and hopefully final fixes of cbox/carc.Tyge Løvset
API change: _from = _make, _new => _from
2022-10-24API CHANGE: Renamed input params for naming consisteny and usage:Tyge Løvset
i_key_class TYPE => i_keyclass TYPE i_val_class TYPE => i_valclass TYPE i_key_arcbox TYPE => i_keyboxed TYPE i_val_arcbox TYPE => i_valboxed TYPE i_key_bind, i_val_bind are removed.
2022-10-21Swapped two last params in cregex_replace_pattern() and cregex_replace_sv() ↵Tyge Løvset
to always have flags at last (sorry for inconveniences). Fixed a small bug in cregex_find_sv(), and added cre_default flag for readability.
2022-10-21Renamed size_t formatting macro c_zu to c_ZU (for replacing %zu on mingw64).Tyge Løvset
2022-10-21Fixed wrong formatting of 64bit values various places.Tyge Løvset
Finialized cbox/carc issues.
2022-10-20Reverted some of the changes, but works now well.Tyge Løvset
2022-10-20Fixed previous commit, and city.c example.Tyge Løvset
2022-10-20Fixed some inconsistencies, and a minor bug in cmap.Tyge Løvset
2022-10-20Switch from #define i_val_bind to i_val_class and i_key_class.Tyge Løvset
i_val_bind/i_key_bind is deprecated but available for now.
2022-10-19Reverted back to c_forrrange from c_forloop. Still available but deprecated.Tyge Løvset
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-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-07Rename c_find_in() to overload c_find_if().Tyge Lovset
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-27Missing paranthesis in c_new().Tyge 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.