summaryrefslogtreecommitdiffhomepage
path: root/include
AgeCommit message (Collapse)Author
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-06Added c_autodrop() macro, and removed c_autobuf() which wasn't that useful ↵Tyge Løvset
(and was undocumented).
2022-11-06Improved documentation of template parameters for all containers.Tyge Løvset
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-03Made cmap i_max_load_factor a compile time template parameter instead of ↵Tyge Løvset
runtime. Enables cmap to be NULL initialized. Currently only cvec/cdeq and csmap cannot be NULL initialized, but eventually they will.
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-31Anorter minor fix in clist_X_erase_range()Tyge Løvset
2022-10-31Fixed bug in clist_X_erase_range().Tyge Løvset
2022-10-31Minor internal refactoring.Tyge Løvset
2022-10-31Minor adjustment.Tyge Løvset
2022-10-31Improved typesafe c_container_of() macro.Tyge Løvset
2022-10-31Added clist_X_reverse() and node API functions ++. NB! needs a bit more testing.Tyge Løvset
2022-10-29Small adjustments in template.hTyge Løvset
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-28Changed internal rep. for cstr to support 22 bytes small string instead of ↵Tyge Løvset
23, in order to have 0-initialized strings to be valid empty strings.
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-24Fix in cbox/carc.Tyge Løvset
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-24Generalized i_key_class and i_key_arcbox scheme.Tyge Løvset
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-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-27Missing paranthesis in c_new().Tyge Løvset