summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2019-09-14Merge pull request #4707 from ↵Yukihiro "Matz" Matsumoto
shuujii/use-%C-to-mrb_name_error-in-mrb_method_search Use `%C` to `mrb_name_error` in `mrb_method_search`; ref 5890c7d5
2019-09-14Use `%C` to `mrb_name_error` in `mrb_method_search`; ref 5890c7d5KOBAYASHI Shuji
2019-09-14Revert "Update `%pure-parser` to `%define api.pure` for newer `bison`; fix ↵Yukihiro "Matz" Matsumoto
#4706" The `bison` on MacOS does not support `%define api.pure`. This reverts commit f7c9f1f796d83b9316917681ea068ff648248425.
2019-09-14Update `%pure-parser` to `%define api.pure` for newer `bison`; fix #4706Yukihiro "Matz" Matsumoto
2019-09-14Remove `mrb_funcall` from `<=>` operations.Yukihiro "Matz" Matsumoto
2019-09-14Raise an error from `String#<=>` with a non string operand.Yukihiro "Matz" Matsumoto
2019-09-14Use `mrb_equal` instead of `mrb_funcall`.Yukihiro "Matz" Matsumoto
In the typical case, `mrb_funcall` invocation would be skipped.
2019-09-14Remove `mrb_funcall` from `mrb_method_search`.Yukihiro "Matz" Matsumoto
2019-09-14Replace `loop` method with `while true` loop to gain performance.Yukihiro "Matz" Matsumoto
2019-09-13Merge pull request #4705 from ↵Yukihiro "Matz" Matsumoto
shuujii/revert-part-of-Refine-tasks-toolchains-gcc-clang.rake Revert part of "Refine `tasks/toolchains/(gcc|clang).rake`" (07c6b7f0)
2019-09-13Revert part of "Refine `tasks/toolchains/(gcc|clang).rake`" (07c6b7f0)KOBAYASHI Shuji
`-Wzero-length-array` is not a mandatory option, so the original is better.
2019-09-13Merge pull request #4704 from ↵Yukihiro "Matz" Matsumoto
shuujii/fix-warnings-for-invalid-C++-option-with-enable_cxx_abi Fix warnings for invalid C++ option with `enable_cxx_abi`; ref #3618, #4703
2019-09-13Fix warnings for invalid C++ option with `enable_cxx_abi`; ref #3618, #4703KOBAYASHI Shuji
2019-09-13Update `assert_take` for zero size take.Yukihiro "Matz" Matsumoto
2019-09-13Add `Enumerator.produce` from Ruby2.7Yukihiro "Matz" Matsumoto
2019-09-13Remove `-std=gnu99` when `enable_cxx_abi`; ref #4703Yukihiro "Matz" Matsumoto
To stop warnings since C++ do not accept `-std=gnu99` option.
2019-09-13Remove unnecessary files from `mruby-{io,pack,socket}`.Yukihiro "Matz" Matsumoto
2019-09-12Merge pull request #4703 from shuujii/refine-tasks-toolchains-gcc-clang.rakeYukihiro "Matz" Matsumoto
Refine `tasks/toolchains/(gcc|clang).rake`
2019-09-12Refine `tasks/toolchains/(gcc|clang).rake`KOBAYASHI Shuji
- Make sure to specify `-std=gnu99` for C compiler flag. - Make sure to specify `-Wzero-length-array` for C/C++ compiler flag (Clang). - Extract similar codes.
2019-09-12Remove `$/` from mruby implementation.Yukihiro "Matz" Matsumoto
1. `$/` and other Perl-ish global variables are not defined in ISO. 2. The current Ruby policy do not encourage those variables. 3. Those variables has global effect and can cause troubles.
2019-09-12Merge pull request #4527 from lopopolo/string-each-line-paragraph-modeYukihiro "Matz" Matsumoto
Add paragraph mode to String#each_line in mrblib
2019-09-12Use `mrb_str_inspect` instead of `mrb_str_dup`; fix #4678Yukihiro "Matz" Matsumoto
2019-09-12Removed unnecessary files from `mruby-sleep`; #4702Yukihiro "Matz" Matsumoto
2019-09-11Remove `Rakefile` from `mruby-sleep` gem; fix #4702Yukihiro "Matz" Matsumoto
The `Rakefile` was a leftover from the time it was an independent gem.
2019-09-11Move tests related to `getbyte`, `setbyte`, byteslice` to core.Yukihiro "Matz" Matsumoto
2019-09-11Fixed `length` for IO should be in bytes, not in characters; #4696Yukihiro "Matz" Matsumoto
E.g. `io.read(5)` should read 5 byte string, not 5 characters.
2019-09-11Move `String#{getbyte,setbyte,byteslice}` to the core; #4696Yukihiro "Matz" Matsumoto
Unlike CRuby, there's no way to process strings byte-wise by core methods because there's no per string encoding in mruby, so that we moved 3 byte-wise operation methods from `mruby-string-ext` gem.
2019-09-11Merge pull request #4701 from ↵Yukihiro "Matz" Matsumoto
shuujii/drop-test-dependency-from-mruby-string-ext-to-mruby-enumerator Drop test dependency from `mruby-string-ext` to `mruby-enumerator`
2019-09-11Drop test dependency from `mruby-string-ext` to `mruby-enumerator`KOBAYASHI Shuji
2019-09-10Merge pull request #4700 from shuujii/refine-documentation-for-C99-complianceYukihiro "Matz" Matsumoto
Refine documentation for C99 compliance; ref #4685 [ci skip]
2019-09-10Refine documentation for C99 compliance; ref #4685 [ci skip]KOBAYASHI Shuji
The refinement was based on comment from @matz.
2019-09-10Merge pull request #4699 from takkaw/mirb_lv_under_scoreYukihiro "Matz" Matsumoto
add special local variable _ in mirb
2019-09-09change _ variable in mirb to be enable by defaulttakkaw
2019-09-09Fix `mod.constants` not to have duplicate constant names; #4698Yukihiro "Matz" Matsumoto
The fix was based on PR from @dearblue
2019-09-09Remove duplication of `BasicObject` constant; fix #4698Yukihiro "Matz" Matsumoto
2019-09-09Merge pull request #4697 from shuujii/fix-Class.new-argument-specsYukihiro "Matz" Matsumoto
Fix `Class.new` argument specs
2019-09-09add special local variable _ in mirbtakkaw
2019-09-09Fix `Class.new` argument specsKOBAYASHI Shuji
2019-09-08Merge pull request #4695 from dearblue/promote-to-intYukihiro "Matz" Matsumoto
Fix `mrb_vformat()` crashes with `MRB_INT16`
2019-09-08Merge pull request #4694 from shuujii/optimize-mrb_bool-with-MRB_WORD_BOXINGYukihiro "Matz" Matsumoto
Optimize `mrb_bool()` with `MRB_WORD_BOXING`
2019-09-08Fix `mrb_vformat()` crashes with `MRB_INT16`dearblue
If `MRB_INT16` is specified, the variable length argument `mrb_int` is converted to `int`.
2019-09-08Optimize `mrb_bool()` with `MRB_WORD_BOXING`KOBAYASHI Shuji
2019-09-07Revert part of #4225Yukihiro "Matz" Matsumoto
Since in mruby, Integer and Float interchange frequently (mostly on overflow), so adding explicit `.0` can cause problems sometimes. For example: https://github.com/mattn/mruby-json/pull/40 https://github.com/pepabo/mruby-msd/pull/13 https://github.com/mattn/mruby-json/pull/42
2019-09-07Merge pull request #4693 from ↵Yukihiro "Matz" Matsumoto
shuujii/increase-symbol-bit-size-on-32-bit-mode-with-MRB_WORD_BOXING Increase symbol bit size on 32-bit mode with `MRB_WORD_BOXING`
2019-09-07Increase symbol bit size on 32-bit mode with `MRB_WORD_BOXING`KOBAYASHI Shuji
This change increases the max length of lower inline symbols to 5 bytes.
2019-09-06Merge pull request #4692 from shuujii/avoid-bit-fields-in-mrb_valueYukihiro "Matz" Matsumoto
Avoid bit fields in `mrb_value`; ref b2c3d88f
2019-09-06Avoid bit fields in `mrb_value`; ref b2c3d88fKOBAYASHI Shuji
The changes at b2c3d88f were inappropriate because the memory layout of bit fields are implementation defined. Therefor, I fixed it not to use bit fields.
2019-09-05Merge pull request #4691 from ↵Yukihiro "Matz" Matsumoto
shuujii/fix-Range-max-test-TypeError-is-raised-on-32-bit-mode-with-word-boxing Fix `Range#max` test (`TypeError` is raised) on 32-bit mode with word boxing
2019-09-05Merge pull request #4690 from takumakume/add_assert_not_nilYukihiro "Matz" Matsumoto
Add `assert_not_nil` method
2019-09-05add assert_not_nil methodtakumakume