aboutsummaryrefslogtreecommitdiff
path: root/map.h
AgeCommit message (Collapse)AuthorFilesLines
2025-12-16delete functions which were exposed as unusedRandy Palamar1-15/+0
2025-12-16mark all functions in headers with VIS_EXPORT or VIS_INTERNALRandy Palamar1-15/+15
if vis actually wants to be a library exported symbols may need mark up depending on the platform (eg. __declspec(dllexport)). This needs to be hidden behind a macro because the way you export is not the same on every platform. I did this based on the assumption that vis.h was supposed to be the only interface to the "vis" library. Since nobody actually uses vis as a library I have no idea if this is actually correct. Anyway marking up all prototypes like this allows for one to convert all functions to static if a single translation unit is used by inserting at the start: #define VIS_INTERNAL static #define VIS_EXPORT static
2025-12-08map: stop setting errno on errorRandy Palamar1-4/+3
the return of these functions already give all the necessary information. this is not c standard library code, we have no need of such a nonsensical error reporting mechanism NOTE: since errno needs to be thread local accessing it from non-libc code ends up being a function call and serves as a pointless optimization barrier.
2025-06-13doc: fix Doxygen comments for map.hMatěj Cepl1-23/+53
2020-11-13map: remove no longer used map_leaf functionMarc André Tanner1-5/+0
2017-05-03map: convert comments to doxygen formatMarc André Tanner1-22/+61
2017-02-02map: remove unused functionMarc André Tanner1-2/+0
2017-01-16map: add map_leaf utility functionMarc André Tanner1-0/+3
Tests whether the given prefix can be extended to exactly one map element i.e. true iff the prefix map contains exactly one element.
2016-12-29map: implement map_prefix_deleteMarc André Tanner1-0/+2
2016-12-29map: implement map_firstMarc André Tanner1-0/+2
2016-04-21map: add map_free_full utility functionMarc André Tanner1-0/+2
2016-01-13map: implement map_copyMarc André Tanner1-0/+2
Copies all entries from one map to another, overwriting existing entries.
2015-09-13map: introduce map_contains utility functionMarc André Tanner1-0/+3
2015-03-18Crit-bit tree based mapMarc André Tanner1-0/+34
It supports lookups based on unique prefixes as well as ordered iteration. More information about the data structure can be found at: http://cr.yp.to/critbit.htm http://github.com/agl/critbit http://ccodearchive.net/info/strmap.html It will be used to implement ":"-commands which means any unique prefix will be recognized as a command. It could also be used to implement (runtime) key bindings.