- 07 Dec, 2019 1 commit
-
-
KOBAYASHI Shuji authored
-
- 05 Dec, 2019 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
Auto detect `MRB_TIME_T_UINT`
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
Refine `mrb_alloca()`
-
- 04 Dec, 2019 1 commit
-
-
KOBAYASHI Shuji authored
* The allocated memory is guaranteed to be aligned for any data type (it was not guaranteed when string type is embed). * Make allocation size exactly specified size (does not allocate space for a null byte).
-
- 03 Dec, 2019 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
Silence Clang warning with `MRB_INT64` and `MRB_32BIT` in `time.c`
-
KOBAYASHI Shuji authored
Silence the following warnings: ``` /mruby/mrbgems/mruby-time/src/time.c:871:15: warning: result of comparison of constant 9223372036854775807 with expression of type 'time_t' (aka 'long') is always false [-Wtautological-constant-out-of-range-compare] if (tm->sec > MRB_INT_MAX || tm->sec < MRB_INT_MIN) { ~~~~~~~ ^ ~~~~~~~~~~~ /mruby/mrbgems/mruby-time/src/time.c:871:40: warning: result of comparison of constant -9223372036854775808 with expression of type 'time_t' (aka 'long') is always false [-Wtautological-constant-out-of-range-compare] if (tm->sec > MRB_INT_MAX || tm->sec < MRB_INT_MIN) { ~~~~~~~ ^ ~~~~~~~~~~~ /mruby/mrbgems/mruby-time/src/time.c:887:16: warning: result of comparison of constant 9223372036854775807 with expression of type 'time_t' (aka 'long') is always false [-Wtautological-constant-out-of-range-compare] if (tm->usec > MRB_INT_MAX || tm->usec < MRB_INT_MIN) { ~~~~~~~~ ^ ~~~~~~~~~~~ /mruby/mrbgems/mruby-time/src/time.c:887:42: warning: result of comparison of constant -9223372036854775808 with expression of type 'time_t' (aka 'long') is always false [-Wtautological-constant-out-of-range-compare] if (tm->usec > MRB_INT_MAX || tm->usec < MRB_INT_MIN) { ~~~~~~~~ ^ ~~~~~~~~~~~ ```
-
Yukihiro "Matz" Matsumoto authored
Silence Clang warning with `MRB_INT32` and `MRB_64BIT` in `time.c`
-
- 02 Dec, 2019 2 commits
-
-
KOBAYASHI Shuji authored
Silence the following warning: ``` /mruby/mrbgems/mruby-time/src/time.c:258:60: warning: result of comparison of constant -9223372036854775808 with expression of type 'mrb_int' (aka 'int') is always false [-Wtautological-constant-out-of-range-compare] if ((mrb_time_int)i > MRB_TIME_MAX || MRB_TIME_MIN > i) { ~~~~~~~~~~~~ ^ ~ ```
-
Yukihiro "Matz" Matsumoto authored
Merge pull request #4848 from shuujii/fix-MRB_FIXNUM_SHIFT-with-MRB_WORD_BOXING-MRB_INT32-and-MRB_64BIT Fix `MRB_FIXNUM_SHIFT` with `MRB_WORD_BOXING`, `MRB_INT32` and `MRB_64BIT`
-
- 01 Dec, 2019 1 commit
-
-
KOBAYASHI Shuji authored
### Example ```ruby # example.rb max32 = 2**30 - 1 + 2**30 min32 = -max32-1 [max32, max32+1, min32, min32-1].each{|n| p [n, n.class]} ``` #### Before this patch: ``` $ bin/mruby example.rb [2147483647, Float] [2147483648, Float] [-2147483648, Float] [-2147483649, Float] ``` #### After this patch: ``` $ bin/mruby example.rb [2147483647, Fixnum] [2147483648, Float] [-2147483648, Fixnum] [-2147483649, Float] ```
-
- 30 Nov, 2019 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Quit `mruby -v` immediately if no program is given for Ruby compatibility
-
KOBAYASHI Shuji authored
-
- 29 Nov, 2019 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix `mruby --verbose` (regression by #4827)
-
KOBAYASHI Shuji authored
#### Before this patch: ``` $ bin/mruby --verbose -e 'p 1' bin/mruby: Cannot open program file: --verbose ``` #### After this patch: ``` $ bin/mruby --verbose -e 'p 1' 00001 NODE_SCOPE: (snip) irep 0x7fe97041df30 nregs=4 nlocals=1 pools=0 syms=1 reps=0 iseq=11 file: -e 1 000 OP_LOADSELF R1 (snip) 1 ```
-
Yukihiro "Matz" Matsumoto authored
Change the URL of `mruby.org` [ci skip]
-
- 28 Nov, 2019 1 commit
-
-
KOBAYASHI Shuji authored
- `http` -> `https` - Remove `www.`
-
- 27 Nov, 2019 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
Support `--` (end of options) to `mruby` command
-
KOBAYASHI Shuji authored
#### Before this patch: ``` $ bin/mruby -e 'p ARGV' -- -x bin/mruby: invalid option -- (-h will show valid options) ``` #### After this patch: ``` $ bin/mruby -e 'p ARGV' -- -x ["-x"] ```
-
Yukihiro "Matz" Matsumoto authored
Add assertion to `RVALUE` size
-
- 25 Nov, 2019 4 commits
-
-
Yukihiro "Matz" Matsumoto authored
Rename `BITSIZE` to `BIT` and `BIT` to `BIT_POS` for consistency
-
Yukihiro "Matz" Matsumoto authored
Fix `ARGV` value in `mruby` command (regression by #4827)
-
KOBAYASHI Shuji authored
#### Before this patch: ``` $ bin/mruby -e 'p ARGV' a b ["bin/mruby", "-e", "p ARGV", "a", "b"] ``` #### After this patch: ``` $ bin/mruby -e 'p ARGV' a b ["a", "b"] ```
-
Yukihiro "Matz" Matsumoto authored
Support short options concatenation to `mruby` command
-
- 24 Nov, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Remove unused methods of `MRubyIOTestUtil`
-
KOBAYASHI Shuji authored
-
- 23 Nov, 2019 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
Use proper `PEEK` macro for `OP_EPUSH` in `patch_irep`; fix #4833
-
KOBAYASHI Shuji authored
The bit width terminology is unified to `BIT` according to `MRB_INT_BIT` and `CHAR_BIT`. Also the bit position terminology is unified to `BIT_POS`.
-
KOBAYASHI Shuji authored
-
- 22 Nov, 2019 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
Allow `true`/`false` argument to `Kernel#exit`
-
Yukihiro "Matz" Matsumoto authored
Introduce `mrb_ssize` type for buffer size on memory; ref #4483
-
KOBAYASHI Shuji authored
-
- 21 Nov, 2019 1 commit
-
-
KOBAYASHI Shuji authored
Previously, `mrb_int` was used as the type that represents the buffer size on memory, but the sizes of `RString` and `RArray` exceed 6 words when `MRB_INT64` is enabled on 32-bit CPU. I don't think it is necessary to be able to represent the buffer size on memory that exceeds the virtual address space. Therefore, for this purpose, introduce `mrb_ssize` which doesn't exceed the sizes of `mrb_int` and pointer. I think all `mrb_int` used for this purpose should be changed to `mrb_ssize`, but currently only the members of the structures (`RString`, `mrb_shared_string`, `RArray` and `mrb_shared_array`) are changed.
-
- 20 Nov, 2019 1 commit
-
-
KOBAYASHI Shuji authored
-
- 19 Nov, 2019 4 commits
-
-
Yukihiro "Matz" Matsumoto authored
Always enable the rational and complex literals
-
Yukihiro "Matz" Matsumoto authored
Release `mruby 2.1.0`.
-
KOBAYASHI Shuji authored
I think they can always be enabled because the regular expression literal is always enabled.
-
Hiroshi Mimaki authored
-
- 18 Nov, 2019 1 commit
-
-
Yukihiro "Matz" Matsumoto authored
Refactor `mrb_string_value_cstr`
-