summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cdeq.h
AgeCommit message (Collapse)Author
2023-04-05Internal: renamed untemplate.h to template2.hTyge Løvset
2023-04-03Split priv/template.h in two files to make mksingle.sh work.Tyge Løvset
2023-03-31Added stc/extend.h: A generalized way to type-safely extend a container with ↵Tyge Lovset
new members which can be accessed from the template parameters. See examples/functor.c
2023-03-29Removed i_less_functor, i_cmp_functor, i_eq_functor and i_hash_functor: not ↵Tyge Lovset
needed. Simplified cvec_X_eq() and cdeq_X_eq()
2023-02-24Added eq function to cspan.Tyge Løvset
Final cleanup normalized var naming.
2023-02-24Added eq function to cdeq, clist, cmap, csmap, and fixed cmap eq.Tyge Løvset
2023-02-24Allow to have both i_no_cmp and i_eq defined.Tyge Løvset
2023-02-20Added c_eraseremove_if() for cvec, cdeq, cstack, cqueue in ccommon.h. Some ↵Tyge Løvset
cleanup.
2023-02-07Added custom allocator per container type.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-31Reverted c_MALLOC, c_CALLOC, c_REALLOC and c_FREE to lowercase.Tyge Løvset
2023-01-27(Reverted) c_COMPOUND() to c_LITERAL().Tyge Løvset
2023-01-19Finish last commit. Most safe function macros are now preferred lowercase, ↵Tyge Løvset
whereas flow control macros (c_FOREACH, ..) are preferred uppercase.
2023-01-19Add a from_n() method to containers (and put_n() to maps), to support new ↵Tyge Løvset
initialization.
2023-01-06Removed swap() function from all containers. Use safe c_SWAP() macro instead.Tyge Løvset
2023-01-04Bump to 2023Tyge Løvset
2022-12-31Internally renamed ccommon.h macros to uppercase. Lowercase macros are still ↵Tyge Løvset
supported via include/stc/priv/lowcase.h.
2022-12-20Restructured folders: examples, benchmarks, tests into misc folder.Tyge Lovset
2022-12-19Renames:Tyge Løvset
cstr_null => cstr_NULL csview_null => csview_NULL cstr_npos => c_NPOS csview_npos => c_NPOS c_ARGsv(sv) => c_ARGSV(sv) c_init(x) => c_INIT(x)
2022-11-23Fixed a bug in cdeq after internal data-rep change.Tyge Løvset
2022-11-22Fixes of -Wconversion warnings (not examples).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-14Internal update.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-03Renamed forward_CONTAINER(...) => declare_CONTAINER(...),Tyge Løvset
and c_is_fwd => c_declared, for the i_opt option define.
2022-10-28Renamed semi-internal macro (used for c++ compability) c_make => c_init.Tyge Løvset
2022-09-25Added: crange number generator type. (similar to c++ std::iota). Fixed ↵Tyge Løvset
c_forfilter again. Cleanups. Docs added.
2022-09-23Added assert() checks in pop-functions.Tyge Løvset
2022-09-23Enabled iteration on cqueue (like with cstack).Tyge Løvset
2022-09-22Updated _advance() iter methods. Some have signed offsets.Tyge Løvset
utf8_peek()/utf8_peek_off() added/changed.
2022-09-02Change: carc and cbox defaults to pointer comparison when none of i_cmp, ↵Tyge Løvset
i_less or i_eq is specified. This removes annoying requirement.
2022-08-16Minor polishing.Tyge Løvset
2022-08-15More iterator fixes. Make sure cvec/cdeq find_in() return end() iterator if ↵Tyge Løvset
item not found. Small cstr API change to u8_replace*.
2022-08-15Two more iter bugs fix.Tyge Lovset
2022-08-15Improved docs/ex. Fix range bug when container is empty cvec/cdeq.Tyge Lovset
2022-08-12Renamed cdeq/cvec *_range() functions again (revert). Call alloc macros in ↵Tyge Løvset
cregex.
2022-08-12More misc changes carc/cbox, cdeq/cvec.Tyge Lovset
2022-08-11cvec/cdeq insert/erase ranges fixes.Tyge Løvset
2022-08-11Minor formatting.Tyge Lovset
2022-08-11Renamed all iter members ._end to .end, to make them "public".Tyge Lovset
2022-08-11API Change cvec/cdeq: Return iter from all range operations instead of pointers.Tyge Lovset
2022-08-11Code formatting only.Tyge Lovset
2022-08-10Fixed cdeq_begin(). Optimized c_foreach: only use one iter.Tyge Løvset
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-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-21Renamed expand_uninit() functions to insert_uninit() / append_uninit().Tyge Løvset
2022-06-01Converted all files with DOS line endings to LINUX.Tyge Løvset
2022-05-29Internal: Changed using i_keyraw to using _cx_raw or _cx_rawkey typedefs: ↵Tyge Lovset
avoids problem when i_keyraw is pointer.
2022-05-13constness and code formatting.Tyge Lovset