summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2022-01-15started work on raylib bindingsrealtradam
2022-01-13fix header and library paths and comment out windows buildarngo
2022-01-13cleanup mruby build configweb_exportarngo
2022-01-13added gemboxrealtradam
2022-01-12fixed project rootrealtradam
2022-01-12some changesrealtradam
2022-01-12fix pathsarngo
2022-01-11parse.y: numbered parameters should not appear on toplevel.Yukihiro "Matz" Matsumoto
Toplevel includes the top of the method/class/module definitions.
2022-01-11parse.y: move numbered parameter indexing to lexer.Yukihiro "Matz" Matsumoto
2022-01-10parse.y: `p->nvar` (numbered argument index list) may be `NULL`.Yukihiro "Matz" Matsumoto
2022-01-10AUTHORS: update entries [ci skip]Yukihiro "Matz" Matsumoto
2022-01-09Merge pull request #5630 from dearblue/dumpsYukihiro "Matz" Matsumoto
Fixes file header in src/{cdump,dump}.c [ci skip]
2022-01-09Fixes file header in src/{cdump,dump}.c [ci skip]dearblue
The file headers were pointing to each other's files.
2022-01-06Merge pull request #5628 from dearblue/super-kwargsYukihiro "Matz" Matsumoto
Fixing keyword arguments with `super`
2022-01-06Merge pull request #5629 from dearblue/nanboxYukihiro "Matz" Matsumoto
Allows handling of unaligned cptrs for `MRB_NAN_BOXING`
2022-01-05class.c: cancel #5620 which is no longer needed since #5622Yukihiro "Matz" Matsumoto
This reverts commit d3b7601af96c9e0eeba4c89359289661c755a74a.
2022-01-05mrbc.c: simplify place holder functions; #5622Yukihiro "Matz" Matsumoto
2022-01-05object.c: Call functions directly from `mrb_ensure_int_type()`; #5622Yukihiro "Matz" Matsumoto
2022-01-05Allows handling of unaligned cptrs for `MRB_NAN_BOXING`dearblue
It seems to be preferable to be able to handle pointers of type `char` as well. For this purpose, `mrb_nanbox_tt_inline` has been reorganized. - `MRB_NANBOX_TT_POINTER` has been split into `MRB_NANBOX_TT_OBJECT` and `MRB_NANBOX_TT_CPTR` - `MRB_NANBOX_TT_SYMBOL` has been merged into `MRB_NANBOX_TT_MISC`
2022-01-05Fixing keyword arguments with `super`dearblue
fix #5627
2022-01-04Merge pull request #5623 from dearblue/more-presymYukihiro "Matz" Matsumoto
Improves presym scanning
2022-01-04Merge pull request #5624 from dearblue/powerof2Yukihiro "Matz" Matsumoto
Assert that `MRB_METHOD_CACHE_SIZE` is a power of 2
2022-01-03Merge pull request #5625 from dearblue/proc_newYukihiro "Matz" Matsumoto
Assign after `mrb_irep_incref()` in `mrb_proc_new()`
2022-01-02Merge pull request #5622 from dearblue/to_fYukihiro "Matz" Matsumoto
Call functions directly from `mrb_ensure_float_type()`
2022-01-02Merge pull request #5620 from dearblue/adjust-stacksYukihiro "Matz" Matsumoto
Adjusting the stack for after it enters the virtual machine
2022-01-02Assign after `mrb_irep_incref()` in `mrb_proc_new()`dearblue
ref. 28ccc664e5dcd3f9d55173e9afde77c4705a9ab6
2022-01-02Assert that `MRB_METHOD_CACHE_SIZE` is a power of 2dearblue
The `mrb_static_assert_powerof2()` macro has been introduced for this purpose.
2022-01-02Improves presym scanningdearblue
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? ```
2022-01-01proc.c: should not reference `irep` when copying failed.Yukihiro "Matz" Matsumoto
It may cause broken reference count numbers.
2021-12-31Call functions directly from `mrb_ensure_float_type()`dearblue
ref. commit 7f40b645d2773c8f50c48ae4adf90488e164da55 Currently, the build configurations `MRB_USE_COMPLEX` and `MRB_USE_RATIONAL` are not listed in the documentation. In other words, they are hidden settings. They are defined in `mrbgems/mruby-{complex,rational}/mrbgem.rake`. So this patch assumes that it is safe to refer to these functions in core-gems directly from core functions. However, applications that link with `libmruby_core.a` will have compatibility issues. In fact, `mrbgems/mruby-bin-mrbc` links with `libmruby_core.a`, so I had to prepare a dummy function.
2021-12-31vm.c: use `prepare_missing` in `mrb_funcall_with_block`Yukihiro "Matz" Matsumoto
Remove code duplication.
2021-12-31Merge pull request #5621 from dearblue/ci-cygwinYukihiro "Matz" Matsumoto
Extend the Cygwin CI time limit to 15 minutes.
2021-12-31Merge pull request #5619 from dearblue/propertiesYukihiro "Matz" Matsumoto
Get object properties after `mrb_get_args()`
2021-12-31numeric.c: merge `mrb_as_float` implementation to `mrb_ensure_float_type`.Yukihiro "Matz" Matsumoto
Since they are basically duplicated functionality. `mrb_as_float` is now a macro defined using `mrb_ensure_float_type`; #5620
2021-12-31object.c: add conversion to Float from Rational, Complex; #5620Yukihiro "Matz" Matsumoto
2021-12-31numeric.c: `mrb_as_float` should not call `to_f` for generic objects.Yukihiro "Matz" Matsumoto
It should only call `to_f` for Rational and Complex numbers. Ref #5540 #5613 #5620
2021-12-31class.c, variable,c: replace `size_t` by `int`.Yukihiro "Matz" Matsumoto
That reduce memory consumption by iv/mt tables.
2021-12-30Extend the Cygwin CI time limit to 15 minutes.dearblue
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.
2021-12-30Adjusting the stack for after it enters the virtual machinedearblue
ref. #5613. I mentioned in #5540 that there was no reentrant to the virtual machine, but in fact it was still a possibility at that point. Also, the variable `ci` needs to be recalculated at the same time.
2021-12-30Get object properties after `mrb_get_args()`dearblue
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.
2021-12-29object.c: move string to float conversion to `mrb_f_float`.Yukihiro "Matz" Matsumoto
2021-12-29string.c: reorganize `str_convert_range` using `mrb_ensure_int_type`Yukihiro "Matz" Matsumoto
2021-12-29string.c: use `mrb_as_int` macro.Yukihiro "Matz" Matsumoto
2021-12-29object.c: introduce `mrb_ensure_{int,float}_type`.Yukihiro "Matz" Matsumoto
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.
2021-12-29object.c: avoid implicit `to_i` and `to_f` calls.Yukihiro "Matz" Matsumoto
mruby have removed `to_int` implicit conversion, so `mrb_to_integer` should not call `to_i` for conversion.
2021-12-29common.h: include `<sys/types.h>` for `ssize_t`; #5617Yukihiro "Matz" Matsumoto
2021-12-29array.c: fix `mrb_ary_shift_m` initialization bug.Yukihiro "Matz" Matsumoto
The `ARY_PTR` and `ARY_LEN` may be modified in `mrb_get_args`.
2021-12-29Merge pull request #5616 from mimaki/refine-ssize_t-on-msvcYukihiro "Matz" Matsumoto
Fix build error and refine definition of `ssize_t` on MSVC.
2021-12-28Fix build error and refine definition of `ssize_t` on MSVC.mimaki
2021-12-28Merge pull request #5614 from jbampton/patch-1Yukihiro "Matz" Matsumoto
Fix word casing in the README