forked from GitHub/gf-core
in libgu mark explicitly all functions that belong to the API
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include <gu/hash.h>
|
||||
|
||||
GuHash
|
||||
GU_API GuHash
|
||||
gu_hash_bytes(GuHash h, const uint8_t* buf, size_t len)
|
||||
{
|
||||
for (size_t n = 0; n < len; n++) {
|
||||
@@ -25,7 +25,7 @@ gu_int_hash_fn(GuHasher* self, const void* p)
|
||||
return (GuHash) *(const int*) p;
|
||||
}
|
||||
|
||||
GU_API_DATA GuHasher gu_int_hasher[1] = {
|
||||
GU_API GuHasher gu_int_hasher[1] = {
|
||||
{
|
||||
{ gu_int_eq_fn },
|
||||
gu_int_hash_fn
|
||||
@@ -46,7 +46,7 @@ gu_addr_hash_fn(GuHasher* self, const void* p)
|
||||
return (GuHash) (uintptr_t) p;
|
||||
}
|
||||
|
||||
GU_API_DATA GuHasher gu_addr_hasher[1] = {
|
||||
GU_API GuHasher gu_addr_hasher[1] = {
|
||||
{
|
||||
{ gu_addr_eq_fn },
|
||||
gu_addr_hash_fn
|
||||
@@ -69,7 +69,7 @@ gu_word_hash_fn(GuHasher* self, const void* p)
|
||||
return (GuHash) (uintptr_t) p;
|
||||
}
|
||||
|
||||
GU_API_DATA GuHasher gu_word_hasher[1] = {
|
||||
GU_API GuHasher gu_word_hasher[1] = {
|
||||
{
|
||||
{ gu_word_eq_fn },
|
||||
gu_word_hash_fn
|
||||
|
||||
Reference in New Issue
Block a user