summaryrefslogtreecommitdiffhomepage
path: root/include/stc/forward.h
AgeCommit message (Collapse)Author
2023-08-21Some cleanups.Tyge Løvset
2023-08-17Simplified access to utf8 character .chr in cstr / csview / crawstr ↵tylov
iterators. Backward compatibility kept, but deprecated.
2023-08-17Renamed "internal" csview member .str => .buf, as it is not null terminated ↵Tyge Lovset
like crawstr .str member.
2023-08-14Reverted csubstr => csview. Sorry about that!Tyge Løvset
Added crawstr to become the null-terminated string view.
2023-08-13API CHANGES:tylov
Changed csview: becomes a null-terminated string view. Added csubview: a null-terminated string view/span, like previous csview. Note that csview works like a csubview, so not much compability issues should arise. However, some functions have changed from _sv suffix to _ss.
2023-08-08Reverted cco_cleanup => cco_final. (cco_cleanup deprecated).Tyge Løvset
Updated generator.c example. Misc internal refactoring.
2023-07-26Added cmap_emplace_key() / csmap_emplace_key()tylov
More docs.
2023-06-09Fixed issues with linking params i_implement, i_extern.Tyge Løvset
2023-05-18Huge update: cqueue and cdeq completely rewritten. cvec and cdeq API ↵Tyge Lovset
harmonized. Docs update/improved.
2023-04-26Internal.Tyge Lovset
2023-04-20cmap Updates to dev43 standard.Tyge Løvset
2023-04-20Minor internal cmap updates.Tyge Løvset
2023-04-19Internal refactoring in cmap. Should be easy to convert to robinhood hash ↵Tyge Løvset
from here.
2023-04-18Removed unneeded custom size type in maps and bits.h. Prepared for possible ↵Tyge Løvset
robin-hood impl. Improved sso_bench.c testing string hash - twice as fast as m.ankeln robin impl !?.
2023-03-22Added c_foreach_r() macro for reverse iter of cvec, cdeq, cstack.Tyge Løvset
Moved c_find_if, c_erase_if, c_eraseremove_if to algo/filter.h Internals.
2023-02-11Some more docs. Renamed (half-)internal template parameter i_size => ↵Tyge Løvset
i_ssize. Updated external cpp maps for benchmarks.
2023-02-10Added struct name to typedef to allow container pointer predecarations.Tyge Løvset
2023-02-03Temporary commit. Will cleanup cspan and usage.Tyge Løvset
2023-02-02Fixed to allow int64_t sized maps. (defaults to 32-bit).Tyge Løvset
2023-02-01Massive update from unsigned sizes and indices to signed.Tyge Lovset
2023-01-31Converted all containers but the maps and examples to signed sizes and indices.Tyge Løvset
2023-01-04Bump to 2023Tyge Løvset
2023-01-03- Removed nomem_error member in csmap and cmap_X_result; test for res.ref == ↵Tyge Løvset
NULL instead! - Corrected handling of malloc/realloc failure in both csmap/cmap.
2022-11-27Removed dependence to STC_CSTR_V1.Tyge Løvset
2022-11-21Changed internal representation of cdeq. All containers in STC can now be ↵Tyge Løvset
initialized with {NULL}.
2022-11-14Changed internal rep of cvec. May now be initialized with {NULL} as default.Tyge Løvset
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-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-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-09-24Fixes for csview and cstr sub-types (_value and _iter).Tyge Løvset
2022-09-10Internal renamings to discourage use of private struct fields.Tyge Løvset
2022-08-12More misc changes carc/cbox, cdeq/cvec.Tyge Lovset
2022-08-11Renamed all iter members ._end to .end, to make them "public".Tyge Lovset
2022-08-10Fixed cdeq, cvec, cmap and cstack: iterators .ref is now NULL when it is ↵Tyge Løvset
end(). clist and csmap/cset already has this property.
2022-08-09Experiment with other type of iterator. Does not compile.Tyge Løvset
2022-07-31Changed cmap struct internal rep. so that load-factor is first: useful for ↵Tyge Løvset
global initialization of maps. This changes ABI, but so far STC has no stable ABI guarantees.
2022-07-06Version 3.7. Make sure to check NEWS/Changes in README.md for a few ↵Tyge Løvset
code-breaking API changes.
2022-06-01Converted all files with DOS line endings to LINUX.Tyge Løvset
2022-05-29Renamed 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-07Updated 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-06Made cstr_buffer() func. public, and docs for cstr_sv() - convert to csview.Tyge Lovset
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-22Swapped cstr.h with alt/cstr.h with SSO (short string optimization). #define ↵Tyge Løvset
STC_OLD_CSTR 1 to use previous string (only 8 byte rep).
2022-04-17alt/cstr.h (sso string): added cstr_replace_all(). Header examples updated ↵Tyge Løvset
to use cstr_str(&s) instead of s.str. Some docs updates.
2022-04-06Refactoring cbits.h and sso alt/cstr.hTyge 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-30More unification of cstr and cstr_sso.Tyge Lovset