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

Rust: make constants more readable

This commit is contained in:
Alex Kotov 2022-05-30 15:10:32 +03:00 committed by GitHub
parent 68dc376052
commit ae7662d125
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,11 +1,11 @@
use libc::{c_char, c_int};
pub const UTOA_BUFFER_SIZE: usize = 65;
pub const ITOA_BUFFER_SIZE: usize = 66;
pub const UTOA10_BUFFER_SIZE: usize = 21;
pub const ITOA10_BUFFER_SIZE: usize = 21;
pub const UTOA16_BUFFER_SIZE: usize = 17;
pub const ITOA16_BUFFER_SIZE: usize = 18;
pub const UTOA_BUFFER_SIZE: usize = 64 + 1;
pub const ITOA_BUFFER_SIZE: usize = 65 + 1;
pub const UTOA10_BUFFER_SIZE: usize = 20 + 1;
pub const ITOA10_BUFFER_SIZE: usize = 20 + 1;
pub const UTOA16_BUFFER_SIZE: usize = 16 + 1;
pub const ITOA16_BUFFER_SIZE: usize = 17 + 1;
#[link(name = "kernaux")]
extern "C" {