diff options
| author | krasimir <krasimir@chalmers.se> | 2017-04-19 12:30:40 +0000 |
|---|---|---|
| committer | krasimir <krasimir@chalmers.se> | 2017-04-19 12:30:40 +0000 |
| commit | 5c93f2fba5eadaa1e516106c08d495c14a0eb647 (patch) | |
| tree | e0d2a925cc0f3c0d8ec4bac0668fb42b2a64babe /src/runtime/c/gu/map.h | |
| parent | 74ce52d761de9bc49fbb1aaf2d273d3edc34a3d6 (diff) | |
in libgu mark explicitly all functions that belong to the API
Diffstat (limited to 'src/runtime/c/gu/map.h')
| -rw-r--r-- | src/runtime/c/gu/map.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/runtime/c/gu/map.h b/src/runtime/c/gu/map.h index 50af70572..ffd937a01 100644 --- a/src/runtime/c/gu/map.h +++ b/src/runtime/c/gu/map.h @@ -15,7 +15,7 @@ struct GuMapItor { typedef struct GuMap GuMap; -GuMap* +GU_API_DECL GuMap* gu_make_map(size_t key_size, GuHasher* hasher, size_t value_size, const void* default_value, size_t init_size, @@ -32,19 +32,19 @@ gu_make_map(size_t key_size, GuHasher* hasher, #define gu_new_addr_map(K, V, DV, POOL) \ (gu_make_map(sizeof(K), gu_addr_hasher, sizeof(V), (DV), GU_MAP_DEFAULT_INIT_SIZE, (POOL))) -size_t +GU_API_DECL size_t gu_map_count(GuMap* map); -void* +GU_API_DECL void* gu_map_find_full(GuMap* ht, void* key_inout); -const void* +GU_API_DECL const void* gu_map_find_default(GuMap* ht, const void* key); #define gu_map_get(MAP, KEYP, V) \ (*(V*)gu_map_find_default((MAP), (KEYP))) -void* +GU_API_DECL void* gu_map_find(GuMap* ht, const void* key); #define gu_map_set(MAP, KEYP, V, VAL) \ @@ -53,13 +53,13 @@ gu_map_find(GuMap* ht, const void* key); *gu_map_set_p_ = (VAL); \ GU_END -const void* +GU_API_DECL const void* gu_map_find_key(GuMap* ht, const void* key); -bool +GU_API_DECL bool gu_map_has(GuMap* ht, const void* key); -void* +GU_API_DECL void* gu_map_insert(GuMap* ht, const void* key); #define gu_map_put(MAP, KEYP, V, VAL) \ @@ -68,7 +68,7 @@ gu_map_insert(GuMap* ht, const void* key); *gu_map_put_p_ = (VAL); \ GU_END -void +GU_API_DECL void gu_map_iter(GuMap* ht, GuMapItor* itor, GuExn* err); typedef struct { @@ -76,7 +76,7 @@ typedef struct { void* value; } GuMapKeyValue; -GuEnum* +GU_API_DECL GuEnum* gu_map_enum(GuMap* ht, GuPool* pool); typedef GuMap GuIntMap; |
