summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2019-11-22Merge pull request #4835 from ↵Yukihiro "Matz" Matsumoto
shuujii/introduce-mrb_ssize-type-for-buffer-size-on-memory Introduce `mrb_ssize` type for buffer size on memory; ref #4483
2019-11-22Allow `true`/`false` argument to `Kernel#exit`KOBAYASHI Shuji
2019-11-21Introduce `mrb_ssize` type for buffer size on memory; ref #4483KOBAYASHI Shuji
Previously, `mrb_int` was used as the type that represents the buffer size on memory, but the sizes of `RString` and `RArray` exceed 6 words when `MRB_INT64` is enabled on 32-bit CPU. I don't think it is necessary to be able to represent the buffer size on memory that exceeds the virtual address space. Therefore, for this purpose, introduce `mrb_ssize` which doesn't exceed the sizes of `mrb_int` and pointer. I think all `mrb_int` used for this purpose should be changed to `mrb_ssize`, but currently only the members of the structures (`RString`, `mrb_shared_string`, `RArray` and `mrb_shared_array`) are changed.
2019-11-20Use proper `PEEK` macro for `OP_EPUSH` in `patch_irep`; fix #4833KOBAYASHI Shuji
2019-11-19Merge pull request #4831 from ↵Yukihiro "Matz" Matsumoto
shuujii/always-enable-the-rational-and-complex-literals Always enable the rational and complex literals
2019-11-19Merge pull request #4830 from mruby/stableYukihiro "Matz" Matsumoto
Release `mruby 2.1.0`.
2019-11-19Always enable the rational and complex literalsKOBAYASHI Shuji
I think they can always be enabled because the regular expression literal is always enabled.
2019-11-19Release `mruby 2.1.0`.2.1.0Hiroshi Mimaki
2019-11-19Merge pull request #4828 from shuujii/refactor-mrb_string_value_cstrYukihiro "Matz" Matsumoto
Refactor `mrb_string_value_cstr`
2019-11-19Refactor `mrb_string_value_cstr`KOBAYASHI Shuji
- Keep `MRB_STR_ASCII` flag. - Avoid a string object creation.
2019-11-18Merge pull request #4825 from shuujii/fix-argument-specs-to-KernelYukihiro "Matz" Matsumoto
Fix argument specs to `Kernel`
2019-11-17Support short options concatenation to `mruby` commandKOBAYASHI Shuji
#### Before this patch: ``` $ bin/mruby -ce 1 bin/mruby: Cannot open program file: 1 ``` #### After this patch: ``` $ bin/mruby -ce 1 Syntax OK ```
2019-11-17Merge pull request #4826 from ↵Yukihiro "Matz" Matsumoto
shuujii/revert-Implement-Ruby2.7-frozen-strings-from-Symbol-to_s Revert "Implement Ruby2.7's frozen strings from `Symbol#to_s`"
2019-11-16Revert "Implement Ruby2.7's frozen strings from `Symbol#to_s`"KOBAYASHI Shuji
This feature was reverted from Ruby 2.7.
2019-11-15Fix argument specs to `Kernel`KOBAYASHI Shuji
2019-11-15Merge pull request #4823 from shuujii/fix-here-document-with-EOFYukihiro "Matz" Matsumoto
Fix here document with EOF
2019-11-14Fix here document with EOFKOBAYASHI Shuji
#### Before this patch: ``` $ bin/mruby -e 'p <<EOS 1 EOS' -e:4:0: can't find heredoc delimiter "EOS" anywhere before EOF -e:4:0: syntax error, unexpected $end, expecting tHEREDOC_END or tHD_STRING_PART or tHD_STRING_MID ``` #### After this patch (same as Ruby): ``` $ bin/mruby -e 'p <<EOS 1 EOS' "1\n" ```
2019-11-13Merge pull request #4821 from shuujii/use-mrb_intern_lit-if-possible-in-parse.yYukihiro "Matz" Matsumoto
Use `mrb_intern_lit` if possible in `parse.y`
2019-11-13Revert a76dc04 to resolve #4820Yukihiro "Matz" Matsumoto
2019-11-13Use `mrb_intern_lit` if possible in `parse.y`KOBAYASHI Shuji
2019-11-13Merge pull request #4819 from ↵Yukihiro "Matz" Matsumoto
shuujii/use-intern-instead-of-intern_cstr-if-possible-in-parse.y Use `intern` instead of `intern_cstr` if possible in `parse.y`
2019-11-12Use `intern` instead of `intern_cstr` if possible in `parse.y`KOBAYASHI Shuji
2019-11-12Merge pull request #4818 from shuujii/fix-argument-specs-to-IntegerYukihiro "Matz" Matsumoto
Fix argument specs to `Integer`
2019-11-11Fix argument specs to `Integer`KOBAYASHI Shuji
2019-11-11Require `Regexp.escape` before interpolating `build_dir`; fix #4817Yukihiro "Matz" Matsumoto
2019-11-11Merge pull request #4816 from ↵Yukihiro "Matz" Matsumoto
shuujii/defer-getting-caller_dir-until-needed-in-MRubyLoadGems-gem Defer getting `caller_dir` until needed in `MRuby::LoadGems#gem`
2019-11-10Defer getting `caller_dir` until needed in `MRuby::LoadGems#gem`KOBAYASHI Shuji
2019-11-10Merge pull request #4814 from shuujii/fix-argument-specs-to-IOYukihiro "Matz" Matsumoto
Fix argument specs to `IO`
2019-11-09Fix argument specs to `IO`KOBAYASHI Shuji
2019-11-08Avoid unnecessary `Symbol#to_s` call; fix #4812Yukihiro "Matz" Matsumoto
2019-11-08Merge pull request #4813 from ↵Yukihiro "Matz" Matsumoto
shuujii/remove-unneeded-dependency-from-mruby-hash-ext Remove unneeded dependency from `mruby-hash-ext`
2019-11-08Remove unneeded dependency from `mruby-hash-ext`KOBAYASHI Shuji
2019-11-08Fixed a bug in keyword arguments in block parameters; fix #4810Yukihiro "Matz" Matsumoto
This is caused by incomplete fix in #4746
2019-11-08Avoid crashing of `Array#unshift`; fix #4808Yukihiro "Matz" Matsumoto
On cases like `a.unshift(*a)`.
2019-11-08Allow here-doc before closing parentheses; ref #4796Yukihiro "Matz" Matsumoto
2019-11-08Merge pull request #4811 from ↵Yukihiro "Matz" Matsumoto
shuujii/clear-MRB_STR_SHARED-flag-in-mrb_str_modify_keep_ascii Clear `MRB_STR_SHARED` flag in `mrb_str_modify_keep_ascii`; close #4807
2019-11-07Clear `MRB_STR_SHARED` flag in `mrb_str_modify_keep_ascii`; close #4807KOBAYASHI Shuji
2019-11-06Merge pull request #4806 from ↵Yukihiro "Matz" Matsumoto
shuujii/drop-test-dependency-from-mruby-hash-ext-to-mruby-enumerator Drop test dependency from `mruby-hash-ext` to `mruby-enumerator`
2019-11-06Drop test dependency from `mruby-hash-ext` to `mruby-enumerator`KOBAYASHI Shuji
2019-11-05Merge pull request #4805 from ↵Yukihiro "Matz" Matsumoto
shuujii/remove-test-that-depend-on-mruby-enumerator-from-mruby-array-ext Remove test that depend on `mruby-enumerator` from `mruby-array-ext`
2019-11-05Remove test that depend on `mruby-enumerator` from `mruby-array-ext`KOBAYASHI Shuji
`Object.const_defined?(:Enumerator)` is always false because `mruby-enumerator` is not specified in `test_dependency`. I don't think this test is necessary.
2019-11-05Merge pull request #4804 from shuujii/avoid-using-C++-style-comments-in-parse.yYukihiro "Matz" Matsumoto
Avoid using C++ style comments (`//`) in `parse.y` [ci skip]
2019-11-04Avoid using C++ style comments (`//`) in `parse.y` [ci skip]KOBAYASHI Shuji
2019-11-03Merge pull request #4803 from shuujii/remove-unused-enum-in-mrb_cstr_to_dblYukihiro "Matz" Matsumoto
Remove unused enum in `mrb_cstr_to_dbl`
2019-11-03Remove unused enum in `mrb_cstr_to_dbl`KOBAYASHI Shuji
2019-11-02Merge pull request #4802 from shuujii/fix-argument-specs-to-HashYukihiro "Matz" Matsumoto
Fix argument specs to `Hash`
2019-11-02Fix argument specs to `Hash`KOBAYASHI Shuji
2019-11-02Merge pull request #4801 from shuujii/fix-argument-specs-to-FileYukihiro "Matz" Matsumoto
Fix argument specs to `File`
2019-11-01Fix argument specs to `File`KOBAYASHI Shuji
2019-10-31Set `MRB_STR_ASCII` flag to some stringize methodsKOBAYASHI Shuji
- `Fixnum#to_s`, `Fixnum#inspect` - `Float#to_s`, `Float#inspect` - `NilClass#to_s`, `NilClass#inspect` - `FalseClass#to_s`, `FalseClass#inspect` - `TrueClass#to_s`, `TrueClass#inspect` - `Time#to_s`, `Time#inspect`