summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2019-10-14Fixed a bug in `Array#difference`.Yukihiro "Matz" Matsumoto
2019-10-13Merge pull request #4772 from shuujii/refactor-mrb_class_name_classYukihiro "Matz" Matsumoto
Refactor `mrb_class_name_class`
2019-10-13Refactor `mrb_class_name_class`KOBAYASHI Shuji
- Use `mrb_sym_name_len` instead of `mrb_sym_name` (class name should not be escaped). - Avoid `mrb_str_dup` (it is unnecessary to be shared string because it is changed).
2019-10-12Merge pull request #4770 from ↵Yukihiro "Matz" Matsumoto
shuujii/sHARED-string-is-not-required-when-sharing-POOL-string SHARED string is not required when sharing POOL string
2019-10-12Merge pull request #4769 from shuujii/rename-str_make_shared-to-str_shareYukihiro "Matz" Matsumoto
Rename `str_make_shared()` to `str_share()` in `src/string.c`
2019-10-12SHARED string is not required when sharing POOL stringKOBAYASHI Shuji
The heap string buffer of POOL string always exists, does not need to be released, and read only, so it can be shared as NOFREE string.
2019-10-12Rename `str_make_shared()` to `str_share()` in `src/string.c`KOBAYASHI Shuji
Because it may not create `struct mrb_shared_string`.
2019-10-11Move exception raising to `scope_new`.Yukihiro "Matz" Matsumoto
Besides that fix bugs that mistakenly calls `raise_error` that emits code to raise runtime error instead of `codegen_error` that terminates code generation immediately.
2019-10-11Merge pull request #4767 from ↵Yukihiro "Matz" Matsumoto
shuujii/remove-unused-exception-classes-in-mruby-io-gem Remove unused exception classes in `mruby-io` gem
2019-10-11Remove unused exception classes in `mruby-io` gemKOBAYASHI Shuji
2019-10-10Fixed a bug in `mruby-time` with `NO_GETTIMEOFDAT`.Yukihiro "Matz" Matsumoto
2019-10-10Silence double free warnings by `mrb_local_free()`.Yukihiro "Matz" Matsumoto
The warnings were detected by cppcheck.
2019-10-10Merge pull request #4764 from shuujii/integrate-mrb_str_inspect-and-mrb_str_dumpYukihiro "Matz" Matsumoto
Integrate `mrb_str_inspect` and `mrb_str_dump`
2019-10-10Integrate `mrb_str_inspect` and `mrb_str_dump`KOBAYASHI Shuji
2019-10-09Merge pull request #4763 from ↵Yukihiro "Matz" Matsumoto
shuujii/mrdb-Fix-that-print-command-raises-FrozenError Fix that `print` command raises `FrozenError` in `mrdb`; ref 1f5a7f2f
2019-10-09Fix that `print` command raises `FrozenError` in `mrdb`; ref 1f5a7f2fKOBAYASHI Shuji
#### Before this patch: ``` $ echo 'p true' | bin/mrdb /dev/null (/dev/null:1) mruby application exited. FrozenError: can't modify frozen String (-:0) ``` #### After this patch: ``` $ echo 'p true' | bin/mrdb /dev/null (/dev/null:1) $1 = true (/dev/null:1) ```
2019-10-09Revert part of #4758 to reduce number of tests.Yukihiro "Matz" Matsumoto
More tests, more time.
2019-10-09Merge pull request #4761 from take-cheeze/fix_4759Yukihiro "Matz" Matsumoto
Add mrbgem version field to lock file
2019-10-09Add mrbgem version field to lock filetake-cheeze
2019-10-08Merge pull request #4758 from ↵Yukihiro "Matz" Matsumoto
shuujii/implement-Ruby2.7-frozen-strings-from-Module-name Implement Ruby2.7's frozen strings from `Module#name`
2019-10-08Merge pull request #4760 from ↵Yukihiro "Matz" Matsumoto
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`
2019-10-08Use `mrb_str_concat` instead of `mrb_str_to_str` + `mrb_str_cat_str`KOBAYASHI Shuji
2019-10-08Implement Ruby2.7's frozen strings from `Module#name`KOBAYASHI Shuji
2019-10-06Remove unnecessary function: `mrb_str_freeze`.Yukihiro "Matz" Matsumoto
2019-10-06Merge pull request #4754 from dearblue/get-keyword-argsYukihiro "Matz" Matsumoto
Get keyword arguments with `mrb_get_args()`
2019-10-06Get keyword arguments with `mrb_get_args()`dearblue
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.
2019-10-06Merge pull request #4757 from shuujii/refine-the-usage-message-of-mirb-commandYukihiro "Matz" Matsumoto
Refine the usage message of `mirb` command
2019-10-06Merge pull request #4755 from shuujii/refine-the-usage-message-of-mruby-commandYukihiro "Matz" Matsumoto
Refine the usage message of `mruby` command
2019-10-06Refine the usage message of `mirb` commandKOBAYASHI Shuji
2019-10-06Refine the usage message of `mruby` commandKOBAYASHI Shuji
2019-10-05Merge pull request #4752 from ↵Yukihiro "Matz" Matsumoto
shuujii/drop-initialization-dependency-from-mruby-print-to-mruby-sprintf Drop initialization dependency from `mruby-print` to `mruby-sprintf`
2019-10-05Drop initialization dependency from `mruby-print` to `mruby-sprintf`KOBAYASHI Shuji
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.
2019-10-04Freeze strings from `nil.to_s`, `true.to_s`, `false.to_s`.Yukihiro "Matz" Matsumoto
This is an experimental changes in Ruby 2.7.
2019-10-04Implement Ruby2.7's frozen strings from `Symbol#to_s`.Yukihiro "Matz" Matsumoto
2019-10-04Refactor local variables addition in optional/keyword arguments.Yukihiro "Matz" Matsumoto
2019-10-04Merge pull request #4751 from shuujii/remove-unused-code-to-old-Visual-StudioYukihiro "Matz" Matsumoto
Remove unused code to old Visual Studio in `tasks/toolchains/visualcpp.rake`
2019-10-04Remove unused code to old Visual Studio in `tasks/toolchains/visualcpp.rake`KOBAYASHI Shuji
2019-10-04Merge pull request #4750 from dearblue/c++-abiYukihiro "Matz" Matsumoto
Remove duplicates header files in `src/pool.c`
2019-10-03Remove duplicates header files in `src/pool.c`dearblue
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`.
2019-10-03Merge pull request #4749 from shuujii/add-tests-for-4746Yukihiro "Matz" Matsumoto
Add tests for #4746
2019-10-03Add tests for #4746KOBAYASHI Shuji
2019-10-03Merge pull request #4748 from HirohitoHigashi/masterYukihiro "Matz" Matsumoto
Fix opcode semantics comment miss.
2019-10-03Fix opcode semantics comment miss. (op_jmpnil)Hirohito Higashi
2019-10-03Fix opcode semantics comment miss.Hirohito Higashi
2019-10-03Add local variable reordering to `kwargs`; ref #4746Yukihiro "Matz" Matsumoto
2019-10-03Need to reorder local variables defined in `opt`; fix #4746Yukihiro "Matz" Matsumoto
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`.
2019-10-03Refactor `append_gen` function.Yukihiro "Matz" Matsumoto
2019-10-02Merge pull request #4747 from ↵Yukihiro "Matz" Matsumoto
shuujii/avoid-symhash-call-for-inline-symbol-in-sym_intern Avoid `symhash()` call for inline symbol in `sym_intern()`
2019-10-02Avoid `symhash()` call for inline symbol in `sym_intern()`KOBAYASHI Shuji
2019-10-02Merge pull request #4736 from dearblue/ast-strdumpYukihiro "Matz" Matsumoto
Escape the AST string