| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2020-10-12 | Stop warning on 64 bit platforms. | Yukihiro "Matz" Matsumoto | |
| 2020-10-12 | Raname `mrb_exc_new_str_lit()` to `mrb_exc_new_lit()`. | Yukihiro "Matz" Matsumoto | |
| It uses `mrb_str_new_lit()` internally, but it doesn't need to express it in the name of the function (macro). | |||
| 2020-10-12 | Handle integer overflow in `rational_s_new`. | Yukihiro "Matz" Matsumoto | |
| 2020-10-12 | Handle potential overflow in `int_div` and `flo_idiv`. | 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 | Add `MRB_NAN_BOXING` for `boxing` target. | Yukihiro "Matz" Matsumoto | |
| 2020-10-12 | Add `mrb_integer()` definition for `MRB_NAN_BOXING`. | Yukihiro "Matz" Matsumoto | |
| 2020-10-12 | Update `mruby-random` gem to support 32 bit platforms. | Yukihiro "Matz" Matsumoto | |
| `sizeof(rand_state)` had been bigger than `sizeof(void*)*3`. Changed random number generator to `Xorshift96` on 32 bit platforms. | |||
| 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 | Remove unnecessary assignment in String#upto | n4o847 | |
| Co-authored-by: taiyoslime <[email protected]> Co-authored-by: smallkirby <[email protected]> | |||
| 2020-10-12 | Update build process for both host and cross compile. | Yukihiro "Matz" Matsumoto | |
| 2020-10-12 | Describe the need for `-o` option if multi files given. | Yukihiro "Matz" Matsumoto | |
| 2020-10-12 | Update usage description of `mrbc`. | Yukihiro "Matz" Matsumoto | |
| 2020-10-12 | Update `Rakefile`. | Yukihiro "Matz" Matsumoto | |
| So that you can omit `host` target. Now `host-debug` works. | |||
| 2020-10-12 | "backport" CRuby r46756; ref #3500 | Yukihiro "Matz" Matsumoto | |
| Based on cremno/mruby@6bd0119 | |||
| 2020-10-12 | Change the return type of `mrb_check_intern()` and friends. | Yukihiro "Matz" Matsumoto | |
| They used to return `mrb_value` but now return `mrb_sym` for consistency with other `intern` functions. If symbols are not defined, `check` functions return `0`, instead of `nil` in the past. It causes API incompatibility but I believe few people use those functions out of the core, and those changes are very easy to handle, hopefully. | |||
| 2020-10-12 | Avoid using `mrb_check_intern_str()`. | Yukihiro "Matz" Matsumoto | |
| We call `mrb_intern_str()` later anyway, so there's no need to avoid defining a new symbol here. | |||
| 2020-10-12 | "backport" CRuby r46656; #2500 | Yukihiro "Matz" Matsumoto | |
| Based on cremno/mruby@d446192 | |||
| 2020-10-12 | Remove `MRB_NO_FLOAT_INLINE` and `MRB_WBOX_FLOAT_INLINE` configuration. | Yukihiro "Matz" Matsumoto | |
| They are not used from the beginning. | |||
| 2020-10-12 | Fixed ISO section numbers in `test/t/superclass.rb`. | Yukihiro "Matz" Matsumoto | |
| 2020-10-12 | Make division by zero cause `ZeroDivisionError`. | Yukihiro "Matz" Matsumoto | |
| As described in ISO 15.2.30. | |||
| 2020-10-12 | Fixed wrong size calculation for `memsize_of()`. | Yukihiro "Matz" Matsumoto | |
| 2020-10-12 | Rename `MRB_TT_FIXNUM` to `MRB_TT_INTEGER`. | Yukihiro "Matz" Matsumoto | |
| We still have `#define MRB_TT_FIXNUM MRB_TT_INTEGER` for compatibility. | |||
| 2020-10-12 | change linkage to internal | cremno | |
| 2020-10-12 | define sprintf and format as global functions | cremno | |
| 2020-10-12 | move mrbgem initialization into sprintf.c | cremno | |
| Also remove some unnecessary code. | |||
| 2020-10-12 | Add tests for CRuby bug #9982 | cremno | |
| https://bugs.ruby-lang.org/issues/9982 | |||
| 2020-10-12 | Always add trailing `.0` in `Float#inspect`; ref #4225 | KOBAYASHI Shuji | |
| Trailing `.0` is removed from `Float#to_s` and `Float#inspect` at 9d08025b. However, I think the more human-readable format is better for `Float#inspect`. For example, in the `Float#to_s` format, the failure message is not well understood when testing values including types by `eql?` (e.g. `Numeric#step` test). ```ruby assert "example" do exp = 1.0 act = 1 assert_operator(exp, :eql?, act) #=> Expected 1 to be eql? 1. end ``` | |||
| 2020-10-12 | Rename `mruby_version` in the lockfile to `mruby`; close #4658 | Yukihiro "Matz" Matsumoto | |
| 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 | Fix `Fixnum` and `Float` comparison in `Hash` lookup | KOBAYASHI Shuji | |
| ```console $ bin/mruby -e 'p({1 => 2}.key?(1.0))' true ``` ```console $ bin/mruby -e 'p({1 => 2}.key?(1.0))' false ``` | |||
| 2020-10-12 | Update the PR #4922 according to #3123. | Yukihiro "Matz" Matsumoto | |
| close #3123 | |||
| 2020-10-12 | Update tests for integer division. | Yukihiro "Matz" Matsumoto | |
| 2020-10-12 | Update the PR #4992 to enable integer division always. | Yukihiro "Matz" Matsumoto | |
| 2020-10-12 | Update vm.c | Lanza | |
| 2020-10-12 | Make `Proc#parameters` to support keyword arguments; fix #5066 | Yukihiro "Matz" Matsumoto | |
| TODO: Unlike CRuby, mruby's `Proc#parameters` does not distinguish required keyword arguments and optional keyword arguments currently. | |||
| 2020-10-12 | Update `mruby3.md`. | Yukihiro "Matz" Matsumoto | |
| 2020-10-12 | Use xoshiro128++ instead of xorshift96/128. | Yukihiro "Matz" Matsumoto | |
| 2020-10-12 | Fix `rand_real` to return random number `[0,1)` not `[0,1]`. | Yukihiro "Matz" Matsumoto | |
| 2020-10-12 | Add default `host` target for cross compiling. | Yukihiro "Matz" Matsumoto | |
| You don't have to define explicit `host` build target any more. | |||
| 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 | Allow `MRUBY_CONFIG` to specify target file out of source tree. | Yukihiro "Matz" Matsumoto | |
| 2020-10-12 | Add a new document named `mruby3.md`. | Yukihiro "Matz" Matsumoto | |
| That describes the changes in `mruby3`. | |||
| 2020-10-12 | Add assertion we can pack function pointers in `mrb_method_t`. | Yukihiro "Matz" Matsumoto | |
| If this assertion fails, you have to define `MRB_USE_METHOD_T_STRUCT`. | |||
| 2020-10-12 | Rename `MRB_METHOD_T_STRUCT` to `MRB_USE_METHOD_T_STRUCT`. | Yukihiro "Matz" Matsumoto | |
| It's the first change of renaming configuration options to `MRB_XXX` to `MRB_USE_XXX` or `MRB_NO_XXX`. | |||
| 2020-10-12 | Change out-of-range condition of `time_t` conversion. | Yukihiro "Matz" Matsumoto | |
| 2020-10-12 | Avoid out-of-range error for negative time on `MRB_TIME_T_UINT`. | Yukihiro "Matz" Matsumoto | |
| On platforms where `time_t` is unsigned, negative time can be a result of integer casting. Out-of-range error is too strict for those cases. This fix does not address wrong time value in `MRB_WORD_BOXING`. It will be addressed later (by introducing "big" integers). | |||
| 2020-10-12 | Change default `mrb_value` representation to `MRB_WORD_BOXING`. | Yukihiro "Matz" Matsumoto | |
| 2020-10-12 | Skip array embedding if `MRB_NO_BOXING` and `MRB_32BIT`; fix #4382 | Yukihiro "Matz" Matsumoto | |
| On some platforms, `sizeof(mrb_value) > sizeof(void*)*3`, which makes `MRB_ARY_EMBED_LEN_MAX` zero. And zero sized array cause compile errors. | |||
| 2020-10-12 | Add static check for `MRB_USE_FLOAT` and `MRB_WITHOUT_FLOAT`. | Yukihiro "Matz" Matsumoto | |
