mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 15:26:30 +03:00
Remove mangling for dc_strbuilder_cat() and dc_strdup()
This commit is contained in:
@@ -33,7 +33,6 @@ pub unsafe extern "C" fn dc_strbuilder_init(
|
|||||||
(*strbuilder).free = (*strbuilder).allocated - 1i32;
|
(*strbuilder).free = (*strbuilder).allocated - 1i32;
|
||||||
(*strbuilder).eos = (*strbuilder).buf;
|
(*strbuilder).eos = (*strbuilder).buf;
|
||||||
}
|
}
|
||||||
#[no_mangle]
|
|
||||||
pub unsafe extern "C" fn dc_strbuilder_cat(
|
pub unsafe extern "C" fn dc_strbuilder_cat(
|
||||||
mut strbuilder: *mut dc_strbuilder_t,
|
mut strbuilder: *mut dc_strbuilder_t,
|
||||||
mut text: *const libc::c_char,
|
mut text: *const libc::c_char,
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ pub unsafe extern "C" fn dc_exactly_one_bit_set(mut v: libc::c_int) -> libc::c_i
|
|||||||
}
|
}
|
||||||
/* string tools */
|
/* string tools */
|
||||||
/* dc_strdup() returns empty string if NULL is given, never returns NULL (exits on errors) */
|
/* dc_strdup() returns empty string if NULL is given, never returns NULL (exits on errors) */
|
||||||
#[no_mangle]
|
|
||||||
pub unsafe extern "C" fn dc_strdup(mut s: *const libc::c_char) -> *mut libc::c_char {
|
pub unsafe extern "C" fn dc_strdup(mut s: *const libc::c_char) -> *mut libc::c_char {
|
||||||
let mut ret: *mut libc::c_char = 0 as *mut libc::c_char;
|
let mut ret: *mut libc::c_char = 0 as *mut libc::c_char;
|
||||||
if !s.is_null() {
|
if !s.is_null() {
|
||||||
|
|||||||
Reference in New Issue
Block a user