summaryrefslogtreecommitdiffhomepage
path: root/stc/chash.h
AgeCommit message (Collapse)Author
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-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-16Renamed cstring_release to cstring_move, and removed old cstring_move func.Tyge Løvset
2020-07-15Changed API, eraseBucket(&m, index) -> eraseEntry(&m, entryPtr)Tyge Løvset
2020-07-14Merge branch 'master' of https://github.com/tylo-work/C99ContainersTyge Løvset
2020-07-14Updated declare_CHash call.Tyge 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-24Simplified maxload and shrinklimit.Tylo
2020-06-24Added shash_xx_make(initialSize) function, like cvector and carray also has.Tylo
2020-06-23Improved representation storage for CArray. Stores "owned" as highest bit in ↵Tylo
xdim.
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-21Renamed files and classes: cmap -> chash, copt -> coptionTylo