1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2024-11-13 11:04:27 -05:00

Rust: make funcs public

This commit is contained in:
Alex Kotov 2022-01-31 05:38:35 +05:00
parent 097c6821b9
commit e032b1df8e
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -1,21 +1,19 @@
#[cfg(test)]
use libc::{c_char, c_int};
#[cfg(test)]
#[link(name = "kernaux")]
extern "C" {
#[link_name = "kernaux_utoa"]
fn utoa(value: u64, buffer: *mut c_char, base: c_int) -> *mut c_char;
pub fn utoa(value: u64, buffer: *mut c_char, base: c_int) -> *mut c_char;
#[link_name = "kernaux_itoa"]
fn itoa(value: i64, buffer: *mut c_char, base: c_int) -> *mut c_char;
pub fn itoa(value: i64, buffer: *mut c_char, base: c_int) -> *mut c_char;
#[link_name = "kernaux_utoa10"]
fn utoa10(value: u64, buffer: *mut c_char);
pub fn utoa10(value: u64, buffer: *mut c_char);
#[link_name = "kernaux_itoa10"]
fn itoa10(value: i64, buffer: *mut c_char);
pub fn itoa10(value: i64, buffer: *mut c_char);
#[link_name = "kernaux_utoa16"]
fn utoa16(value: u64, buffer: *mut c_char);
pub fn utoa16(value: u64, buffer: *mut c_char);
#[link_name = "kernaux_itoa16"]
fn itoa16(value: i64, buffer: *mut c_char);
pub fn itoa16(value: i64, buffer: *mut c_char);
}
#[cfg(test)]