summaryrefslogtreecommitdiffhomepage
path: root/examples/complex.c
AgeCommit message (Collapse)Author
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-03renamed __init to _initsTyge Løvset
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-18Changed macro to c_forrange (..), iter param first.Tyge Løvset
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-16Added some missing templates in cmap.Tyge Løvset
2020-09-16Changed earlier declare_<container>(..) macro to typedef_<container>(..)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-14Removed warnings. clang, vs.Tyge Løvset
2020-09-03Changed constant <container>_init to <container>_ini to avoid conflict with ↵Tyge Løvset
<container>_init() method. Reverted name cprique back to cpqueue.
2020-09-02Added cqueue.h and cstack.h adapters. Updated cpqueue.h API to be more ↵Tyge Løvset
consistent.
2020-08-28Finished adding RawValue API (convertable values) to containers.tylo
2020-08-09Simplified carray API.Tyge Løvset
2020-07-28Lowercase namingTyge Løvset
2020-07-27API CHANGES: Made types all lower case. E.g.: CMap_<tag> => cmap_<tag>, ↵Tyge Løvset
CList_<tag> => clist_<tag>. Note: CStr => cstr_t, CBitset => cbitset_t
2020-07-27Renamed carray<123>_<tag> to carray<123><tag>.Tyge Løvset
2020-07-25Reverted CArr to CArray again.Tyge Løvset
2020-07-22Renamed CArray to CArr. Renamed cmap_xx_get() to cmap_xx_find(). Changed ↵Tyge Løvset
_front() and _back() signatures.
2020-07-17Renamed chash.h to cmap.h and added cset.hTyge Løvset
2020-07-16Updated includes to reflect rename of cvec.h and cstr.hTyge Løvset
2020-07-16API CHANGES: CHash now splitted to CMap / CSet, still in chash.h header. ↵Tyge Løvset
Renamed cstring.h -> cstr.h, cvector.h -> cvec.h
2020-07-16CHanged API: Renamed CString to CStr and CVector to CVec. All function names ↵Tyge Løvset
are changed likewise.
2020-07-14Redefined declare_CHash() interface, reverted back to original. ↵Tyge Løvset
declare_CHash(tag, Key, Value, ...). To define sets, use declare_CHash_set(tag, Key, ...); with only two params, you also may use: declare_CHash(tag, Key). Also added method: at, which works like c++ map[key] operator: inserts a new key if not existing (with given value 0), else return existing. Useful for e.g: ++chash_ii_at(&map, key, 0)->value;
2020-06-25Added carrayN_makeFrom(..., array, own) to create from a externally created ↵Tylo
C array. A few fixes.
2020-06-25Updated carray.h: renamed carray_xdim to separate carray1_xdim, ↵Tylo
carray2_xdim, etc. Added complex.c example.