summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2019-06-08Remove "Check the usage of a NUL character" testKOBAYASHI Shuji
Because there is not assertion in this test and NUL character literal is used in other tests.
2019-06-07Replace obsolete macrosdearblue
2019-06-07Remove `Kernel#global_variables` from coreKOBAYASHI Shuji
This method is defined in `mruby-metaprog` gem.
2019-06-06Clarify `mruby-(kernel|object)-ext` gem summary; ref 8e637bdd [ci skip]KOBAYASHI Shuji
2019-06-05Drop precisions for rational when big numbersdearblue
2019-06-05Fix build error if `struct mrb_rational` is bigger than `RIStruct`dearblue
In that case, to be switched implementation with `RData`. It is based to "complex".
2019-06-05Fix not frozen in `Complex` method by `RData`dearblue
Object allocation was separated, and initialization was made common.
2019-06-05Fix memory leak in `Complex` method by `RData`dearblue
If `Data_Wrap_Struct()` raises a `NoMemoryError` exception, it will leak memory if it does `mrb_malloc()` first.
2019-06-05Merge pull request #4491 from shuujii/fix-missing-assertions-in-test-t-module.rbYukihiro "Matz" Matsumoto
Fix missing assertions in `test/t/module.rb`
2019-06-05Fix missing assertions in `test/t/module.rb`KOBAYASHI Shuji
2019-06-05Merge pull request #4489 from shuujii/fIx-typo-in-mrblib-range.rbYukihiro "Matz" Matsumoto
Fix typo in `mrblib/range.rb` [ci skip]
2019-06-05Merge pull request #4490 from dearblue/explicit-castYukihiro "Matz" Matsumoto
Need explicit cast for C++
2019-06-04Need explicit cast for C++dearblue
2019-06-04Fix typo in `mrblib/range.rb` [ci skip]KOBAYASHI Shuji
2019-06-02Merge pull request #4485 from ↵Yukihiro "Matz" Matsumoto
shuujii/fix-missing-assertions-in-mruby-objectspace-test Fix missing assertions in `mruby-objectspace` test
2019-06-02Fix missing assertions in `mruby-objectspace` testKOBAYASHI Shuji
2019-06-01Merge pull request #4482 from ↵Yukihiro "Matz" Matsumoto
shuujii/comment-out-the-empty-Array-bsearch_index-test Comment out the empty `Array#bsearch_index` test
2019-05-31Comment out the empty `Array#bsearch_index` testKOBAYASHI Shuji
2019-05-30Merge pull request #4481 from shuujii/fix-missing-assertions-in-mruby-fiber-testYukihiro "Matz" Matsumoto
Fix missing assertions in `mruby-fiber` test
2019-05-30Fix missing assertions in `mruby-fiber` testKOBAYASHI Shuji
2019-05-30Fix inverted compilation condition; fix #4478Yukihiro "Matz" Matsumoto
2019-05-29Merge pull request #4477 from ↵Yukihiro "Matz" Matsumoto
shuujii/kernel-itself-should-not-be-a-module-function `Kernel#itself` should not be a module function
2019-05-29`Kernel#itself` should not be a module functionKOBAYASHI Shuji
2019-05-29Slightly simplify `Rational#==`; ref #4475Yukihiro "Matz" Matsumoto
2019-05-29Add `mrb_alloca` again; ref #4470Yukihiro "Matz" Matsumoto
This time, the allocated memory comes from the string object, which is referenced from GC arena. The memory region will be reclaimed when the C function called from VM is terminated, or the GC arena is restored.
2019-05-29Merge pull request #4475 from shuujii/fix-Rational-eq-ComplexYukihiro "Matz" Matsumoto
Fix `Rational#==(Complex)`
2019-05-29Merge pull request #4476 from shuujii/fix-missing-assertions-in-mruby-pack-testYukihiro "Matz" Matsumoto
Fix missing assertions in `mruby-pack` test
2019-05-28Fix missing assertions in `mruby-pack` testKOBAYASHI Shuji
2019-05-28Merge pull request #4474 from ↵Yukihiro "Matz" Matsumoto
shuujii/use-undefined.equal-obj2-instead-of-obj2-eq-undefined-in-assert.rb Use `$undefined.equal?(obj2)` instead of `obj2 == $undefined` in `ass…
2019-05-27Merge pull request #4473 from ↵Yukihiro "Matz" Matsumoto
shuujii/make-some-functions-static-in-mrbgems-mruby-metaprog-src-metaprog.c Make some functions static in `mrbgems/mruby-metaprog/src/metaprog.c`
2019-05-27Use `$undefined.equal?(obj2)` instead of `obj2 == $undefined` in `assert.rb`KOBAYASHI Shuji
In case `obj2.==` is broken.
2019-05-27Fix `Rational#==(Complex)`KOBAYASHI Shuji
Consider a Numreic class like `Complex` that does not have `<=>` but `==` works (`0i == 0r` is `true`).
2019-05-27Make some functions static in `mrbgems/mruby-metaprog/src/metaprog.c`KOBAYASHI Shuji
2019-05-27Merge pull request #4470 from dearblue/remove-mrb_allocaYukihiro "Matz" Matsumoto
Remove `mrb_alloca()` function
2019-05-27Merge pull request #4472 from ↵Yukihiro "Matz" Matsumoto
shuujii/move-mrb_mod_s_nesting-to-mruby-metaprog-gem-from-the-core Move `mrb_mod_s_nesting()` to `mruby-metaprog` gem from the core
2019-05-26Merge pull request #4471 from shuujii/add-Complex.rectYukihiro "Matz" Matsumoto
Add `Complex.rect`
2019-05-26Move `mrb_mod_s_nesting()` to `mruby-metaprog` gem from the coreKOBAYASHI Shuji
2019-05-26Add `Complex.rect`KOBAYASHI Shuji
2019-05-26Remove some overhead from methods defined in Ruby in Complex.Yukihiro "Matz" Matsumoto
2019-05-26Merge pull request #4469 from dearblue/double-roundsYukihiro "Matz" Matsumoto
Fix double rounded by negative index for `String#[]`
2019-05-25Remove `mrb_alloca()` functiondearblue
When I found this function, I expected it to behave the same as the `alloca(3)` function, but it is accually the `mrb_alloca()` function does not free the heap until the `mrb_close()` function is called. Also, even if it is deleted, it can be replaced with the combination of the `MRB_TT_DATA` object and the `mrb_gv_set()` function if it is sure necessary.
2019-05-25Fix double rounded by negative indexdearblue
- Before patched: ``` $ mruby -e 'p (-12..-1).map { |i| "Hello"[i] }.join' "HelloHello" ``` - After patched: ``` $ mruby -e 'p (-12..-1).map { |i| "Hello"[i] }.join' "Hello" ```
2019-05-25Merge pull request #4467 from dearblue/naming-mrb_range_beg_lenYukihiro "Matz" Matsumoto
Name the return value of `mrb_range_beg_len()`
2019-05-25Name the return value of `mrb_range_beg_len()`dearblue
2019-05-25Merge pull request #4466 from ↵Yukihiro "Matz" Matsumoto
shuujii/fix-the-order-of-expected-and-actual-in-mruby-time-test Fix the order of "expected" and "actual" in `mruby-time` test
2019-05-24Fix the order of "expected" and "actual" in `mruby-time` testKOBAYASHI Shuji
2019-05-23Merge pull request #4463 from shuujii/freeze-Rational-and-Complex-objectsYukihiro "Matz" Matsumoto
Freeze `Rational` and `Complex` objects
2019-05-23Freeze `Rational` and `Complex` objectsKOBAYASHI Shuji
2019-05-22Merge pull request #4462 from shuujii/kernel-Rational-requires-numeratorYukihiro "Matz" Matsumoto
`Kernel#Rational` requires numerator
2019-05-22`Kernel#Rational` requires numeratorKOBAYASHI Shuji