summaryrefslogtreecommitdiffhomepage
path: root/include
AgeCommit message (Collapse)Author
2022-04-07Partly reverted (auto defined _i_no_emplace): emplace functions only ↵Tyge Løvset
available when either i_valraw or i_keyraw was defined. Avoids potensial bugs.
2022-04-06Refactoring cbits.h and sso alt/cstr.hTyge Løvset
2022-04-02Internal refactoring/macro rename.Tyge Lovset
2022-04-01Simplified internal logic on enabling default cloningTyge Løvset
2022-03-31Some unneeded strictness removed in template.hTyge Løvset
2022-03-31More fixes on cstr <-> cstr_sso compability.Tyge Løvset
2022-03-31Removed undesirable warnings.Tyge Løvset
2022-03-30More enhancements on cstr / cstr_sso.Tyge Løvset
2022-03-30More unification of cstr and cstr_sso.Tyge Lovset
2022-03-30update on alt/cstr.h (small string optimized).Tyge Lovset
2022-03-29Refactoring in sso string.Tyge Løvset
2022-03-29Added some sso benchmarks and a minor tweak.Tyge Løvset
2022-03-26Fixed alt/cstr.h (short string optimized), so that it can be used in ↵Tyge Løvset
containers. Had to change some API in csview to make it play with that.
2022-03-25Modified (more) rarely used macros c_apply_cnt(v, ..) and c_apply_arr(v, ..) ↵Tyge Løvset
so that v is a reference that may modify the container items.
2022-03-24Added constness to c_apply* macros.Tyge Løvset
2022-03-24Misc. small internal API renaming/refactoring and additions.Tyge Løvset
2022-03-16Bugfix: carc and cbox cmp functions had bug.Tyge Løvset
Renamed: i_key_sptr / i_val_sptr to i_key_arcbox / i_val_arcbox. Other smaller updates.
2022-03-15Some docs update, ++.Tyge Løvset
2022-03-04Replaced c_strlit type with c_strlen_lit(lit) macro and its usage.Tyge Løvset
2022-03-04Updated printf formatting to portable code. This was also to use ↵Tyge Løvset
http://winlibs.com gcc+clang with ucrt runtime-libs without warnings.
2022-02-18Some improvements and cleanup: CRegex, CMap.Tyge Løvset
2022-02-16Refactoring. Added size type param to forward_cmap/csmap . Reverted ↵Tyge Løvset
c_autovar macros. Added utf8_encode (not used yet).
2022-02-14Merge pull request #19 from camel-cdr/patch-1Tyge Løvset
Fixed cmap.h for `sizeof(uint_fast8_t) != 1`
2022-02-13Added optional conditional in c_autovar and c_autoscope macros.Tyge Løvset
2022-02-13Refactored crandom. Removed 32-bit version. Made normal dist inline - does ↵Tyge Løvset
not require math lib if not used. Added stc64_randomf()
2022-02-12Fixed cmap.h for `sizeof(uint_fast8_t) != 1`Camel Coder
Adding `#define uint_fast8_t uint32_t` to examples/hashmap.c breaks the code. `_hx` of type `uint8_t` is compared to the non-truncated `b.hx` of type `uint_fast8_t`, this comparison fails when `sizeof(uint_fast8_t) != 1`.
2022-02-08Small fix.Tyge Løvset
2022-02-06Misc improvements.Tyge Løvset
2022-02-06Some build warnings/fixes.Tyge Løvset
2022-02-05Switched to heavily modified version of Rob Pike's plan9 regexp9. -> now ↵Tyge Løvset
renamed to cregex, with new API.
2022-02-04Merge branch 'master' of github.com:tylov/STCTyge Løvset
2022-02-03Fix c++ compability in cstr.Tyge Lovset
2022-01-30Replaced utf8_decode() and friends code.Tyge Løvset
2022-01-17Fixed object linkage declarations/definitions.Tyge Løvset
2022-01-16Made private functions (not called by header inlines) always static. Added ↵Tyge Løvset
required param tp examples/regex1.c.
2022-01-16Added cregex_compile() to reuse a cregex object (using realloc)). Major ↵Tyge Løvset
optimizations when using ^ and $ (removed 3 strlen calls).
2022-01-15Added back cregex with examples. Found the bug in his code.Tyge Løvset
2022-01-14Fixed function linkage spec in cstr. Moved typedefs of cstr and csview to ↵Tyge Løvset
forward.h-
2022-01-14Final utf8 api, and docs.Tyge Løvset
2022-01-14Renamed *_v() methods to *_sv(). Note: this breaks API, hopefully not too ↵Tyge Løvset
intrusive. The change was needed to be consistent in using 'sv' as a shorthand for "string view" everywhere, and is easier to understand than _v().
2022-01-14Removed cstr iter; => csview iter is now utf8 iter. See utf8.h example.Tyge Løvset
2022-01-13Changed cstr_replace_v() and added utf8_substr(). Moved/changed some code ↵Tyge Løvset
from csview.h. csview.h now include utf8.h
2022-01-13Fixed threads_demo.c and made it "identical" to the c++ example.Tyge Løvset
2022-01-13Fix a potential compilation bug in cbox/carc.Tyge Løvset
2022-01-13Fixed missing i_eq default setting in template.h, carc and cbox. ↵Tyge Løvset
cstr_substr_utf8 added.
2022-01-12Final utf8 changes.Tyge Løvset
2022-01-12Fixed utf8 API and functions.Tyge Løvset
2022-01-11Fix / simplified unistd.h and renamed some examples that uses arc. (atomic ↵Tyge Løvset
ref. count / shared_ptr)
2022-01-11Added tinycthread: include/threads.h, src/threads.c. Ex: sptr_threads.c - ↵Tyge Løvset
emulates standard C11 threads library for compilers not supporting C11 threads.h. Fixed and cleanup of CMake build.
2022-01-11Removed regex for now.Tyge Løvset