- 29 Apr, 2020 4 commits
-
-
Yukihiro "Matz" Matsumoto authored
Avoid comparing pointers and integers
-
Yukihiro "Matz" Matsumoto authored
Makes `mrb_any_to_s()` accept an object whose class is `NULL`
-
dearblue authored
-
dearblue authored
When using `mrb_any_to_s()` for debugging purposes, giving an object whose class is `NULL` no longer causes a SIGSEGV and no crash. This is achieved by making `mrb_class_name()` and `mrb_str_cat_cstr()` null safe.
-
- 28 Apr, 2020 14 commits
-
-
Yukihiro "Matz" Matsumoto authored
`assert()` can be completely removed when `NDEBUG` is set.
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Ref #4982 #4983
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
The behavior is different from CRuby, but we believe this is a right behavior for mruby, which only supports either ASCII or UTF-8 exclusively; fix #4983, ref #4982 ``` $ printf '\xe3\x81' | ruby -e 'p STDIN.readchar' "\xE3\x81" ``` ``` $ printf '\xe3\x81' | mruby -e 'p STDIN.readchar' "\xE3" ```
-
Yukihiro "Matz" Matsumoto authored
This fix only effective when `MRB_UTF8_STRING` is set.
-
Yukihiro "Matz" Matsumoto authored
- mrb_utf8len() - returns the size of a UTF-8 char (in bytes) - mrb_utf8_strlen() - returns the length of a UTF-8 string (in char)
-
Yukihiro "Matz" Matsumoto authored
The bug was introduced by #4712. The `getc' problem resurrected. It should be addressed soon.
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Test mruby-io in tmpdir when AF_UNIX cannot be created on cwd
-
- 27 Apr, 2020 9 commits
-
-
Uchio Kondo authored
-
Uchio Kondo authored
-
Uchio Kondo authored
-
Uchio Kondo authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
This reverts commit 682a31f9. Unfortunately, I couldn't run newer `bison` on TravisCI. Maybe next time.
-
Yukihiro "Matz" Matsumoto authored
If it doesn't work, I will revert the last update to `parse.y`.
-
Yukihiro "Matz" Matsumoto authored
Recent `bison` warns for `%pure-parser`. We kept it since MacOS only provide ancient `bison`, but the warning is noisy and there's no hope that Apple will upgrade `bison`. MacOS users must install the newer version of `bison`, by typing `brew install bison` for example. Note that `brew` does not overwrite the `bison` execution path automatically, so you need to update your `.bash_profile` as instructed by `brew`.
-
Yukihiro "Matz" Matsumoto authored
Integrate class `EnsureYieldBreak` under test
-
- 26 Apr, 2020 5 commits
-
-
Yukihiro "Matz" Matsumoto authored
Reduce `struct mrb_context`
-
Yukihiro "Matz" Matsumoto authored
Remove unused `mruby-error` in `mruby-bin-mruby`
-
dearblue authored
-
dearblue authored
-
dearblue authored
-
- 24 Apr, 2020 5 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Support `undef` for `mrb_ary_splice()` instead of `[]`
-
Yukihiro "Matz" Matsumoto authored
Removed comments mentioning `MRB_WITHOUT_FLOAT`; ref 2e661e82
-
dearblue authored
The comment is for messages when `MRB_INT16` and `MRB_WITHOUT_FLOAT` are specified at the same time. The comment itself is no longer needed now that `MRB_INT16` is gone.
-
dearblue authored
When removing elements from an array, it is possible to avoid creating an empty array. Before this patch: ```c mrb_ary_splice(mrb, ary, head, len, mrb_ary_new(mrb)); ``` After this patch: ```c mrb_ary_splice(mrb, ary, head, len, mrb_undef_value()); ```
-
- 22 Apr, 2020 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
Thank you @shuujii to additional report on #4973
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
The difference between `mrb_singleton_class` and `mrb_singleton_class_ptr`: - `mrb_singleton_class_ptr` returns `struct RClass*`. - `mrb_singleton_class_ptr` returns `NULL` on immediate values where `mrb_singleton_class` raises exceptions.
-