diff --git a/utshell-0.5/r_expr/src/lib.rs b/utshell-0.5/r_expr/src/lib.rs index 32532888709559b4ea090975076b8b6f0c5c3276..ec9502fc3792add2929c05efe5b0986266087c1c 100644 --- a/utshell-0.5/r_expr/src/lib.rs +++ b/utshell-0.5/r_expr/src/lib.rs @@ -45,4 +45,37 @@ use r_bash::this_command_name; use r_bash::top_level_cleanup; use r_bash::uintmax_t; use r_bash::unbound_vars_is_error; -use r_bash::SHELL_VAR; \ No newline at end of file +use r_bash::SHELL_VAR; + +pub type intmax_t = libc::c_long; +pub const EXP_EXPANDED: libc::c_int = 1; +pub const ASS_NOEXPAND: libc::c_int = 128; +pub const AV_NOEXPAND: libc::c_int = 0x20; +pub const EXECUTION_FAILURE: libc::c_int = 1; +pub const DISCARD: libc::c_int = 2; +pub const FORCE_EOF: libc::c_int = 1; +pub const PREINC: libc::c_int = 14; +pub const PREDEC: libc::c_int = 15; +pub const STR: libc::c_int = 5; +pub const NUM: libc::c_int = 6; +pub const POSTINC: libc::c_int = 16; +pub const POSTDEC: libc::c_int = 17; +pub const POWER: libc::c_int = 13; +pub const LSH: libc::c_int = 9; +pub const RSH: libc::c_int = 10; +pub const LEQ: libc::c_int = 3; +pub const GEQ: libc::c_int = 4; +pub const EQEQ: libc::c_int = 1; +pub const NEQ: libc::c_int = 2; +pub const LAND: libc::c_int = 7; +pub const LOR: libc::c_int = 8; +pub const COND: libc::c_int = 12; +pub const OP_ASSIGN: libc::c_int = 11; +pub const MAX_EXPR_RECURSION_LEVEL: libc::c_int = 1024; +pub const EXPR_STACK_GROW_SIZE: libc::c_int = 10; +pub const EQ: libc::c_char = '=' as libc::c_char; +pub const NOT: libc::c_char = '!' as libc::c_char; +pub const GT: libc::c_char = '>' as libc::c_char; +pub const LT: libc::c_char = '<' as libc::c_char; +pub const BAND: libc::c_char = '&' as libc::c_char; +pub const BOR: libc::c_char = '|' as libc::c_char; \ No newline at end of file