From 6669cf3862384f86899f3561107c5c60bbe87e17 Mon Sep 17 00:00:00 2001 From: zhanghuanhuan Date: Wed, 1 Nov 2023 16:39:31 +0800 Subject: [PATCH] add marco ST_BAD and ST_INT for brace file --- bash-5.1/r_braces/src/lib.rs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 bash-5.1/r_braces/src/lib.rs diff --git a/bash-5.1/r_braces/src/lib.rs b/bash-5.1/r_braces/src/lib.rs new file mode 100644 index 00000000..d92371cb --- /dev/null +++ b/bash-5.1/r_braces/src/lib.rs @@ -0,0 +1,27 @@ +use libc::*; +use r_bash::*; + +pub type __intmax_t = libc::c_long; +pub type intmax_t = __intmax_t; +// pub type mbstate_t = __mbstate_t; + +pub const _ISdigit: libc::c_uint = 2048; +pub const _ISalpha: libc::c_uint = 1024; +const CHAR_BIT : libc::c_int = 8 as libc::c_int; +static mut errno : libc::c_int = 0 as libc::c_int; + +#[macro_export] +macro_rules! ST_BAD { + () =>{ + 0 as libc::c_int + } +} + +#[macro_export] +macro_rules! ST_INT { + () =>{ + 1 as libc::c_int + } +} + + -- Gitee