| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2020-10-12 | Fix warning from VC regarding implicit int conversion. | Yukihiro "Matz" Matsumoto | |
| 2020-10-12 | Made `Rational` overhaul. | Yukihiro "Matz" Matsumoto | |
| - Implement `Rational()` in `C`. - Use `float` to `rational` conversion function taken from: https://rosettacode.org/wiki/Convert_decimal_number_to_rational#C | |||
| 2020-10-12 | Handle integer overflow in `rational_s_new`. | Yukihiro "Matz" Matsumoto | |
| 2020-10-12 | Use `mrb_int_value()` instead of `mrb_fixnum_value()`. | Yukihiro "Matz" Matsumoto | |
| Where fixnum overflow can happen. | |||
| 2020-10-12 | Reorganize `Integer` system. | Yukihiro "Matz" Matsumoto | |
| - Integrate `Fixnum` and `Integer` - Remove `Integral` - `int / int -> int` - Replace `mrb_fixnum()` to `mrb_int()` - Replace `mrb_fixnum_value()` to `mrb_int_value()`. - Use `mrb_integer_p()` instead of `mrb_fixnum_p()` | |||
| 2020-10-12 | Integrate `Fixnum` class into `Integer` class | dearblue | |
| * The `Fixnum` constant is now an alias for the `Integer` class. * Remove `struct mrb_state::fixnum_class` member. If necessary, use `struct mrb_state::integer_class` instead. | |||
| 2020-10-12 | Rename float configuration option names. | Yukihiro "Matz" Matsumoto | |
| - `MRB_WITHOUT_FLOAT` => `MRB_NO_FLOAT` - `MRB_USE_FLOAT` => `MRB_USE_FLOAT32` The former is to use `USE_XXX` naming convention. The latter is to make sure `float` is 32bit float and not floating point number in general. | |||
| 2020-10-12 | Add explicit cast to `DROP_PRECISION` macro in `rational.c`. | Yukihiro "Matz" Matsumoto | |
| 2020-10-12 | Use `mrb->eStandardError` instead of `mrb_exc_get()`. | Yukihiro "Matz" Matsumoto | |
| 2020-06-20 | Symbolify saved alias name to improve performance. | Yukihiro "Matz" Matsumoto | |
| 2020-06-04 | Add explicit cast to `DROP_PRECISION` macro in `rtional.c`. | Yukihiro "Matz" Matsumoto | |
| 2020-06-04 | Add explicit cast to silence warnings on AppVeyor. | Yukihiro "Matz" Matsumoto | |
| 2019-07-30 | Refine message to `skip` in nested `assert` | KOBAYASHI Shuji | |
| - I think "Info" is used only to `skip`, so change to "Skip". - Changed the default value of `assert` and specify the argument explicitly at the caller of `assert` because it is unnatural "Assertion failed" is output even though the assertion doesn't fail. == Example: def assert_foo(exp, act) assert do assert_equal exp[0], act[0] assert_equal exp[1], act[1] end end def assert_bar(exp, act) assert do skip end end def assert_baz(exp, act) assert do assert_equal exp, act assert_bar exp, act end end assert 'test#skip_in_nested_assert' do assert_baz 1, 1 end === Before this patch: ?.. Info: test#skip_in_nested_assert (core) - Assertion[1] Info: Assertion failed (core) - Assertion[1-2] Skip: Assertion failed (core) Total: 3 OK: 2 KO: 0 Crash: 0 Warning: 0 Skip: 1 === After this patch: ??? Skip: test#skip_in_nested_assert (core) - Assertion[1] Skip: assert (core) - Assertion[1-2] Skip: assert (core) Total: 3 OK: 0 KO: 0 Crash: 0 Warning: 0 Skip: 3 | |||
| 2019-07-24 | Call `MRB_SET_INSTANCE_TT` for `Complex` and `Rational`. | Yukihiro "Matz" Matsumoto | |
| 2019-07-18 | Avoid making top-level `env` in initialization code; ref #4581 | Yukihiro "Matz" Matsumoto | |
| 2019-06-29 | Use nested `assert` | dearblue | |
| 2019-06-05 | Drop precisions for rational when big numbers | dearblue | |
| 2019-06-05 | Fix 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-05-29 | Slightly simplify `Rational#==`; ref #4475 | Yukihiro "Matz" Matsumoto | |
| 2019-05-27 | Fix `Rational#==(Complex)` | KOBAYASHI Shuji | |
| Consider a Numreic class like `Complex` that does not have `<=>` but `==` works (`0i == 0r` is `true`). | |||
| 2019-05-23 | Freeze `Rational` and `Complex` objects | KOBAYASHI Shuji | |
| 2019-05-22 | `Kernel#Rational` requires numerator | KOBAYASHI Shuji | |
| 2019-05-21 | Implements part of `Complex` class in C. | Yukihiro "Matz" Matsumoto | |
| 2019-05-21 | Should not refer `Float` class in case of `MRB_WITHOUT_FLOAT`. | Yukihiro "Matz" Matsumoto | |
| This commit removes `Float` from `rational.c`. | |||
| 2019-05-21 | Move `**`,`/`,`quo`,`div` and comparison methods to Integral from Numeric | KOBAYASHI Shuji | |
| Having these methods in Numeric can get in the way of creating subclasses of Numeric because they only support Fixnum and Float. | |||
| 2019-05-21 | Revert part of #4457 | KOBAYASHI Shuji | |
| 2019-05-21 | Merge pull request #4457 from ↵ | Yukihiro "Matz" Matsumoto | |
| shuujii/change-the-order-of-expected-and-actual-in-mruby-rational-test Change the order of "expected" and "actual" in `mruby-rational` test | |||
| 2019-05-20 | Drop dependency from `mruby-rational` to `mruby-object-ext` | KOBAYASHI Shuji | |
| 2019-05-20 | Change the order of "expected" and "actual" in `mruby-rational` test | KOBAYASHI Shuji | |
| 2019-05-19 | Fix `Rational#<=>(Numeric)` | KOBAYASHI Shuji | |
| Reported by Sergey Ukrainskiy: https://github.com/mruby/mruby/commit/f5fb1307b017fb972c12b4ec4b1866d789b0ca09#r33590698 | |||
| 2019-05-18 | Move `Object#(Rational|Complex)` to `Kernel` | KOBAYASHI Shuji | |
| 2019-05-18 | Implement `Rational._new` in C. | Yukihiro "Matz" Matsumoto | |
| 2019-05-18 | Support `MRB_WITHOUT_FLOAT`. | Yukihiro "Matz" Matsumoto | |
| I assume there's no realistic usage of `Rational` with `MRB_WITHOUT_FLOAT`. But just for consistency. | |||
| 2019-05-17 | Merge pull request #4442 from ↵ | Yukihiro "Matz" Matsumoto | |
| shuujii/drop-dependency-from-mruby-rational-to-mruby-numeric-ext Drop dependency from `mruby-rational` to `mruby-numeric-ext` | |||
| 2019-05-17 | Drop dependency from `mruby-rational` to `mruby-numeric-ext` | KOBAYASHI Shuji | |
| 2019-05-17 | Fix `Numeric#to_r` | KOBAYASHI Shuji | |
| 2019-05-17 | Implement part of `Rational` in C. | Yukihiro "Matz" Matsumoto | |
| 2019-05-17 | Avoid direct access to instance variables in `rational.rb`. | Yukihiro "Matz" Matsumoto | |
| 2019-05-17 | Fixed wrong overloading. | Yukihiro "Matz" Matsumoto | |
| `float op rational` should return `float`, since float is an inexact value. | |||
| 2019-05-17 | Use `div` (integer divition) instead of `/` for rational numbers. | Yukihiro "Matz" Matsumoto | |
| 2019-05-16 | Fix `Rational#==` | KOBAYASHI Shuji | |
| 2019-05-15 | Fix dependencies | Ukrainskiy Sergey | |
| 2019-05-15 | Basic implementation of Complex and Rational classes | Ukrainskiy Sergey | |
| 2019-05-15 | Initial suffix support | Ukrainskiy Sergey | |
