- 05 Apr, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Use `mrb_proc_arity` instead of `Proc#arity` call in `Method#arity`
-
Yukihiro "Matz" Matsumoto authored
Modify `#else` and `#endif` annotations in `src/fmt_fp.c` [ci skip]
-
- 04 Apr, 2019 1 commit
-
-
KOBAYASHI Shuji authored
-
- 03 Apr, 2019 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
Remove unnecessary `_set_output_format` call
-
KOBAYASHI Shuji authored
-
KOBAYASHI Shuji authored
Three-digit exponent issue was fixed via another workaround (63b8f5cf).
-
- 02 Apr, 2019 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
Pad leading zero to month and day in `MRUBY_RELEASE_DATE`
-
KOBAYASHI Shuji authored
For Ruby compatibility.
-
Yukihiro "Matz" Matsumoto authored
Fix modifiable class name
-
- 01 Apr, 2019 2 commits
-
-
KOBAYASHI Shuji authored
Fix the following example: Object.const_set :A, Module.new{const_set :B, Class.new} ab = A::B.to_s p ab #=> "A::B" # Good ab[0] = "x" p A::B.to_s #=> "x::B" # Bad
-
Yukihiro "Matz" Matsumoto authored
The addresses for packed inline symbols reference `mrb->symbuf` that could be overridden by the later call of `mrb_sym2name_len`. Since file names in call stack information are kept as symbols, keeping the address in the C structures could cause problems like #4342. This changes small incompatible changes in function prototypes: * `mrb_parser_get_filename`: return value changed to `mrb_sym`. * `mrb_debug_get_filename`: add `mrb_state*` as a first argument. * `mrb_debug_get_line`: ditto. I believe above functions are almost internal, and no third-party mrbgem use them.
-
- 31 Mar, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix warning: '*' interpreted as argument prefix
-
KOBAYASHI Shuji authored
-
- 30 Mar, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Add `pass` and `flunk` to `test/assert.rb`
-
KOBAYASHI Shuji authored
-
- 29 Mar, 2019 4 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix missing assertions in `mruby-math` test
-
Yukihiro "Matz" Matsumoto authored
fixes build on OpenBSD.
-
Tomoyuki Sahara authored
fixes build on OpenBSD.
-
KOBAYASHI Shuji authored
-
- 28 Mar, 2019 5 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Use `mrb_sym2str` in implementation of `Symbol#to_s`
-
KOBAYASHI Shuji authored
-
- 27 Mar, 2019 5 commits
-
-
Yukihiro "Matz" Matsumoto authored
* rename `sym2name` to `sym2name_len`. * `MRB_API` -> `static`
-
Yukihiro "Matz" Matsumoto authored
Remove unused variable in `each_backtrace()`
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
For short symbols with alpha numeric characters, `mrb_sym2name_len()` returns the same buffer `mrb->symbuf`. Some occasion, we forget the fact that the second call could overwrite the result of first call of the function. We have prepared the static function `sym2name()` which specifies the buffer region for inline packed symbols and use the function in `mrb_sym_to_s`.
-
Yukihiro "Matz" Matsumoto authored
-
- 26 Mar, 2019 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix dealing with infinity and NaN in `test/assert.rb:assert_float`
-
KOBAYASHI Shuji authored
`assert_float` is always passed when expected value and/or actual value are infinity or NaN. This behavior seems unintentional. Before this patch: assert_float(Float::INFINITY, 1.0) #=> pass assert_float(-Float::INFINITY, 1) #=> pass assert_float(1, 1/0) #=> pass assert_float(1, -1/0) #=> pass assert_float(1.0, Float::NAN) #=> pass assert_float(Float::NAN, 1) #=> pass After this patch: assert_float(Float::INFINITY, 1.0) #=> fail: Expected 1.0 to be Infinity. assert_float(-Float::INFINITY, 1) #=> fail: Expected 1 to be -Infinity. assert_float(1, 1/0) #=> fail: Expected Infinity to be 1. assert_float(1, -1/0) #=> fail: Expected -Infinity to be 1. assert_float(1.0, Float::NAN) #=> fail: Expected NaN to be 1.0. assert_float(Float::NAN, 1) #=> fail: Expected 1 to be NaN.
-
Yukihiro "Matz" Matsumoto authored
Functions to add prototypes to headers: * mrb_ary_splice() * mrb_notimplement() * mrb_vformat() * mrb_cstr_to_dbl() * mrb_cstr_to_inum() Functions to be made `static` (`MRB_API` was not needed): * mrb_mod_module_function() * mrb_obj_hash() * mrb_str_len_to_inum() Functions to remove `MRB_API` from definitions (referenced from within `libmruby`): * mrb_mod_cv_defined() * mrb_mod_cv_get() * mrb_f_send()
-
- 25 Mar, 2019 6 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Remove implementation of `Symbol#===`
-
KOBAYASHI Shuji authored
For reducing program size.
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
- 24 Mar, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix arguments spec in `src/proc.c`
-
Yukihiro "Matz" Matsumoto authored
Refactor `t_print` for test
-