summaryrefslogtreecommitdiffhomepage
path: root/stc/ccommon.h
AgeCommit message (Collapse)Author
2021-05-20Moved stc folder into include folder.Tyge Løvset
2021-05-20Final API changes for csview: Added csview_trimmed*(), removed a few.Tyge Løvset
2021-05-19More cleanups and refinements.Tyge Løvset
2021-05-18Added the new c_defer(), c_with(), c_withvar() macros into the examples.Tyge Løvset
2021-05-18Final improvements before push.Tyge Løvset
2021-05-15API change: Renamed c_init() to c_var() to better describe it declares and ↵Tyge Løvset
initializes a container variable. Will create a version 2.0 RC release soon.
2021-05-15Renamed newly introduced internal c_cast() to c_make() for c++ ↵Tyge Løvset
compatability. Added usage.
2021-05-13Updated cstr: Added cstr_new(literal), Renamed cstr_assign_s() to ↵Tyge Løvset
cstr_copy(). Fixed and added minors in ccommon.h
2021-05-11Removed cstr_append_fmt(): use cstr_assign_fmt(&s, "%s%s", s.str, "appended ↵Tyge Løvset
string") for that.
2021-05-07Reverted c_trivial_*() to c_default_*().Tyge Løvset
2021-05-05Changed some lesser used API in cvec and cdeq to be more consistent. ↵Tyge Løvset
Improved cdeq.
2021-05-04Added get() method to cvec, cdeq, clist, cmap, csmap. Restructured ↵Tyge Løvset
emplace/insert api on cvec, will be done on cdeq as well. General internal coding improvements.
2021-04-28rename internal `_c_VA_ARG_SIZE` to `_c_ARG_COUNT`Liigo Zhuang
The "size" in `sizeof` means "number of byte", or "byte count". "ARG_COUNT" is more readable. Take account of `cvec_x_size`s, size means "number of elements in the array", "count" also makes sense.
2021-04-26Doc update. Renamed c_new_2() to c_new_n()Tyge Løvset
2021-04-17Changed c_emplace_items(&cont, ctype, {...}) macro with c_emplace(ctype, ↵Tyge Løvset
cont, {...}): consistent with c_init(ctype, cont, {...}).
2021-03-26Changed cpque declaration to using_cpque(X, Value, valueCompare), and ↵Tyge Løvset
valueCompare optional: more consistent with STC conventions.
2021-03-06Cleanups and internal renames. Backported csmap_v1.h in examples to match ↵Tyge Løvset
csmap.h
2021-03-02Fixed: renamed reserved symbols/names.Tyge Løvset
2021-02-28Made it possible use full 64-bit size_t range for cmap, by defining ↵Tyge Løvset
CMAP_SIZE_T uint64_t
2021-02-22Renamed c_plain_... to c_trivial_... internal functions.Tyge Løvset
2021-02-22Many internal renames. Reverted to specify both _del and _clone parameter ↵Tyge Løvset
when giving _del.
2021-02-21Renamed emplace_put() to emplace_or_assign(). May add put() as alias to ↵Tyge Løvset
insert_or_assign().
2021-02-20Renamed push_items to emplace_nTyge Løvset
2021-02-20Internal renaming improvements.Tyge Løvset
2021-02-06Some API changes in cmap. Will do for csmap as well.Tyge Løvset
2021-02-05Rewrote to use c_container_of() instead of size_t offset.Tyge Løvset
2021-02-05Upgraded cstr impl.Tyge Løvset
2021-02-04Fixup in API regarding _at() - more consistent.Tyge Løvset
2021-01-18Minor updates again.Tyge Løvset
2021-01-18Some improvements.Tyge Løvset
2021-01-18Moved c_try_emplace to ccommon.hTyge Løvset
2021-01-17Removed cset.h - alias of cmap.h. Updated year copyright.Tyge Løvset
2021-01-05Changed macro c_defcon() to c_init(). Added clist_X_split() method.Tyge Løvset
2021-01-04Added cmap_X_value_del() and added convert.c example.Tyge Løvset
2021-01-04Simplified: Removed CONTAINER_input_t type, replaced with CONTAINER_rawvalue_tTyge Løvset
2021-01-04Added value_clone() method to containers.Tyge Løvset
2021-01-03Added macro: c_defcnt(): define container and push items onto it.Tyge Løvset
2021-01-03Force template argument *clone* to be specified when *del* is specified for ↵Tyge Løvset
containers. Can be *c_no_clone* if clonable is not required.
2021-01-02Major upgrade: Added 'clone' template parameters to containers. Reorganized ↵Tyge Løvset
arg positions. Renamed csptr_X_share() to csptr_X_clone()
2020-12-17API change: Reverted back to original name used for .val in iterators to .refTyge Løvset
2020-11-04Larger constant Phi in hash16.Tyge Løvset
2020-11-03Small API change c_withbuffer() and doc fix.Tyge Løvset
2020-10-20Added cfmt.h and some smaller fixes.Tyge Løvset
2020-10-17Internal renaming of STC_IMP to STC_DEF. Removed cstr_INIT. Use cstr_init().Tyge Løvset
2020-10-16Fixed compiling as lib (-DSTC_HEADER) and added c_withbuffer() and ↵Tyge Løvset
c_break_with macros.
2020-10-08Renamed cdefs.h to ccommon.hTyge Løvset