Yukihiro "Matz" Matsumoto
af9ce1f64c
mruby-struct/struct.c: adjust spaces.
2022-10-12 22:02:21 +09:00
Yukihiro "Matz" Matsumoto
37a3252ed3
mruby-struct/struct.c: need to use MRB_TT_STRUCT.
2022-10-11 23:24:19 +09:00
Yukihiro "Matz" Matsumoto
83fc75f399
doc/guides/mrbconf.md: update description for the configuration file.
2022-10-10 22:28:51 +09:00
Yukihiro "Matz" Matsumoto
e19d55dbdd
AUTHORS: update entries [ci skip]
2022-10-10 22:23:11 +09:00
Yukihiro "Matz" Matsumoto
4cefb2cccd
class.c (mt_get): fix a bug regarding inline method cache.
2022-10-10 22:23:10 +09:00
Yukihiro "Matz" Matsumoto
16a224e25d
mrbconf.h: add MRB_USE_INLINE_METHOD_CACHE option description.
...
Currently it does not improve the performance (yet).
2022-10-10 22:23:10 +09:00
Yukihiro "Matz" Matsumoto
5d1d58d4d1
Merge pull request #5805 from dearblue/doc/another-bigint
...
Add `examples/mrbgems/mruby-YOUR-bigint`
2022-10-10 19:52:30 +09:00
Yukihiro "Matz" Matsumoto
c01587672d
Merge pull request #5806 from dearblue/doc/mrbconf
...
Induce configuration to the `build_config` file
2022-10-10 19:51:08 +09:00
dearblue
6f80f09547
Induce configuration to the build_config file
2022-10-10 18:22:05 +09:00
dearblue
8f0dba2985
Add examples/mrbgems/mruby-YOUR-bigint
2022-10-10 14:12:53 +09:00
Yukihiro "Matz" Matsumoto
9fe5fc441a
Merge pull request #5803 from bovi/patch-1
...
Update year in LICENSE file
2022-10-10 00:13:50 +09:00
Daniel Bovensiepen Li
c47038462f
Update year to 2022 in mruby.h
2022-10-09 17:02:27 +08:00
Daniel Bovensiepen Li
8717ef86c0
Update year in LICENSE file
2022-10-09 15:40:06 +08:00
Yukihiro "Matz" Matsumoto
95bf3c0d99
Merge pull request #5802 from dearblue/doc/addfiles
...
Additional file patterns to be documented
2022-10-07 12:05:31 +09:00
Yukihiro "Matz" Matsumoto
daf2e23487
Merge pull request #5801 from dearblue/doc/call-seq
...
Corrected document directive to "call-seq"
2022-10-07 12:04:59 +09:00
Yukihiro "Matz" Matsumoto
27619cebc0
mruby.h: update documentation for mrb_singleton_class(); ref #5800
2022-10-07 12:03:28 +09:00
Yukihiro "Matz" Matsumoto
5d13733352
vm.c (OP_ENTER): address fast path.
...
For method of fixed arguments only (no rest arguments, no keyword
arguments). Makes Fibonacci benchmark and ao_bench 4-5% faster.
2022-10-07 12:01:13 +09:00
Yukihiro "Matz" Matsumoto
df8295cbeb
Merge pull request #5800 from dearblue/doc/singleton-class
...
Added documentation for `mrb_singleton_class()`
2022-10-07 12:01:02 +09:00
dearblue
911c81e0f1
Additional file patterns to be documented
2022-10-06 21:57:43 +09:00
dearblue
366185a54d
Corrected document directive to "call-seq"
2022-10-06 21:56:38 +09:00
dearblue
dbc78cd861
Added documentation for mrb_singleton_class()
2022-10-06 21:56:07 +09:00
Yukihiro "Matz" Matsumoto
52562f7dcc
Merge pull request #5799 from mruby/dependabot/github_actions/github/super-linter-4.9.7
...
build(deps): bump github/super-linter from 4.9.6 to 4.9.7
2022-10-05 23:13:09 +09:00
Yukihiro "Matz" Matsumoto
78c8b649e7
mruby-print/print.c: small refactoring.
...
Inline `printstr` function which is called from only one place.
2022-10-05 23:11:11 +09:00
dependabot[bot]
5f4b83f7c1
build(deps): bump github/super-linter from 4.9.6 to 4.9.7
...
Bumps [github/super-linter](https://github.com/github/super-linter ) from 4.9.6 to 4.9.7.
- [Release notes](https://github.com/github/super-linter/releases )
- [Changelog](https://github.com/github/super-linter/blob/main/docs/release-process.md )
- [Commits](https://github.com/github/super-linter/compare/v4.9.6...v4.9.7 )
---
updated-dependencies:
- dependency-name: github/super-linter
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-05 14:08:56 +00:00
Yukihiro "Matz" Matsumoto
268f6dcab3
numeric.c (mrb_float_to_integer): isinf/isnan takes any float values.
...
So don't need to cast to `float`, just use `mrb_float`.
2022-10-04 11:05:15 +09:00
Yukihiro "Matz" Matsumoto
62e0e3eebe
class.c (mrb_get_args_a): adjust spacing [ci skip]
2022-10-04 11:05:15 +09:00
Yukihiro "Matz" Matsumoto
ea1bc39b52
mruby-proc-ext/proc.c (mrb_proc_inspect): update the format.
2022-10-04 11:05:15 +09:00
Yukihiro "Matz" Matsumoto
e7e22ec6a8
mruby-method/method.c (method_to_s): add location information.
...
Test updated too.
2022-10-04 11:05:14 +09:00
Yukihiro "Matz" Matsumoto
0c9fd9cffd
Merge pull request #5798 from boahc077/github_actions_token_permission
...
ci: add minimum GitHub token permissions for workflows
2022-10-04 11:05:07 +09:00
Ashish Kurmi
34c640b8be
ci: add minimum GitHub token permissions for workflows
...
Signed-off-by: Ashish Kurmi <akurmi@stepsecurity.io >
2022-10-02 10:15:55 -07:00
Yukihiro "Matz" Matsumoto
751ac378bd
codegen.c: should not skip rhs array; fix #5797
...
When the value of multiple assignment taken, the rhs array needs to be
generated anyway.
2022-10-01 15:18:45 +09:00
Yukihiro "Matz" Matsumoto
db7d40be85
mruby-proc-ext/proc.c (mrb_proc_parameters): disclose unnamed arguments.
...
Unnamed arguments (*, **, &) should be disclosed in the parameter list.
The test is also updated.
2022-09-30 22:19:59 +09:00
Yukihiro "Matz" Matsumoto
7ced009d4c
mruby-proc-ext/proc.c (mrb_proc_parameters): unify conditions.
2022-09-30 22:19:58 +09:00
Yukihiro "Matz" Matsumoto
3d766aa1ef
mruby-proc-ext/proc.c (mrb_proc_parameters): count arguments first.
...
Instead of approximating using `irep->nlocals-1` (which should be bigger
than argument numbers).
2022-09-30 22:19:36 +09:00
Yukihiro "Matz" Matsumoto
3a2de4af00
mruby-proc-ext/proc.c (mrb_proc_parameters): skip empty block slot.
...
Unlike other formal arguments, a block argument has an empty slot even
when the block is not given.
2022-09-30 07:49:44 +09:00
Yukihiro "Matz" Matsumoto
7667b0fc04
mruby-proc-ext/proc.c (mrb_proc_parameters): reformat.
2022-09-30 07:43:57 +09:00
Yukihiro "Matz" Matsumoto
3c16423c0a
mruby-method/method.c (method_to_s): making it compatible with CRuby.
2022-09-29 11:00:49 +09:00
Yukihiro "Matz" Matsumoto
b73802d437
vm.c (cipop): wrong callinfo shifts fixed; ref #5791
2022-09-28 16:57:11 +09:00
Yukihiro "Matz" Matsumoto
5e1c16653f
mruby-method/method.c (method_super_method): fixed module related bug.
...
When the method is defined in module, super_method started method
searching from wrong point. We needed to find ICLASS corresponding to the
module, then start searching super_method from the next ancestor.
2022-09-27 23:03:38 +09:00
Yukihiro "Matz" Matsumoto
0a0ab73e8d
mruby-class-ext: #subclasses should be a method of Class, not Module.
2022-09-27 23:03:23 +09:00
Yukihiro "Matz" Matsumoto
0c475708de
vm.c (cipop): use mrb_object_dead_p() to detect reclaimed block; #5791
2022-09-26 07:50:41 +09:00
Yukihiro "Matz" Matsumoto
993c8c1053
gc.c (final_marking_phase): move exception clearing after marking; #5789
2022-09-24 23:08:28 +09:00
Yukihiro "Matz" Matsumoto
d9061bd969
numeric.c: update documents [ci skip].
2022-09-23 22:13:28 +09:00
Yukihiro "Matz" Matsumoto
a04b09d535
Merge pull request #5796 from dearblue/bigint-readme
...
Small improves for `mrbgems/mruby-bigint/README.md` [ci skip]
2022-09-22 10:53:57 +09:00
dearblue
b7069dba41
Small improves for mrbgems/mruby-bigint/README.md [ci skip]
...
- Add a period at the end of the line because markdown will combine lines if there are no blank lines.
- Enable link to `README-fgmp.md`.
2022-09-21 22:50:47 +09:00
Yukihiro "Matz" Matsumoto
07470eb538
mruby-exit.c: make exit() to raise SystemExit exception.
...
Now it allows error handlers to work, unlike `exit!`.
2022-09-21 22:37:23 +09:00
Yukihiro "Matz" Matsumoto
11504318b8
string-ext/string.rb: String#prepend to take multiple arguments.
2022-09-20 18:31:04 +09:00
Yukihiro "Matz" Matsumoto
4cba1b49c0
string-ext/string.c: String#concat to take multiple arguments.
2022-09-20 18:26:23 +09:00
Yukihiro "Matz" Matsumoto
a4099ff776
enum-ext/enum.rb: add Enumerable#sum
2022-09-19 12:31:11 +09:00
Yukihiro "Matz" Matsumoto
81f98a3925
vm.c (cipop): check type of the callinfo::blk; fix #5791
...
Since `callinfo::blk` is not marked in the GC, it may be reclaimed in
the sweep phase. When it reclaimed, it will become either (a) a non Proc
object, or (b) a Proc object that happen to have the same address.
For case (a), adding `b->tt == MRB_TT_PROC` check works. We should avoid
the following `MRB_PROC_STRICT_P()` and `MRB_PROC_ENV()` operations for
non Proc objects.
For case (b), `MRB_PROC_ENV(b) == CI_ENV(&c->ci[-1])` check should work.
Unrelated Proc objects should be filtered by the check.
We don't need to clear `callinfo::blk` by `NULL` because the callinfo
struct will be discarded afterward in the `cipop()` function.
2022-09-19 08:35:36 +09:00