summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2019-06-20Add ISO section number to `Kernel.#local_variables` [ci skip]KOBAYASHI Shuji
2019-06-19Remove unneeded statement in `SET_OBJ_VALUE` with `boxing_word.h`KOBAYASHI Shuji
`(r).value.bp` and `v` have the same value due to assignment of the line preceding the removed line.
2019-06-19Merge pull request #4510 from shuujii/remove-unneeded-mrb_str_dup-in-Module-nameYukihiro "Matz" Matsumoto
Remove unneeded `mrb_str_dup()` in `Module#name`
2019-06-19Merge pull request #4514 from mimaki/fix-error.hYukihiro "Matz" Matsumoto
Fix path of `error.h`.
2019-06-18Fix `struct RRange` overflow on 32-bit CPU with `MRB_NAN_BOXING`KOBAYASHI Shuji
2019-06-18Fix path of `error.h`.Hiroshi Mimaki
2019-06-17Support parsing a Regexp literal with 'o' optionRyan Lopopolo
CRuby supports a 'o' `Regexp` option for `Regexp` literals, e.g. `/foo/o` that disables multiple interpolation passes. This commit adds support for parsing such literals. Nothing is done with the option, it is consumed and ignored by the parser.
2019-06-17Remove unneeded `mrb_str_dup()` in `Module#name`KOBAYASHI Shuji
`mrb_class_path()` always returns a new string or `nil`.
2019-06-17Merge pull request #4508 from ↵Yukihiro "Matz" Matsumoto
shuujii/fix-cvar-ivar-const-and-method-can-be-removed-to-frozen-object Fix cvar, ivar, const and method can be removed to frozen object
2019-06-17Merge pull request #4507 from shuujii/fix-index-in-error-message-of-Struct-arefYukihiro "Matz" Matsumoto
Fix index in error message of `Struct#[]`
2019-06-17Fixed indentation in parse.yYukihiro "Matz" Matsumoto
2019-06-17Allow newlines and comments between method calls.Yukihiro "Matz" Matsumoto
2019-06-17Support `&.` at the beginning of the line.Yukihiro "Matz" Matsumoto
2019-06-17Fixed wrong behavior on `..` at the beginning of the line.Yukihiro "Matz" Matsumoto
2019-06-17Merge pull request #4502 from ↵Yukihiro "Matz" Matsumoto
shuujii/adjust-allocation-size-in-mrb_id_attrset-mruby-struct Adjust allocation size in `mrb_id_attrset()` (`mruby-struct`)
2019-06-16Fix cvar, ivar, const and method can be removed to frozen objectKOBAYASHI Shuji
2019-06-15Fix index in error message of `Struct#[]`KOBAYASHI Shuji
Before this patch: $ bin/mruby -e 'Struct.new(:a,:b).new[-3]' #=> offset -1 too small for struct(size:2) (IndexError) After this patch (same as Ruby): $ bin/mruby -e 'Struct.new(:a,:b).new[-3]' #=> offset -3 too small for struct(size:2) (IndexError)
2019-06-14Merge pull request #4506 from ↵Yukihiro "Matz" Matsumoto
shuujii/remove-a-meaningless-branch-condition-in-mruby-struct Remove a meaningless branch condition in `mruby-struct`
2019-06-14Remove a meaningless branch condition in `mruby-struct`KOBAYASHI Shuji
The following branch condition is always true: // mrbgems/mruby-struct/src/struct.c:187 in make_struct_define_accessors() if (is_local_id(mrb, name) || is_const_id(mrb, name)) {
2019-06-14Merge pull request #4505 from shuujii/fix-class-name-validation-in-Struct.newYukihiro "Matz" Matsumoto
Fix class name validation in `Struct.new`
2019-06-13Fix class name validation in `Struct.new`KOBAYASHI Shuji
Before this patch: $ bin/mruby -e 'p Struct.new("A-")' #=> Struct::"A-" After this patch: $ bin/mruby -e 'p Struct.new("A-")' #=> NameError: identifier A- needs to be constant
2019-06-13Merge pull request #4500 from ↵Yukihiro "Matz" Matsumoto
shuujii/kernel-global_variables-should-not-include-undefined-gvar `Kernel#global_variables` should not include undefined `$1`-`$9`
2019-06-13Merge pull request #4503 from shuujii/fix-typo-in-String-setbyte-error-messageYukihiro "Matz" Matsumoto
Fix typo in `String#setbyte` error message
2019-06-12Fix typo in `String#setbyte` error messageKOBAYASHI Shuji
2019-06-12Adjust allocation size in `mrb_id_attrset()` (`mruby-struct`)KOBAYASHI Shuji
2019-06-11Merge pull request #4501 from ↵Yukihiro "Matz" Matsumoto
shuujii/remove-redundant-colon-in-Proc-inspect-mruby-proc-ext Remove redundant colon in `Proc#inspect` (`mruby-proc-ext`)
2019-06-11Remove redundant colon in `Proc#inspect` (`mruby-proc-ext`)KOBAYASHI Shuji
Before this patch: $ bin/mruby -e 'p proc{}' #=> #<Proc:0x7fd5eb8206d0@-e::1> After this patch: $ bin/mruby -e 'p proc{}' #=> #<Proc:0x7fd5eb8206d0@-e:1>
2019-06-11Merge pull request #4496 from dearblue/replace-obsoleteYukihiro "Matz" Matsumoto
Replace obsolete macros
2019-06-10`Kernel#global_variables` should not include undefined `$1`-`$9`KOBAYASHI Shuji
- They are not include in Ruby. - Appear in duplicate when `$1`-`$9` are defined.
2019-06-10Merge pull request #4495 from shuujii/remove-Kernel-global_variables-from-coreYukihiro "Matz" Matsumoto
Remove `Kernel#global_variables` from core
2019-06-10Merge pull request #4494 from ↵Yukihiro "Matz" Matsumoto
shuujii/clarify-mruby-kernel-object-ext-gem-summary Clarify `mruby-(kernel|object)-ext` gem summary; ref 8e637bdd [ci skip]
2019-06-10Merge pull request #4499 from shuujii/fix-missing-assertions-in-test-t-syntax.rbYukihiro "Matz" Matsumoto
Fix missing assertions in `test/t/syntax.rb`
2019-06-09Fix missing assertions in `test/t/syntax.rb`KOBAYASHI Shuji
2019-06-09Merge pull request #4497 from ↵Yukihiro "Matz" Matsumoto
shuujii/remove-Check-the-usage-of-a-NUL-character-test Remove "Check the usage of a NUL character" test
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