From 84be5c83a2e1cd06f8df2f88419b29a9b7d0dc1f Mon Sep 17 00:00:00 2001 From: Graham Date: Thu, 6 Apr 2017 07:47:44 -0400 Subject: [PATCH] HashMap: Add properties for certain functions --- lithos_c/inc/Lth_hashmap.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lithos_c/inc/Lth_hashmap.h b/lithos_c/inc/Lth_hashmap.h index e33d5fc..3c95712 100644 --- a/lithos_c/inc/Lth_hashmap.h +++ b/lithos_c/inc/Lth_hashmap.h @@ -38,6 +38,12 @@ wchar_t: Lth_HashMapFind_hash, \ int: Lth_HashMapFind_hash)((map), (expr)) +// Static Functions ----------------------------------------------------------| + +static inline void Lth_HashMapDestroy(struct Lth_HashMap *map); +static inline void Lth_HashMapAlloc(struct Lth_HashMap *map, size_t count); +static inline void Lth_HashMapBuild(struct Lth_HashMap *map); + // Type Definitions ----------------------------------------------------------| @@ -64,6 +70,10 @@ typedef struct Lth_HashMap { Lth_HashMapElem **table; Lth_Vector(Lth_HashMapElem) elem; + + __prop destroy {call: Lth_HashMapDestroy(this)} + __prop alloc {call: Lth_HashMapAlloc (this)} + __prop build {call: Lth_HashMapBuild (this)} } Lth_HashMap;