summaryrefslogtreecommitdiffhomepage
path: root/examples/advanced.c
AgeCommit message (Collapse)Author
2021-12-19First commit for Version 3 of STC. Main changes are consistent rename of ↵Tyge Løvset
'_del' to '_drop' and '_compare' to '_cmp'. Also i_key_ref (earlier i_key_sptr) and i_val_ref replaced by more general i_key_bind/i_val_bind.
2021-10-29Swapped .._equals() and _equalto() functions for consistencyTyge Løvset
2021-10-29Renamed ..._value_t -> ..._value, etc. Deprecated, still works for cvec, ↵Tyge Løvset
cdeq, cmap, csmap, cslist
2021-10-06Remove side-effects from i_valdel() invocations in case it's a macro func.Tyge Lovset
2021-09-23Cleanup: Replaced c_emplace() macro with more general ↵Tyge Løvset
c_apply()/c_apply_pair() macros, and removed c_var() macro. Removed CX_emplace_items() member functions in containers used by c_emplace().
2021-09-20Renamed macros: breaking changes for Version 2.0!Tyge Lovset
c_forvar => c_autovar c_forscope => c_autoscope c_forauto => c_auto Removed: c_fordefer(x); use c_forscope(0, x) instead. Added: c_exitauto; // continue
2021-09-19Fixed errors caused by gcc -std=c99 -pedantic.Tyge Løvset
2021-09-17Updated docs.Tyge Løvset
Added i_key_csptr, i_val_csptr input macros for very easy usage of shared pointers in containers.
2021-09-08Fixed linkage stuff.Tyge Løvset
2021-06-06Added support for forward_cmap() and forward_cset(). Added support for ↵Tyge Løvset
forward_csmap() and forward_csset(). Not yet documented.
2021-05-24Split c_fordefer() into c_forvar() and c_fordefer() macros.Tyge Løvset
2021-05-24Renamed c_with => c_fordefer, and removed c_withvar. Macros were too ↵Tyge Løvset
deceiving and hid the fact that it was for-loops. Now it is more explicit.
2021-05-18Added the new c_defer(), c_with(), c_withvar() macros into the examples.Tyge Løvset
2021-05-15Renamed newly introduced internal c_cast() to c_make() for c++ ↵Tyge Løvset
compatability. Added usage.
2021-05-07Cleanup, internal renames. API: c_strhash() -> c_string_hash(), added adv() ↵Tyge Løvset
and ind() to cvec and cdeq.
2021-04-29Added new constructors to carray.h. Made cmap and csmap keys immutable. ↵Tyge Løvset
Added get() method to cmap and csmap.
2021-04-17Changed c_emplace_items(&cont, ctype, {...}) macro with c_emplace(ctype, ↵Tyge Løvset
cont, {...}): consistent with c_init(ctype, cont, {...}).
2021-03-11Renamed public *_result_t struct member names in maps/sets for consistency ↵Tyge Løvset
with iterators.
2021-03-02Fixed: renamed reserved symbols/names.Tyge Løvset
2021-02-21Renamed using_c*map_keyarg() to using_c*map_keydef().Tyge Løvset
2021-02-21Renamed emplace_put() to emplace_or_assign(). May add put() as alias to ↵Tyge Løvset
insert_or_assign().
2021-02-20Renamed push_items to emplace_nTyge Løvset
2021-02-20Rewamp of cmap/csmap API. More to come.Tyge Løvset
2021-02-16Fixed hash API.Tyge Løvset
2021-02-13Replaced default hash for cmap.Tyge Løvset
2021-02-04Changed return type it iter_t in csmap_X_find() and cmap_X_find() to be ↵Tyge Løvset
consistent.
2021-01-19Changed template args sequence in cmap.Tyge Løvset
2021-01-04Removed cmap_X_entry_t alias for cmap_X_value_t.Tyge Løvset
2021-01-04Added random pict.Tyge Løvset
2021-01-04Synced advanced.c with example 5 in cmap_api.mdTyge Løvset
2021-01-04Move and fix the advanced.c Viking example to cmap_api.mdTyge Løvset
2021-01-02Major upgrade: Added 'clone' template parameters to containers. Reorganized ↵Tyge Løvset
arg positions. Renamed csptr_X_share() to csptr_X_clone()
2021-01-02INternal: more moved template argsTyge Løvset
2021-01-02Almost internal: Swapped toRaw(), fromRaw() template arguments in containers.Tyge Løvset
2020-12-17API change: Reverted back to original name used for .val in iterators to .refTyge Løvset
2020-11-26Removed stc/cfmt.h, as _Generic requires C11. I have made it a gist: ↵Tyge Løvset
https://gist.github.com/tylov/bcc956a4779f1d14204e66a14f17beb9 All examples are reverted to use printf() instead of c_print().
2020-11-02Changed (half)-internal *_INIT to *__init macros. Minor reformatting.Tyge Løvset
2020-10-26Updates examples using cfmt.h c_print().Tyge Løvset
2020-10-14Renamed cstr() constructor to cstr_from(), cstr_from() to cstr_from_fmt().Tyge Løvset
2020-09-24Changed iter.get to iter.val member. Internal, but used external. Will not ↵Tyge Løvset
change again.
2020-09-18Changed <container>_ini macro constant to <container>_INIT, and ↵Tyge Løvset
<container>_destroy() to <container>_del.
2020-09-17Fixed range methods in cvec, and renamed typename_<container>(..) to ↵Tyge Løvset
using_<container>(..).
2020-09-16Changed earlier declare_<container>(..) macro to typedef_<container>(..)Tyge Løvset
2020-09-16Renamed two public macros.Tyge Løvset
2020-09-16Changed API to conform with std:: containers. cmap now only use first, ↵Tyge Løvset
second. for result and value types.
2020-09-15Simplified declare_ statement e.g. c_cmap(...)Tyge Løvset
2020-09-15New API Change.Tyge Løvset
2020-09-14Renamed result_t type members to first, second (from item, inserted) for ↵Tyge Løvset
conformance with std::pair
2020-09-14Got rid of c_items() macro.Tyge Løvset
2020-09-10Use cmap_emplace() rather than cmap_insert(). insert() is reduced to an ↵Tyge Løvset
alias of emplace() because it makes no sense using the std::unordered_map API.