- 02 Jan, 2022 1 commit
-
-
dearblue authored
The main purpose is to increase the chances of finding presym and to prevent errors due to C++11 lambda expressions. - The argument to receive the class may be written, for example, `mrb_class_get()`. - The argument that receives the implementation function of the method may be a C++ lambda expression. In this case, if multiple variable declarations are separated by colons, the preprocessor will recognize them as argument delimiters and report an error. This patch prevents it from happening. ```c++ // When preprocessing... func([] { int x, y, z; }) // ^^^^^^^^^^ 1st argument? // ^ 2nd argument? // ^^^^ 3rd argument? ```
-
- 01 Jan, 2022 1 commit
-
-
Yukihiro "Matz" Matsumoto authored
It may cause broken reference count numbers.
-
- 31 Dec, 2021 7 commits
-
-
Yukihiro "Matz" Matsumoto authored
Remove code duplication.
-
Yukihiro "Matz" Matsumoto authored
Extend the Cygwin CI time limit to 15 minutes.
-
Yukihiro "Matz" Matsumoto authored
Get object properties after `mrb_get_args()`
-
Yukihiro "Matz" Matsumoto authored
Since they are basically duplicated functionality. `mrb_as_float` is now a macro defined using `mrb_ensure_float_type`; #5620
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
It should only call `to_f` for Rational and Complex numbers. Ref #5540 #5613 #5620
-
Yukihiro "Matz" Matsumoto authored
That reduce memory consumption by iv/mt tables.
-
- 30 Dec, 2021 2 commits
-
-
dearblue authored
The main reason for failure is to exceed the time limit, and even when it succeeds, there is less than a minute left. The 10-minute time limit seems to be too short.
-
dearblue authored
ref. #5613 I checked with Valgrind, and the methods that can cause use-after-free are `Array#rotate`, `Array#rotate!`, and `String#byteslice`. Since `String#rindex` uses `RSTRING_LEN()` indirectly inside the function, no reference to the out-of-bounds range is generated.
-
- 29 Dec, 2021 8 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Since `mrb_to_integer` and `mrb_to_float` does not convert the object but checks types, they are named so by historical reason. We introduced properly named functions. This commit obsoletes the following functions: * mrb_to_integer() * mrb_to_int() * mrb_to_float() Use `mrb_ensure_int_type()` instead for the first 2 functions. Use `mrb_ensure_float_type()` for the last.
-
Yukihiro "Matz" Matsumoto authored
mruby have removed `to_int` implicit conversion, so `mrb_to_integer` should not call `to_i` for conversion.
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
The `ARY_PTR` and `ARY_LEN` may be modified in `mrb_get_args`.
-
Yukihiro "Matz" Matsumoto authored
Fix build error and refine definition of `ssize_t` on MSVC.
-
- 28 Dec, 2021 5 commits
-
-
mimaki authored
-
Yukihiro "Matz" Matsumoto authored
Fix word casing in the README
-
Yukihiro "Matz" Matsumoto authored
pre-commit autoupdate
-
-
John Bampton authored
Changed `Actual` to `actual` mid sentence
-
- 27 Dec, 2021 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
- 25 Dec, 2021 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix summary typo for `mrbgems/mruby-compar-ext`
-
dearblue authored
-
- 23 Dec, 2021 1 commit
-
-
Yukihiro "Matz" Matsumoto authored
-
- 22 Dec, 2021 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Allow void expression on some places e.g. right hand of `rescue` modifier. In addition, checks added on some places, e.g. left hand of logical operators.
-
- 21 Dec, 2021 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
build(deps): bump github/super-linter from 4.8.4 to 4.8.5
-
dependabot[bot] authored
Bumps [github/super-linter](https://github.com/github/super-linter) from 4.8.4 to 4.8.5. - [Release notes](https://github.com/github/super-linter/releases) - [Changelog](https://github.com/github/super-linter/blob/main/docs/release-process.md) - [Commits](https://github.com/github/super-linter/compare/v4.8.4...v4.8.5) --- updated-dependencies: - dependency-name: github/super-linter dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
-
- 20 Dec, 2021 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
Note that the current implantation only calls `[]=` method. No performance improvement. Just 2 bytes less byte code per assignment.
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
- 19 Dec, 2021 1 commit
-
-
Yukihiro "Matz" Matsumoto authored
Add `bin/mrbc --no-ext-ops` switch
-
- 18 Dec, 2021 1 commit
-
-
Yukihiro "Matz" Matsumoto authored
Print error before cleanup in `codegen_error()`
-
- 17 Dec, 2021 1 commit
-
-
dearblue authored
Previously, it always pointed to the highest scope as the location of the error. - example code `code.rb` ```ruby huge_num = "1" + "0" * 300; eval <<CODE, nil, "test.rb", 1 class Object module A #{huge_num} end end CODE ``` - Before this patch ```console % bin/mruby code.rb test.rb:1: integer too big trace (most recent call last): [1] code.rb:1 code.rb:1:in eval: codegen error (ScriptError) ``` - After this patch ```console % bin/mruby code.rb test.rb:3: integer too big trace (most recent call last): [1] code.rb:1 code.rb:1:in eval: codegen error (ScriptError) ```
-