core: hash: rename b_hash_string to avoid conflict with b_string
This commit is contained in:
@@ -97,8 +97,8 @@ typedef struct b_hash_ctx {
|
||||
} ctx_state;
|
||||
} b_hash_ctx;
|
||||
|
||||
BLUE_API uint64_t b_hash_string(const char *s);
|
||||
BLUE_API uint64_t b_hash_string_ex(const char *s, size_t *len);
|
||||
BLUE_API uint64_t b_hash_cstr(const char *s);
|
||||
BLUE_API uint64_t b_hash_cstr_ex(const char *s, size_t *len);
|
||||
|
||||
BLUE_API b_status b_hash_ctx_init(b_hash_ctx *ctx, b_hash_function func);
|
||||
BLUE_API b_status b_hash_ctx_reset(b_hash_ctx *ctx);
|
||||
|
||||
@@ -24,7 +24,7 @@ struct b_string;
|
||||
.r_v = { \
|
||||
.v_cstr = { \
|
||||
.s = (str), \
|
||||
.hash = b_hash_string(str), \
|
||||
.hash = b_hash_cstr(str), \
|
||||
}, \
|
||||
}, \
|
||||
}
|
||||
@@ -36,7 +36,7 @@ struct b_string;
|
||||
.r_v = { \
|
||||
.v_cstr = { \
|
||||
.s = (str), \
|
||||
.hash = b_hash_string(str), \
|
||||
.hash = b_hash_cstr(str), \
|
||||
}, \
|
||||
}, \
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user