summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2021-12-14Final update of box2.c example.Tyge Løvset
2021-12-14Small improvement of example box2.c.Tyge Løvset
2021-12-14Fixed silly bug in cpque_X_pop(). Thanks to matthieugras. Added ↵Tyge Løvset
cpque_X_shrink_to_fit(). Fixed memory leak in example box2.c
2021-12-14Added and renamed some examples.Tyge Løvset
2021-12-14cstr_printf() now returns int like printf(). Minor updates in sharedptr.c ↵Tyge Løvset
example.
2021-12-13Renamed constructor *cstr_lit()* to `cstr_new(lit)`.Tyge Løvset
Renamed *cstr_assign_fmt()* to `cstr_printf()`. Renamed cbits_from_str() to cbits_from().
2021-12-12Update csptr_api.mdTyge Løvset
2021-12-12Fixed the source of the problem for the ptr_elems.c example bug.Tyge Løvset
2021-12-12Fixed example bug.Tyge Løvset
2021-12-12Commented out example with error.Tyge Løvset
2021-12-12Try fix ptr_elems.c. Some more docs for cbox. Temporarily comment out ↵Tyge Løvset
benchmark Action
2021-12-12Merge branch 'master' of github.com:tylov/STC into masterTyge Løvset
2021-12-12- Added **cbox** type: container of one element: similar to std::unique_ptr ↵Tyge Løvset
/ Rust Box. - Replaced example for **csptr** in docs. - Added [**c_forpair**](docs/ccommon_api.md) macro: for-loop with "structural binding" as in c++. - Deprecated *csptr_X_make()*. Renamed to *csptr_X_new()*. Corresponding **cbox** method is *cbox_X_new()*. - Deprecated *c_default_fromraw(raw)*. Renamed to *c_default_clone(raw)*. - Deprecated `i_key_csptr` / `i_val_csptr`. Use `i_key_ref` / `i_val_ref` when specifying containers with **csptr** or **cbox** elements. - Deprecated `i_cnt`. Use `i_type` instead to define the full container type name. - Bugfixes and docs updates.
2021-12-02Update cmap_api.mdTyge Løvset
2021-12-02shared_ptr atomic count: Using stdatomics.h for other compilers than gcc, ↵Tyge Løvset
clang or msvc.
2021-12-02Merge branch 'master' of github.com:tylov/STC into masterTyge Løvset
2021-12-02Breaking changes for i_fwd and i_cmp_none:Tyge Løvset
- Removed: i_cmp_none and i_fwd (replaced by c_no_compare and c_is_fwd args to i_opt). - Added compile-time disabling of clonable and comparable container elements, controlled by i_opt (c_no_clone | c_no_compare) - Added i_opt: can define multiple compile-time options: c_no_compare, c_no_clone, c_no_atomic, c_is_fwd: may be combined with | separator. - Except for csptr, when i_del / i_valdel / i_keydel is defined, also i_from / i_keyfrom / i_valfrom must be defined or i_opt c_no_clone. - For struct elements, either i_cmp must be defined (as before), or define i_opt c_no_compare for non-associative containers.
2021-11-26internal renamingsTyge Løvset
2021-11-26Fixed atomic_decrement final.Tyge Løvset
2021-11-26Bugfix of c_atomic_decrement() asm version in csptr.h. Some cleanupTyge Løvset
2021-11-25Updated int params constness. Updated random.c example.Tyge Løvset
2021-11-24Deprecated c_no_compare(). Define i_cmp_none instead when you have/want no ↵Tyge Løvset
element comparison for cvec, cdeq, clist, csptr. Will give compile time error if functions depending on comparisons are used.
2021-11-23Formatting only.Tyge Løvset
2021-11-23Renamed c_default_hash32/64 to c_hash32/64. Old are deprecated (still ↵Tyge Løvset
available).
2021-11-23BUGFIX: c_default_hash32() was buggy in ccommon.h - fixed.Tyge Løvset
2021-11-21Fixed option_mkdir.c return value.Tyge Løvset
2021-11-21Moved a line.Tyge Løvset
2021-11-21BREAKING CHANGE: Replaced c_new(T) with c_new(T, ...). This now is similar ↵Tyge Løvset
to the c++ new operator. The previous c_new(T) is renamed to c_alloc(T), and c_new_n(T,n) => c_alloc_n(T,n). Old usage of c_new() will fail as it requires additional argument. Sorry for the inconvenience.
2021-11-21Made none mutable integers into const variables. Improved cmap_X_reserve() impl.Tyge Løvset
2021-11-21Changed reverse() and resize() to return false if mem alloc failed.Tyge Løvset
2021-11-20Added carr_X_idx().Tyge Løvset
2021-11-12Added example option.cTyge Løvset
2021-11-12Simplify, use standard rotate_left()Tyge Løvset
2021-11-12Accepted pull request on rust_hashmap.rsTyge Løvset
2021-11-10Updated coption.Tyge Lovset
2021-11-10Added back coption.hTyge Løvset
2021-11-09Added final rotl to default_hashTyge Løvset
2021-11-08Last update on hash for now.Tyge Løvset
2021-11-08minorTyge Løvset
2021-11-08Changed default_hash() and c_strhash()Tyge Løvset
2021-11-08Third trial.Tyge Løvset
2021-11-08Updated last commit. (added c_make_ptr(T, value) macro).Tyge Løvset
2021-11-08Added c_make_ptr(T, value) macro.Tyge Løvset
2021-11-07Added TSL maps and Khash iteration.Tyge Løvset
2021-11-07Cleanup shootout_hashmap.cppTyge Løvset
2021-11-06Fix build_and_testTyge Løvset
2021-11-06Updated shootout_hashmaps.cpp. Cleanup/renamed benchmark folders.Tyge Løvset
2021-11-05Changed array expansion policy from 1.625x to 1.5xTyge Løvset
2021-11-04Added command line args to shootout2_cmap.cppTyge Løvset
2021-11-04More shootout2_cmap updatesTyge Løvset