core: hash: rename b_hash_string to avoid conflict with b_string
This commit is contained in:
@@ -16,7 +16,7 @@ void b_rope_init_cstr(struct b_rope *rope, const char *s)
|
||||
{
|
||||
memset(rope, 0x0, sizeof *rope);
|
||||
rope->r_flags = B_ROPE_F_CSTR;
|
||||
rope->r_v.v_cstr.hash = b_hash_string_ex(s, &rope->r_len_total);
|
||||
rope->r_v.v_cstr.hash = b_hash_cstr_ex(s, &rope->r_len_total);
|
||||
rope->r_len_left = rope->r_len_total;
|
||||
|
||||
char *s2 = malloc(rope->r_len_total + 1);
|
||||
@@ -36,7 +36,7 @@ void b_rope_init_cstr_borrowed(struct b_rope *rope, const char *s)
|
||||
memset(rope, 0x0, sizeof *rope);
|
||||
rope->r_flags = B_ROPE_F_CSTR_BORROWED;
|
||||
rope->r_v.v_cstr.s = s;
|
||||
rope->r_v.v_cstr.hash = b_hash_string_ex(s, &rope->r_len_total);
|
||||
rope->r_v.v_cstr.hash = b_hash_cstr_ex(s, &rope->r_len_total);
|
||||
rope->r_len_left = rope->r_len_total;
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ void b_rope_init_cstr_static(struct b_rope *rope, const char *s)
|
||||
memset(rope, 0x0, sizeof *rope);
|
||||
rope->r_flags = B_ROPE_F_CSTR_STATIC;
|
||||
rope->r_v.v_cstr.s = s;
|
||||
rope->r_v.v_cstr.hash = b_hash_string_ex(s, &rope->r_len_total);
|
||||
rope->r_v.v_cstr.hash = b_hash_cstr_ex(s, &rope->r_len_total);
|
||||
rope->r_len_left = rope->r_len_total;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user