- 05 Jan, 2020 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix ainfo with keyword arguments; fix #4921
-
dearblue authored
-
- 02 Jan, 2020 1 commit
-
-
Yukihiro "Matz" Matsumoto authored
Call `va_end()` before return
-
- 01 Jan, 2020 11 commits
-
-
dearblue authored
The behavior when returning from a function without `va_end()` is undefined.
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Add `mrb_num_args_error()` for "wrong number of arguments" error
-
Yukihiro "Matz" Matsumoto authored
Revert "SHARED string is not required when sharing POOL string" (75949836)
-
KOBAYASHI Shuji authored
Because literal pool may be released by GC. #### Example: ```ruby s1 = eval('"abcdefghijklmnopqrstuvwxyz01"') GC.start p s1 #=> "\x00\x00\x00\x00\x00\x00\x00\x90\x00\x00\x00\x00\x00\x00\x00\x90\x03\x00stuvwxyz01" ```
-
Yukihiro "Matz" Matsumoto authored
Integrate `i` and `arg_i` in `mrb_get_args()`
-
Yukihiro "Matz" Matsumoto authored
Do not include `stdint.h` before `mruby.h`; ref #4750
-
dearblue authored
The behavior of these two variables is the same.
-
dearblue authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
- 31 Dec, 2019 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
Silence GCC warning in `time.c` on Travis CI
-
KOBAYASHI Shuji authored
Silence the following warnings: ``` /mruby/mrbgems/mruby-time/src/time.c:260:55: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if ((MRB_INT_MAX > MRB_TIME_MAX && i > 0 && i > MRB_TIME_MAX) || ^ ```
-
Yukihiro "Matz" Matsumoto authored
Fix builds for modern mingw; fix #4869
-
- 30 Dec, 2019 3 commits
-
-
dearblue authored
What I intended to fix in #4869 was a patch for an old MinGW. Recent MinGWs have their own `mkstemp()` function. I knew this after checking the patch #4903.
-
Yukihiro "Matz" Matsumoto authored
Use `rake` instead of `minirake` in `.gitlab-ci.yml`
-
KOBAYASHI Shuji authored
There was an error in the `.gitlab-ci.yml` generation script, so it was also fixed.
-
- 29 Dec, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Avoid unneeded directory creation during `rake -T`, etc.
-
KOBAYASHI Shuji authored
-
- 28 Dec, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Use `Rake.verbose` instead of `$verbose` and `$pp_show` in build scripts
-
KOBAYASHI Shuji authored
The incompatibility that the commands of `FileUtils` origin output verbose by default due to the changes in d8a5163b and 26e6e75b is also fixed.
-
- 27 Dec, 2019 10 commits
-
-
Yukihiro "Matz" Matsumoto authored
Use Rake DSL instead of commands of `FileUtils`
-
KOBAYASHI Shuji authored
- Respect `--verbose(-v)` and `--dry-run(-n)` options. - Silence warnings to keyword arguments on Ruby 2.7.
-
Yukihiro "Matz" Matsumoto authored
`gcc` sanitizer does not work on some environment (namely my localhost). Although it works on Travis, it is not convenient that tests fail on the local host. We keep sanitizer tests on the local (using `clang`). This reverts commit 9cde9673.
-
Yukihiro "Matz" Matsumoto authored
It is stricter than CRuby but confusing anyway.
-
Yukihiro "Matz" Matsumoto authored
But it causes warnings as CRuby does; fix #4892 fix #489
-
Yukihiro "Matz" Matsumoto authored
The patch was originally written by @take-cheese. I have fixed the conflict caused by `minirake` deletion - @matz.
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
As of CRuby2.7 it is only warned. `mruby` prohibits explicitly to implement the future Ruby3 behavior.
-
KOBAYASHI Shuji authored
The `debug` build target (`MRB_GC_STRESS` is enabled) on CI have been compiled but not tested so far. However, I think testing with `MRB_GC_STRESS` is effective (in fact, I found #4907 bug). Therefore, I integrated `debug` and `full-debug` build targets to enable `MRB_GC_STRESS` testing. Testing with `MRB_GC_STRESS` takes a little time, but compiling takes more time, so CI execution time does not increase due to decrease of build target.
-
Yukihiro "Matz" Matsumoto authored
Enable sanitizer in travis test
-
- 25 Dec, 2019 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix potentially use of wrong method cache
-
KOBAYASHI Shuji authored
#### Example (with `MRB_METHOD_CACHE`) ```ruby GC.start c = Class.new p c #=> #<Class:0x7fd6a180e790> c.new #=> cache `c.new` c = nil GC.start #=> `c` is GCed r = Range.dup p r #=> #<Class:0x7fd6a180e790> # [same pointer as `c`] r.new(2, 3) #=> ArgumentError: 'initialize': # wrong number of arguments (2 for 0) # [`c.new` is called instead of `r.new`] ``` #### Cause An entry of method cache is identified by class pointer and method id. However, reusing memory after GC may create a class with the same pointer as the cached class. #### Treatment Cleared method caches of the class when the class is GCed.
-
Yukihiro "Matz" Matsumoto authored
Refine the assertion failure message in mrdb print tests
-
- 24 Dec, 2019 2 commits
-
-
KOBAYASHI Shuji authored
#### Before this patch: ```console Fail: mruby-bin-debugger(print) error (mrbgems: mruby-bin-debugger) - Assertion[2] Expected true to be false. ``` #### After this patch: ```console Fail: mruby-bin-debugger(print) error (mrbgems: mruby-bin-debugger) - Assertion[2] Expected "$2 = undefined method 'bar' (NoMethodError)\n" to be start_with? "$2 = (eval):2: undefined method". ```
-
Yukihiro "Matz" Matsumoto authored
Add double quotes for cygwin filenames #4904
-
- 23 Dec, 2019 1 commit
-
-
kishima authored
-