summaryrefslogtreecommitdiffhomepage
path: root/examples
AgeCommit message (Collapse)Author
2020-07-23Changed cvecpq.h priority queue API and crandom.h APITyge Løvset
2020-07-23Added generic c_push(.., items) to push a list of items onto the containers.Tyge Løvset
2020-07-22Fixed cmap_xx_clear()Tyge Løvset
2020-07-22Add some examples.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-21renamed cstr_makeFmt to cstr_fromTyge Løvset
2020-07-211. Added initializers for containers *_from(). 2. Changed reserve(): size ↵Tyge Løvset
now means how many there actually can be filled with.
2020-07-21Cleaned up MAP API. Added 2 examles.Tyge Løvset
2020-07-21Reordered declare_CMap/CSet argument list.Tyge Løvset
Fixed examples.
2020-07-21Updated prime.c example and clist doc/example.Tyge Løvset
2020-07-19Changed API to PriorityQTyge Løvset
2020-07-19Changed vecheap.h API again.Tyge Løvset
2020-07-18Fixed geek7.c with heap. Renamed vecque.h to vecheap.hTyge Løvset
2020-07-18Some API changes on vec heap.Tyge Løvset
2020-07-18Added stc/cvecque.h : priority queue using vector as heap.Tyge Løvset
2020-07-17Fixed README's.Tyge Løvset
2020-07-17Renamed chash.h to cmap.h and added cset.hTyge Løvset
2020-07-17Added macro overload allowing zero args (not utilized). Renamed ↵Tyge Løvset
..._floatRandom() to ..._randomFloat()
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-15Merge branch 'master' of https://github.com/tylo-work/C99ContainersTyge Løvset
2020-07-15Changed API, eraseBucket(&m, index) -> eraseEntry(&m, entryPtr)Tyge Løvset
2020-07-15Update README.mdTyge Løvset
2020-07-15Updated advanced.cTyge Løvset
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.
2020-06-24Simplified maxload and shrinklimit.Tylo
2020-06-24Removed Mersenne Twister and xoroshiro functions. Added PGC32. Refactored ↵Tylo
carray.
2020-06-23Improved representation storage for CArray. Stores "owned" as highest bit in ↵Tylo
xdim.
2020-06-23Minor stuff on crandom. and STC_INLINETylo
2020-06-22Restructure declare_CHash arguments (again)Tylo
Removed forced inlining. (-> regular inline)
2020-06-22Updated CArray to support destructors, and added underscore before used ↵Tylo
defined tag - for consistency with the other containers. Changed map/set type-tag for CHash to upper case MAP/SET. Makes it clearer it is a tag and not a type or variable. Added complex example to README.md demonstrating capability of nested containers, using custom destructors.
2020-06-22Update benchmark.cTyge Løvset
2020-06-21Update README.mdTyge Løvset
2020-06-21Renamed to README.mdTylo
2020-06-21Moved examples to examples folder.Tylo