- 08 Oct, 2019 4 commits
-
-
Yukihiro "Matz" Matsumoto authored
Implement Ruby2.7's frozen strings from `Module#name`
-
Yukihiro "Matz" Matsumoto authored
Merge pull request #4760 from shuujii/use-mrb_str_concat-instead-of-mrb_str_to_str-plus-mrb_str_cat_str Use `mrb_str_concat` instead of `mrb_str_to_str` + `mrb_str_cat_str`
-
KOBAYASHI Shuji authored
-
KOBAYASHI Shuji authored
-
- 06 Oct, 2019 7 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Get keyword arguments with `mrb_get_args()`
-
dearblue authored
Keyword arguments can now be retrieved with the `:` specifier and `mrb_kwargs` data. For the interface, I referred to CRuby's `rb_get_kwargs()`. For implementation, I referred to `OP_KARG` or etc.
-
Yukihiro "Matz" Matsumoto authored
Refine the usage message of `mirb` command
-
Yukihiro "Matz" Matsumoto authored
Refine the usage message of `mruby` command
-
KOBAYASHI Shuji authored
-
KOBAYASHI Shuji authored
-
- 05 Oct, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Merge pull request #4752 from shuujii/drop-initialization-dependency-from-mruby-print-to-mruby-sprintf Drop initialization dependency from `mruby-print` to `mruby-sprintf`
-
KOBAYASHI Shuji authored
In the old implementation, `Kernel#printf` raise error if `mruby-sprintf` gem isn't specified before `mruby-print` gem. The new implementation eliminates this ordering issue. This way is the same as `Kernel#printf` and `IO#printf` in `mruby-io` gem.
-
- 04 Oct, 2019 5 commits
-
-
Yukihiro "Matz" Matsumoto authored
This is an experimental changes in Ruby 2.7.
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Remove unused code to old Visual Studio in `tasks/toolchains/visualcpp.rake`
-
KOBAYASHI Shuji authored
-
- 03 Oct, 2019 8 commits
-
-
Yukihiro "Matz" Matsumoto authored
Remove duplicates header files in `src/pool.c`
-
dearblue authored
These are included in `mruby.h`. As a background, if `enable_cxx_abi` is specified, the macro that defines the maximum value in `stdint.h` is undefined depending on the environment. - Confirmed with gcc on FreeBSD 12.0 and mingw32-gcc available on FreeBSD. - `INTPTR_MAX`, `INT64_MAX` and `UINT64_MAX` are defined by `cstdint` added in C++11. But `toolchains :gcc` adds `-std=c++03`, so the macros are not defined. - To have these defined in `C++03`, `__STDC_CONSTANT_MACROS` must be defined in advance. This is already done by `mruby.h`.
-
Yukihiro "Matz" Matsumoto authored
Add tests for #4746
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
Fix opcode semantics comment miss.
-
Hirohito Higashi authored
-
Hirohito Higashi authored
-
Yukihiro "Matz" Matsumoto authored
-
- 02 Oct, 2019 4 commits
-
-
Yukihiro "Matz" Matsumoto authored
For example, local variables in the following def: ```ruby def foo(a = (not_set = true), &block) ... end ``` should be `a, block, not_set`, but were `a, not_set, block`.
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Avoid `symhash()` call for inline symbol in `sym_intern()`
-
KOBAYASHI Shuji authored
-
- 01 Oct, 2019 6 commits
-
-
Yukihiro "Matz" Matsumoto authored
Escape the AST string
-
Yukihiro "Matz" Matsumoto authored
Dump more node types in `mrb_parser_dump`
-
KOBAYASHI Shuji authored
#### Before this patch: ```terminal $ bin/mruby -v -e '%w[1 2]' mruby 2.0.1 (2019-04-04) 00001 NODE_SCOPE: 00001 NODE_BEGIN: 00001 NODE_WORDS: 00001 NODE_STR "1" len 1 00001 node type: 85 (0x55) 00001 NODE_STR "2" len 1 (snip) ``` #### After this patch: ```terminal $ bin/mruby -v -e '%w[1 2]' mruby 2.0.1 (2019-04-04) 00001 NODE_SCOPE: 00001 NODE_BEGIN: 00001 NODE_WORDS: 00001 NODE_STR "1" len 1 00001 NODE_LITERAL_DELIM 00001 NODE_STR "2" len 1 (snip) ```
-
KOBAYASHI Shuji authored
#### Before this patch: ```terminal $ bin/mruby -v -e '%i[1]; %I[#{2}]' mruby 2.0.1 (2019-04-04) 00001 NODE_SCOPE: 00001 NODE_BEGIN: 00001 node type: 87 (0x57) 00001 node type: 87 (0x57) (snip) ``` #### After this patch: ```terminal $ bin/mruby -v -e '%i[1]; %I[#{2}]' mruby 2.0.1 (2019-04-04) 00001 NODE_SCOPE: 00001 NODE_BEGIN: 00001 NODE_SYMBOLS: 00001 NODE_STR "1" len 1 00001 NODE_SYMBOLS: 00001 NODE_STR "" len 0 00001 NODE_BEGIN: 00001 NODE_INT 2 base 10 00001 NODE_STR "" len 0 (snip) ```
-
KOBAYASHI Shuji authored
#### Before this patch: ```terminal $ bin/mruby -v -e '%w[1]; %W[#{2}]' mruby 2.0.1 (2019-04-04) 00001 NODE_SCOPE: 00001 NODE_BEGIN: 00001 node type: 86 (0x56) 00001 node type: 86 (0x56) (snip) ``` #### After this patch: ```terminal $ bin/mruby -v -e '%w[1]; %W[#{2}]' mruby 2.0.1 (2019-04-04) 00001 NODE_SCOPE: 00001 NODE_BEGIN: 00001 NODE_WORDS: 00001 NODE_STR "1" len 1 00001 NODE_WORDS: 00001 NODE_STR "" len 0 00001 NODE_BEGIN: 00001 NODE_INT 2 base 10 00001 NODE_STR "" len 0 (snip) ```
-
Yukihiro "Matz" Matsumoto authored
Remove a trailing space in `MRUBY_DESCRIPTION`
-
- 30 Sep, 2019 2 commits
-
-
KOBAYASHI Shuji authored
-
KOBAYASHI Shuji authored
#### Before this patch: ```terminal $ bin/mruby -v -e ':"#{1}"; ["#{2}": 0]' mruby 2.0.1 (2019-04-04) 00001 NODE_SCOPE: 00001 NODE_BEGIN: 00001 node type: 83 (0x53) 00001 NODE_ARRAY: 00001 NODE_KW_HASH: 00001 key: 00001 node type: 83 (0x53) 00001 value: 00001 NODE_INT 0 base 10 (snip) ``` #### After this patch: ```terminal $ bin/mruby -v -e ':"#{1}"; ["#{2}": 0]' mruby 2.0.1 (2019-04-04) 00001 NODE_SCOPE: 00001 NODE_BEGIN: 00001 NODE_DSYM: 00001 NODE_DSTR: 00001 NODE_STR "" len 0 00001 NODE_BEGIN: 00001 NODE_INT 1 base 10 00001 NODE_STR "" len 0 00001 NODE_ARRAY: 00001 NODE_KW_HASH: 00001 key: 00001 NODE_DSYM: 00001 NODE_DSTR: 00001 NODE_STR "" len 0 00001 NODE_BEGIN: 00001 NODE_INT 2 base 10 00001 NODE_STR "" len 0 00001 value: 00001 NODE_INT 0 base 10 (snip) ```
-
- 29 Sep, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Remove unnecessary type `mrb_hash_value`
-