Skip to content

Conversation

@wordijp
Copy link

@wordijp wordijp commented Apr 22, 2020

  • Fixed warning for rustc 1.42.0.
  • Fixed some bug.
  • Fixed FAILED test with cargo test
  • Support mruby 2.1.0.
    • two stages from 1.2.0 to 1.4.1 and 2.1.0.
      • mrb_int changed int32_t to int64_t since mruby 1.4.1.

wordijp added 20 commits March 9, 2020 13:57
warning: use of deprecated item 'try': use the `?` operator instead
warning: trait objects without an explicit `dyn` are deprecated
warning: variant `MRB_TT_FALSE` should have an upper camel case name
warning: `#[inline]` is ignored on function prototypes
warning: the type `bool` does not permit being left uninitialized
warning: use of deprecated item 'core::str::<impl str>::trim_right_matches': superseded by `trim_end_matches`
warning: variable does not need to be mutable
warning: unused return value of `std::clone::Clone::clone` that must be used
- C side `[const] char*` is Rust side `*const c_char` or `*const c_uchar`
- C side `void*` is Rust side `*const u8`
How to fix:
mrb_load_nstring_cxt in the callback called by mrb_define_method throws an exception when an Exception occurs,
which cannot be caught with panic::catch_unwind.
I am changing so that no exception is thrown.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant