| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2022-05-30 | Large refactoring on strings / utf8 and some file structure. | Tyge Lovset | |
| 2022-05-29 | Internal: Changed using i_keyraw to using _cx_raw or _cx_rawkey typedefs: ↵ | Tyge Lovset | |
| avoids problem when i_keyraw is pointer. | |||
| 2022-05-29 | Renamed cstr_replace_first() => cstr_replace_one(). | Tyge Lovset | |
| cstr.h now #include "utf8.h". Added iterator (utf8) to cstr and other utf8 functions postfixed by _u8(). Also renamed some utf8 functions in csview to better names. | |||
| 2022-05-27 | Some changes in utf8.h | Tyge Løvset | |
| 2022-05-27 | Small optimizes in utf8.h | Tyge Løvset | |
| 2022-05-25 | Fixed #25: "behaviour of cstr_clear is suprising": Resets size to 0, while ↵ | Tyge Løvset | |
| keeping current allocation. | |||
| 2022-05-25 | Final reorg of cbits.h. This was really an experiment to make it dual ↵ | Tyge Løvset | |
| fixed-sized and dynamic. | |||
| 2022-05-24 | API change: cbits now uses container pointers args in all member functions, ↵ | Tyge Løvset | |
| except clone() ... for now. All containers may get same treatment! which will be a rather big API change. This was needed after testing fixed size cbits performance with pass-by-value: was very slow for large bitsets: now faster than std::bitset<>. Also reverted previous cbits_set_value(): much faster because it is branchless. | |||
| 2022-05-24 | Changed c_forpair(k, v, Map, map) so that k and v are pointers instead of ↵ | Tyge Løvset | |
| values. This to make it consistent with c_foreach, c_apply, c_apply_arr. | |||
| 2022-05-24 | Reverted back to some older code | Tyge Løvset | |
| 2022-05-23 | Bugfix: cstr_find_s() returned bool. Fix return size_t. | Tyge Løvset | |
| 2022-05-23 | Renamed cstr_find_n(self, search, pos, nmax) => cstr_find_from(self, pos, ↵ | Tyge Løvset | |
| search), and cstr_replace_first(self, search, repl) => cstr_replace_first(self, pos, search, repl). // returns pos after replaced str. | |||
| 2022-05-23 | Small simplify in cbits.h | Tyge Løvset | |
| 2022-05-23 | Finished cbits.h ; only inlined funcs are templated. | Tyge Løvset | |
| 2022-05-22 | Changed c_apply(v, ..) macro to make it more consistent with c_apply_arr(v, ↵ | Tyge Løvset | |
| ..) and c_foreach (i, ..): v changed to a pointer - not value. Note: also c_pair(v) is changed correspondingly, so usage with c_apply(v) is unchanged. | |||
| 2022-05-22 | Rewrote cbits to make it dual: fixed-sized or dynamically sized by adding ↵ | Tyge Løvset | |
| optional i_len template parameter. Renamed cbits_set_values() to cbits_set_pattern(). Added example bits2.c | |||
| 2022-05-20 | Removed cstr_from_replace_all_sv(), Added cstr_replace_first(). Renamed ↵ | Tyge Løvset | |
| argument names. | |||
| 2022-05-19 | Some extra test on template params. Update shape.c example. | Tyge Løvset | |
| 2022-05-19 | Added _toval() in carc and cbox. Added dynamic polymorphism example, shape.c. | Tyge Løvset | |
| 2022-05-18 | Formatted carc.h cbox.h: also simplified; removed _get() -> was same as ↵ | Tyge Løvset | |
| _toraw(), see template.h diff. | |||
| 2022-05-16 | Changed contructor names in carr2/carr3 to be more consistent with other ↵ | Tyge Løvset | |
| containers. | |||
| 2022-05-13 | Changed csview c_PRIsv macro. Now must be prefixed with "%", to match with ↵ | Tyge Løvset | |
| PRIxYYY macros from inttypes.h. E.g. printf("%40" c_PRIsv "\n", c_ARGsv(sv)); to specify 40 character right aligned output of sv. Check your usage. | |||
| 2022-05-13 | Added cstr_assign_s(), and changed return type to char* for cstr_assign*() ↵ | Tyge Løvset | |
| and cstr_append*(), i.e. the pointer to the (possible new) string buffer. | |||
| 2022-05-13 | Fixed bug in cstr_assign_n(). Thanks to murtazahakim for reporting. | Tyge Løvset | |
| 2022-05-13 | constness and code formatting. | Tyge Lovset | |
| 2022-05-12 | i_keyfrom/i_valfrom no longer used with i_key_bind/i_val_bind. Is considered ↵ | Tyge Løvset | |
| optional for enabling emplace. | |||
| 2022-05-12 | Fixed issues with i_keyfrom/i_valfrom | Tyge Løvset | |
| 2022-05-12 | Reverted some back, and made c_less_cmp() safer. | Tyge Løvset | |
| 2022-05-11 | Added robustness (hopefully). | Tyge Løvset | |
| 2022-05-11 | Added i_less template param as alternative to i_cmp. | Tyge Løvset | |
| 2022-05-11 | minor cleanup cmap | Tyge Løvset | |
| 2022-05-10 | Renamed (newish) functions expand_uninitialized to expand_uninit. + some ↵ | Tyge Lovset | |
| minor changes. | |||
| 2022-05-09 | Formatting only. | Tyge Løvset | |
| 2022-05-09 | Small improvement in c_default_hash() | Tyge Løvset | |
| 2022-05-07 | Updated alt/csmap.h to be synced with current csmap.h; alt-version allocates ↵ | Tyge Løvset | |
| each node separately on the heap, regular uses an array. Now alt-version of csmap and cstr can be used by defining -DSTC_CSMAP_V1 and -DSTC_CSTR_V1 when compiling. Improved code readability by making line breaks after if and while (also cmap.h). Note, the alt-versions may be removed in the future, but the alt csmap.h may be made into an intrusive sorted map, where the creation and destruction of nodes must be done by the user. | |||
| 2022-05-06 | Changed find_if() again. Now 3 iterator variants only. | Tyge Løvset | |
| 2022-05-06 | Internal: made c_sv(lit) available after include ccommon.h and forward.h | Tyge Lovset | |
| 2022-05-06 | Made cstr_buffer() func. public, and docs for cstr_sv() - convert to csview. | Tyge Lovset | |
| 2022-05-05 | Swapped two arguments in c_find_if/c_find_it. Changed c_container_of(). | Tyge Løvset | |
| 2022-05-05 | Added type-checked c_container_of() macro using typeof (C23, gcc, clang, ↵ | Tyge Løvset | |
| tcc). c_unchecked_container_of() must be used by lib. | |||
| 2022-05-04 | Small change in find_if/it macro + doc of index variable. | Tyge Løvset | |
| 2022-05-04 | Added c_find_if, c_find_it macros: linear search in containers. Removed ↵ | Tyge Løvset | |
| c_apply_cnt macro. | |||
| 2022-05-03 | Minor adjustments to previous commit. | Tyge Løvset | |
| 2022-05-03 | Added push front/back of existing nodes. | Tyge Løvset | |
| 2022-05-02 | Merge branch 'master' of github.com:tylov/STC | Tyge Løvset | |
| 2022-05-02 | Fix linkage issue with clist_X_count(). | Tyge Løvset | |
| 2022-05-02 | Fixed undefined behaviour (but working) code in carc. | Tyge Løvset | |
| 2022-05-01 | - Array expansions (insert, reserve, clone) are now checked for malloc ↵ | Tyge Lovset | |
| nomem, and result can be checked by user in cvec, cdeq, cmap, csmap (cvec/cdeq insert functions now returns pointer, not iter). - Refactoring. | |||
| 2022-04-29 | cmap/csmap cleanup incl. docs. | Tyge Løvset | |
| 2022-04-28 | _i_implement moved to user-level template parameter as i_implement. Removed ↵ | Tyge Løvset | |
| i_opt flag c_implement. Removed OLD include/alt/clist.h | |||
