summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2019-07-22Fix `mruby-time` to work with `MRB_WITHOUT_FLOAT`; ref #4576Yukihiro "Matz" Matsumoto
As a side effect, `mrb_time_at()` now takes `mrb_int` instead of `double` as time arguments.
2019-07-22Improve conflict error message of `Time` and `Math`; ref #4576Yukihiro "Matz" Matsumoto
2019-07-22Check conflicts with `Complex` and `MRB_WITHOUT_FLOAT`; ref #4576Yukihiro "Matz" Matsumoto
The Complex class needs `mrb_float` so that it does not work with `MRB_WITHOUT_FLOAT` anyway.
2019-07-22Set `MRB_STR_ASCII` flag in `String#inspect`KOBAYASHI Shuji
`String#inspect` can set `MRB_STR_ASCII` flag to receiver and return value because it checks character byte length.
2019-07-22Switch random generator from Mersenne Twister to Xorshit128.Yukihiro "Matz" Matsumoto
Now `rand` can be used with `MRB_WITHOUT_FLOAT`; ref #4576
2019-07-22No rounding needed if 'ndigits` is bigger than `DBL_DIG+2`; fix #4566Yukihiro "Matz" Matsumoto
2019-07-22Fix `FIXABLE_FLOAT()` on `MRB_INT64`; ref #4566Yukihiro "Matz" Matsumoto
Normal `TYPED_FIXABLE(f,mrb_float)` does not work on 64bit int from casting problems. The new approach works well, but assumes two's complement and IEEE-754 floating point numbers.
2019-07-21Integrate `Integral#chr` (`Fixnum#chr`) to `mruby-string-ext`KOBAYASHI Shuji
Because they're defined in both `mruby-string-ext` and `mruby-numeric-ext` (they seem more natural to define in N, but `mruby-string-ext` depends on `Integral#chr`).
2019-07-20Fix `Module#dup` to frozen moduleKOBAYASHI Shuji
Before this patch: $ bin/mruby -e 'p Module.new.freeze.dup.frozen?' #=> true After this patch (same as Ruby): $ bin/mruby -e 'p Module.new.freeze.dup.frozen?' #=> false
2019-07-20Merge pull request #4589 from shuujii/refine-String-chr-testYukihiro "Matz" Matsumoto
Refine `String#chr` test and separate `Fixnum#chr` test
2019-07-19Refine `String#chr` test and separate `Fixnum#chr` testKOBAYASHI Shuji
2019-07-18Merge pull request #4575 from dearblue/attr-use-stackYukihiro "Matz" Matsumoto
Use stack memory for small name of attr accessors
2019-07-18Merge pull request #4588 from ↵Yukihiro "Matz" Matsumoto
shuujii/fix-String-times-test-with-MRB_WITHOUT_FLOAT Fix `String#*` test with `MRB_WITHOUT_FLOAT`
2019-07-18Fix `String#*` test with `MRB_WITHOUT_FLOAT`KOBAYASHI Shuji
2019-07-18Clear `env` before top-level execution; fix #4581Yukihiro "Matz" Matsumoto
2019-07-18Avoid making top-level `env` in initialization code; ref #4581Yukihiro "Matz" Matsumoto
2019-07-17Merge pull request #4587 from shuujii/fix-String-aref-testYukihiro "Matz" Matsumoto
Fix `String#[]` test
2019-07-17Merge pull request #4585 from shuujii/fix-range-min-with-mruby-range-extYukihiro "Matz" Matsumoto
Fix `(fixnum_value ... float_value).min` with `mruby-range-ext`
2019-07-17Merge branch 'master' into fix-range-min-with-mruby-range-extYukihiro "Matz" Matsumoto
2019-07-17Merge pull request #4586 from shuujii/revert-4300Yukihiro "Matz" Matsumoto
Revert #4300
2019-07-17Merge pull request #4584 from ↵Yukihiro "Matz" Matsumoto
shuujii/allow-mruby-range-ext-to-work-with-MRB_WITHOUT_FLOAT Allow `mruby-range-ext` to work with `MRB_WITHOUT_FLOAT`; ref 2add8641
2019-07-17Fix `String#[]` testKOBAYASHI Shuji
2019-07-17Revert #4300KOBAYASHI Shuji
Originally, it was not necessary to change. I made mistake.
2019-07-17Fix `(fixnum_value ... float_value).min` with `mruby-range-ext`KOBAYASHI Shuji
Before this patch: $ bin/mruby -e 'p (2...4.0).min' #=> TypeError After this patch (same as CRuby and without `mruby-range-ext`): $ bin/mruby -e 'p (2...4.0).min' #=> 2
2019-07-17Allow `mruby-range-ext` to work with `MRB_WITHOUT_FLOAT`; ref 2add8641KOBAYASHI Shuji
2019-07-17Fixed a bug in #4034Yukihiro "Matz" Matsumoto
2019-07-17Avoid `MRB_INLINE` for `mrb_str_modify()`; ref #4579Yukihiro "Matz" Matsumoto
Functions that are called infrequently need not to be inline.
2019-07-17Allow `mruby-range-ext` to work with `MRB_WITHOUT_FLOAT`; ref #4576Yukihiro "Matz" Matsumoto
2019-07-17Merge pull request #4034 from i110/i110/inspect-recursionYukihiro "Matz" Matsumoto
Let inspect recursion do the right thing
2019-07-17Merge branch 'master' into i110/inspect-recursionYukihiro "Matz" Matsumoto
2019-07-16Merge pull request #4583 from ↵Yukihiro "Matz" Matsumoto
shuujii/set-MRB_STR_ASCII-flag-in-some-methods-of-String Copy receiver's `MRB_STR_ASCII` flag in some methods of `String`
2019-07-16Copy receiver's `MRB_STR_ASCII` flag in some methods of `String`KOBAYASHI Shuji
2019-07-16Merge pull request #4576 from dearblue/error-configurationYukihiro "Matz" Matsumoto
Error needed/conflicts configuration
2019-07-16Merge pull request #4580 from shuujii/unify-type-of-line-number-to-uint16_tYukihiro "Matz" Matsumoto
Unify type of line number to `uint16_t`
2019-07-16Merge pull request #4579 from ↵Yukihiro "Matz" Matsumoto
shuujii/keep-MRB_STR_ASCII-flag-in-some-methods-of-String Keep `MRB_STR_ASCII` flag in some methods of `String`
2019-07-15Unify type of line number to `uint16_t`KOBAYASHI Shuji
2019-07-15Add `MRB_API` to `mrb_str_modify_keep_ascii()`KOBAYASHI Shuji
2019-07-15Merge pull request #4578 from dearblue/improve-utf8lenYukihiro "Matz" Matsumoto
Improve `utf8len()` performance with UTF-8
2019-07-14Keep `MRB_STR_ASCII` flag in some methods of `String`KOBAYASHI Shuji
2019-07-14Merge pull request #4577 from dearblue/pack-unpackYukihiro "Matz" Matsumoto
Fix pack/unpack for base64; ref #4556
2019-07-14Improve `utf8len()` performance with UTF-8dearblue
2019-07-14Fix empty array refers; ref #4556dearblue
For example, `"".unpack("")` evaluates to `[]`.
2019-07-14Fix pack/unpack for base64; ref #4556dearblue
The pack/unpack "m" directive should be treated as a length rather than an element count.
2019-07-15Add pack/unpack test for base64dearblue
2019-07-14Error needed/conflicts configurationdearblue
The purpose is to clarify the error if there is a needed/conflicts configuration at compile time.
2019-07-13Use stack memory for small name of attr accessorsdearblue
Also integrated the common parts of `mrb_mod_attr_reader()` and `mrb_mod_attr_writer()` functions.
2019-07-13Merge pull request #4574 from shuujii/add-mruby-method-gem-to-default.gemboxYukihiro "Matz" Matsumoto
Add `mruby-method` gem to `default.gembox` [ci skip]
2019-07-13Add `mruby-method` gem to `default.gembox` [ci skip]KOBAYASHI Shuji
2019-07-13`Enumerable#detect` {and `#find`} should call `ifnone`; fix #4484Yukihiro "Matz" Matsumoto
It's an error in ISO specification; 15.3.2.2.4 and 15.3.2.2.7
2019-07-13Resolve ambiguous argument warning.Yukihiro "Matz" Matsumoto