| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2021-02-12 | Merge pull request #5336 from shuujii/fix-build-mruby-catch-gem-without-presym | Yukihiro "Matz" Matsumoto | |
| Fix build `mruby-catch` gem without presym | |||
| 2021-02-12 | Fix build `mruby-catch` gem without presym | KOBAYASHI Shuji | |
| 2021-02-12 | Add `UncaughtThrowError#{tag,value}` for Ruby compatibility | KOBAYASHI Shuji | |
| 2021-02-12 | Rename `mrb_sleep.c` to `sleep.c` in `mruby-sleep` gem. | Yukihiro "Matz" Matsumoto | |
| 2021-02-12 | Rename `mruby-catch.c` to `catch.c`; ref #5328 | Yukihiro "Matz" Matsumoto | |
| 2021-02-10 | Refactor `mruby-catch`; ref #5328 | Yukihiro "Matz" Matsumoto | |
| - Move `#catch` definition to `mruby-catch.c` to avoid tweaking - Remove `#__preserve_catch_method` - Implement whole `#throw` method in C | |||
| 2021-02-10 | Merge branch 'mruby-catch' of https://github.com/dearblue/mruby into ↵ | Yukihiro "Matz" Matsumoto | |
| dearblue-mruby-catch | |||
| 2021-02-08 | `i_gcd()` does not work for `MRB_INT_MIN`. | Yukihiro "Matz" Matsumoto | |
| 2021-02-07 | Move `F(x)` definition inside of `#ifdef`; fix #5330 | Yukihiro "Matz" Matsumoto | |
| 2021-02-07 | Enlarge tolerance limit for `float32`; close #5329 | Yukihiro "Matz" Matsumoto | |
| Along with some refactoring on `mruby-math` tests. | |||
| 2021-02-07 | Fix tests to work with `MRB_USE_FLOAT32`; fix #5329 | Yukihiro "Matz" Matsumoto | |
| 2021-02-06 | Reimplement mruby-catch; ref #5321 | dearblue | |
| When there is a corresponding tag, the `RBreak` object is used to make a global jump. Like CRuby, it can't be caught by `rescue`. It is also the same as CRuby that it can be canceled in the middle by `ensure`. ### How to find the corresponding tag with `throw` The called `catch` method remains in the call stack, and the tag also remains in the stack at that time. So it is possible to find the called location by searching the two. Note that no method can be given to the `proc` object specified in `RBreak`. Therefore, inside the `catch` method, the argument block is called in a seemingly meaningless closure. Also, as a countermeasure against `alias` etc., the `proc` object, which is the body of the `catch` method, is saved when mrbgem is initialized. | |||
| 2021-02-06 | MinGW does not need MSVC hack. | Yukihiro "Matz" Matsumoto | |
| Both MinGW and MSVC provide _WIN32 macro. | |||
| 2021-02-06 | No need to check class definition | dearblue | |
| Because now the `Struct` class is always defined when this file is included. | |||
| 2021-02-06 | Fixed compile errors in `cmath.c` in MinGW and macOS. | Yukihiro "Matz" Matsumoto | |
| 2021-02-06 | Make the argument of `Kernel#catch` optional as Ruby does | KOBAYASHI Shuji | |
| Also implement the following changes. * Add tests * Use `Object#equal?` to compare tags for Ruby compatibility * Use `attr_reader` | |||
| 2021-02-06 | Avoid implicit conversion from `mrb_float` to `mrb_complex`. | Yukihiro "Matz" Matsumoto | |
| 2021-02-06 | Merge pull request #5322 from ↵ | Yukihiro "Matz" Matsumoto | |
| shuujii/fix-message-of-ThrowCatchJump-in-mruby-catch-gem Fix message of `ThrowCatchJump` in `mruby-catch` gem | |||
| 2021-02-06 | Reimplement complex division. | Yukihiro "Matz" Matsumoto | |
| 2021-02-06 | Define `M_E` for some platforms. | Yukihiro "Matz" Matsumoto | |
| 2021-02-06 | Update `mruby-cmath` to support MSVC complex. | Yukihiro "Matz" Matsumoto | |
| * Use `_Complex` instead of `complex` (MSYS2 do not support `complex`) * Use `_Dcomplex` instead of `_Complex` on MSCV * Avoid operator division and multiplication of complex | |||
| 2021-02-05 | Fix message of `ThrowCatchJump` in `mruby-catch` gem | KOBAYASHI Shuji | |
| ### Example ```ruby begin throw 1 rescue Exception => e puts e.message end ``` #### Before this patch: ```console $ bin/mruby example.rb uncaught throw :1 ``` #### After this patch (same as Ruby): ```console $ bin/mruby example.rb uncaught throw 1 ``` | |||
| 2021-02-05 | Add `mruby-cmath` gem to the core. | Yukihiro "Matz" Matsumoto | |
| This gem uses C99 `_Complex` features. You need a C compiler that supports `_Complex` to enable this gem. All `gcc`, `clang`, `VC` support `_Complex` so there should not be a big problem. | |||
| 2021-02-05 | Add a few new API for complex access. | Yukihiro "Matz" Matsumoto | |
| 2021-02-05 | Refactor method overriding. | Yukihiro "Matz" Matsumoto | |
| * Use `class_eval` instead of `instance_eval`. * Reduce `class_eval` calls * define `Numeric#i` * undefine `Complex#i` | |||
| 2021-02-05 | Add `Complex#to_c` method. | Yukihiro "Matz" Matsumoto | |
| 2021-02-03 | Avoid Heap Overflow in `heredoc_remove_indent`; fix #5316 | Yukihiro "Matz" Matsumoto | |
| 2021-02-01 | Allow more than 256 child `irep`; fix #5310 | Yukihiro "Matz" Matsumoto | |
| We have introduced following new instructions. * `OP_LAMBDA16` * `OP_BLOCK16` * `OP_METHOD16` * `OP_EXEC16` Each instruction uses 16 bits operand for `reps` index. Since new instructions are added, `mruby/c` VM should be updated. Due to new instructions, dump format compatibility is lost, we have increased `RITE_BINARY_MAJOR_VER`. In addition, we have decreased the size of `refcnt` in `mrb_irep` from `uint32_t` to `uint16_t`, which is reasonably big enough. | |||
| 2021-01-31 | Use `mrb_open_core()` instead of `mrb_open()` in `mrbc` | KOBAYASHI Shuji | |
| 2021-01-29 | Remove unnecessary range confirmation | dearblue | |
| This is a correction based on the review by @matz. https://github.com/mruby/mruby/pull/5306#pullrequestreview-578378401 | |||
| 2021-01-29 | Fixed `String#unpack` to handle the highest range of integer values | dearblue | |
| Previously, problems occurred when the `fixnum` was exceeded. - 32-bit cpu mode with `MRB_WORD_BOXING` and `MRB_INT32`: ```console % bin/mruby -e 'p [0x7fffffff].pack("N").unpack("N")' trace (most recent call last): -e:1: cannot unpack to Integer: 2147483647 (RangeError) ``` - 64-bit cpu mode with `MRB_WORD_BOXING` and `MRB_INT64`: ```console % bin/mruby -e 'p [0x7fffffff_ffffffff].pack("q").unpack("q")' trace (most recent call last): -e:1: cannot unpack to Integer: 9223372036854775807 (RangeError) ``` | |||
| 2021-01-29 | Replace `mrb_intern_cstr` to `mrb_intern_lit`. | Yukihiro "Matz" Matsumoto | |
| 2021-01-28 | Remove duplicated `--cflags`; [ci skip] | Yukihiro "Matz" Matsumoto | |
| 2021-01-28 | Remove unnecessary bit shift in `rational_new_f`. | Yukihiro "Matz" Matsumoto | |
| 2021-01-26 | Revert "Fix the wrong directory `host-bin` to `host/bin`." | Yukihiro "Matz" Matsumoto | |
| This reverts commit 34f82f24e941f36edc8d947a8a9300631b3121ff. Ref #5282 | |||
| 2021-01-26 | Change `mruby-config` to print usage on invalid arguments. | Yukihiro "Matz" Matsumoto | |
| Or no argument at all. | |||
| 2021-01-26 | Fix the wrong directory `host-bin` to `host/bin`. | Yukihiro "Matz" Matsumoto | |
| Where `mruby-config` command should be generated. | |||
| 2021-01-26 | Revert "Minimize the changes in #5277" | Yukihiro "Matz" Matsumoto | |
| This reverts commit dc51d89ac22acc60b9bfeed87115863565b74085. | |||
| 2021-01-25 | Silence 'loss of data' warnings. | Yukihiro "Matz" Matsumoto | |
| 2021-01-25 | Fix a bug for the case `frexp()` return `Infinity`. | Yukihiro "Matz" Matsumoto | |
| 2021-01-25 | Should use a limit for 32 bit platform; ref 05a8cc44 | Yukihiro "Matz" Matsumoto | |
| 2021-01-24 | Define `RAT_INT_LIMIT` for 32 bit platforms. | Yukihiro "Matz" Matsumoto | |
| 2021-01-24 | Prohibit `r` suffix after scientific notation (e.g. `1e10`). | Yukihiro "Matz" Matsumoto | |
| As CRuby does. | |||
| 2021-01-24 | Detect integer overflow in `rational_new_f()`. | Yukihiro "Matz" Matsumoto | |
| 2021-01-22 | Minimize the changes in #5277 | Yukihiro "Matz" Matsumoto | |
| Instead of including `mruby/presym.h` everywhere, we provided the fallback `mruby/presym.inc` under `include/mruby` directory, and specify `-I<build-dir>/include` before `-I<top-dir>/include` in `presym.rake`. So even when someone drops `-I<build-dir>/include` in compiler options, it just compiles without failure. | |||
| 2021-01-21 | Merge branch 'avoid-including-presym.inc-in-existing-header-files' of ↵ | Yukihiro "Matz" Matsumoto | |
| https://github.com/shuujii/mruby into shuujii-avoid-including-presym.inc-in-existing-header-files | |||
| 2021-01-21 | Fix a bug that `:_1` to cause syntax error; fix #5295 | Yukihiro "Matz" Matsumoto | |
| 2021-01-21 | Better error messages with yacc tokens. | Yukihiro "Matz" Matsumoto | |
| 2021-01-21 | Silence gcc warning from `strncpy()`. | Yukihiro "Matz" Matsumoto | |
| 2021-01-18 | Fix build error for mruby-bin-debugger | dearblue | |
| This is a missing change in #5272. This issue was reported by @shuujii. https://github.com/mruby/mruby/pull/5272#issuecomment-761819737 | |||
