Yukihiro "Matz" Matsumoto
298155d59e
Merge pull request #6071 from jbampton/pre-commit-autoupdate
2023-10-06 23:58:45 +09:00
John Bampton
903ffb1584
pre-commit autoupdate
...
https://pre-commit.com/#pre-commit-autoupdate
2023-10-04 01:17:23 +10:00
John Bampton
24ac7a547a
Fix spelling
2023-10-04 01:17:23 +10:00
Yukihiro "Matz" Matsumoto
83d12f8d52
vm.c: GCC does not provide __has_feature()
2023-10-03 01:05:26 +09:00
Yukihiro "Matz" Matsumoto
b9536ea35f
vm.c: use smaller MRB_CALL_LEVEL_MAX with address sanitizer; fix #6068
...
Since ASAN uses lower memory bound. The other ideas to address #6068
might follow, e.g. removing `args=` from Enumerator.
2023-10-02 21:15:54 +09:00
Yukihiro "Matz" Matsumoto
771b56c796
mruby-socket: hide internal method new_with_prelude
...
- rename new_with_prelude to _new_with_prelude
- take a block instead of proc
2023-09-28 14:36:42 +09:00
Yukihiro "Matz" Matsumoto
67f1f0997c
Merge pull request #6070 from komainu8/demotion-mrb_f_raise-from-mrb_api
...
Demotion mrb_f_raise() in kernel.c from MRB_API too
2023-09-28 14:22:19 +09:00
Yukihiro "Matz" Matsumoto
10aab4cc1b
proc.c: prohibit direct Proc allocation() like CRuby; ref #6065
2023-09-28 11:37:46 +09:00
Yukihiro "Matz" Matsumoto
d298da8e72
vm.c (eval_under): check if irep is NULL; fix #6065
2023-09-28 11:37:07 +09:00
Yukihiro "Matz" Matsumoto
0e98508c33
string.c (mrb_string_value_cstr): RSTR_PTR(s) may be NULL; fix #6067
2023-09-28 09:26:02 +09:00
Yukihiro "Matz" Matsumoto
4c7fab6126
string.c (check_null_byte): str may point NULL buffer; ref #6067
2023-09-28 09:24:30 +09:00
Horimoto Yasuhiro
d55cec41eb
Demotion mrb_f_raise() in kernel.c from MRB_API
...
The prototype declaration of mrb_f_raise() has arleady demoted from
MRB_API in a below commit.
https://github.com/mruby/mruby/commit/0898ce982eea706c9a7b814280cdda09e82abe17
However, the entity of mrb_f_raise() in kernel.c is set MRB_API yet.
Therefore, mruby occures build error with MSVC(in Visual Studio 2022) as below.
https://github.com/groonga/groonga/actions/runs/6310140553/job/17131485675#step:11:2067
The cause of the above error that we define both mrb_f_raise() with
MRB_API and mrb_f_raise() without MRB_API.
2023-09-28 09:17:54 +09:00
Yukihiro "Matz" Matsumoto
0ac917e228
Revert "mrbgems/mruby-struct/src/struct.c: use direct array access"
...
This reverts commit 159ff5b28d .
Fix #6066
2023-09-28 07:40:31 +09:00
Yukihiro "Matz" Matsumoto
a80f394d97
mruby-array-ext (ary_rotate_bang): mrb_ary_modify may alter buf address
2023-09-27 18:37:38 +09:00
Yukihiro "Matz" Matsumoto
629a6839fd
mruby-array-ext (ary_compact_bang): skip check that is always true
2023-09-27 18:32:44 +09:00
Yukihiro "Matz" Matsumoto
f65229d103
mruby-array-ext (ary_compact_bang): mrb_ary_modify may alter buf address
2023-09-27 18:30:43 +09:00
Yukihiro "Matz" Matsumoto
7d3679dfc8
mruby-string-ext: refactoring
...
- raise exception in utf8code
- str_codepoints() use mrb_utf8len_table directly
2023-09-27 18:11:19 +09:00
Yukihiro "Matz" Matsumoto
5705d884ce
mruby-string-ext (utf8code): change arguments to point at the end
2023-09-27 18:08:12 +09:00
Yukihiro "Matz" Matsumoto
2e3b482aa9
array.c, string.c: remove length limits on UNIX-ish OSes
...
- Linux
- MacOS
- FreeBSD
- OpenBSD
Send us a pull-request if you want to add your favorite OS here.
The size limitation will be done by malloc(3) on those OSes.
2023-09-23 19:57:44 +09:00
Yukihiro "Matz" Matsumoto
15bb6a9f9b
mruby-string-ext: fix a typo; ref #6016
2023-09-23 11:44:15 +09:00
Yukihiro "Matz" Matsumoto
8a538c40c0
mruby-string-ext: implement core part of codepoints in C; close #6061
2023-09-23 11:36:20 +09:00
Yukihiro "Matz" Matsumoto
2db80b81c9
Merge pull request #6062 from mruby/dependabot/github_actions/super-linter/super-linter-5.3.1
...
build(deps): bump super-linter/super-linter from 5.3.0 to 5.3.1
2023-09-23 00:04:07 +09:00
Yukihiro "Matz" Matsumoto
9ee7edc1ac
mruby-fiber/fiber.c (fiber_switch): check c->cibase->proc env is NULL
...
ref #6060
2023-09-22 19:36:33 +09:00
dependabot[bot]
ed30e2e568
build(deps): bump super-linter/super-linter from 5.3.0 to 5.3.1
...
Bumps [super-linter/super-linter](https://github.com/super-linter/super-linter ) from 5.3.0 to 5.3.1.
- [Release notes](https://github.com/super-linter/super-linter/releases )
- [Changelog](https://github.com/super-linter/super-linter/blob/main/docs/release-process.md )
- [Commits](https://github.com/super-linter/super-linter/compare/v5.3.0...v5.3.1 )
---
updated-dependencies:
- dependency-name: super-linter/super-linter
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-21 14:29:25 +00:00
Yukihiro "Matz" Matsumoto
0730bda60e
mruby-range-ext: add tests for Range#overlap?
2023-09-21 15:28:56 +09:00
Yukihiro "Matz" Matsumoto
384d0e2d21
mruby-range-ext: implement Range#overlap? method
...
Which is implemented in CRuby recently.
2023-09-21 15:28:06 +09:00
Yukihiro "Matz" Matsumoto
393aaada64
mruby-pack/pack.c (read_tmpl): fix out-of-bound access with templates
2023-09-20 09:51:22 +09:00
Yukihiro "Matz" Matsumoto
b064d7e547
mruby-time/time.c (time_alloc_time): need to handle negative time_t
2023-09-19 14:22:49 +09:00
Yukihiro "Matz" Matsumoto
ec3baece4f
vm.c (catch_handler_find): check if irep is NULL; fix #6052
2023-09-19 14:22:49 +09:00
Yukihiro "Matz" Matsumoto
75e8a72649
vm.c (CI_PROC_SET): check whether p->body.irep is not NULL; ref #6052
2023-09-19 14:22:49 +09:00
Yukihiro "Matz" Matsumoto
8afb73f3e2
mruby-socket/socket.rb: should not call unix_path for non UNIX Addrinfo
...
ref #6051
2023-09-19 14:22:49 +09:00
Yukihiro "Matz" Matsumoto
52082ba399
mruby-socket/socket.c (mrb_addrinfo_unix_path): check sockaddr type
...
`sockaddr` should be a string; fix #6051
2023-09-19 14:22:49 +09:00
Yukihiro "Matz" Matsumoto
40f08e22f1
Merge pull request #6058 from mruby/dependabot/github_actions/super-linter/super-linter-5.3.0
...
build(deps): bump super-linter/super-linter from 5.2.2 to 5.3.0
2023-09-19 14:05:20 +09:00
dependabot[bot]
38113d2524
build(deps): bump super-linter/super-linter from 5.2.2 to 5.3.0
...
Bumps [super-linter/super-linter](https://github.com/super-linter/super-linter ) from 5.2.2 to 5.3.0.
- [Release notes](https://github.com/super-linter/super-linter/releases )
- [Changelog](https://github.com/super-linter/super-linter/blob/main/docs/release-process.md )
- [Commits](https://github.com/super-linter/super-linter/compare/v5.2.2...v5.3.0 )
---
updated-dependencies:
- dependency-name: super-linter/super-linter
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-18 14:15:49 +00:00
Yukihiro "Matz" Matsumoto
39d805e1da
Merge pull request #6055 from dearblue/libmruby-name
...
Fix libmruby name for VisualC++
2023-09-18 15:47:41 +09:00
Yukihiro "Matz" Matsumoto
3ce5f2df8b
Merge pull request #6054 from dearblue/mruby-config-plus
...
Extends `bin/mruby-config`
2023-09-17 18:23:54 +09:00
dearblue
7112db9fba
Extends bin/mruby-config
...
Added output for C++ and Assembly, ObjectiveC.
2023-09-17 17:48:36 +09:00
dearblue
7ac536e3ca
Fix libmruby name for VisualC++
2023-09-17 17:42:25 +09:00
Yukihiro "Matz" Matsumoto
74949b3e7e
Merge pull request #6053 from dearblue/gitattributes
...
Add `.gitattributes` for newline code normalization
2023-09-17 16:36:28 +09:00
dearblue
078b5ccaff
Add .gitattributes for newline code normalization
...
References:
- [Git] リポジトリで改行コードを正規化する
https://zenn.dev/murnana/articles/eol-and-gitattributes
- 行終端を処理するようGitを設定する - GitHub Docs
https://docs.github.com/ja/get-started/getting-started-with-git/configuring-git-to-handle-line-endings
2023-09-17 13:52:48 +09:00
Yukihiro "Matz" Matsumoto
4810706ccc
vm.c: refactor redundant if conditions
2023-09-16 14:49:58 +09:00
Yukihiro "Matz" Matsumoto
f041d3a5d5
Merge pull request #6047 from mruby/dependabot/github_actions/super-linter/super-linter-5.2.2
...
build(deps): bump super-linter/super-linter from 5.2.1 to 5.2.2
2023-09-15 13:35:03 +09:00
Yukihiro "Matz" Matsumoto
e8254eda42
gc.c: update comment for flexible array members (C++ incompatible) [ci skip]
2023-09-15 13:33:52 +09:00
Yukihiro "Matz" Matsumoto
4fe8b074bb
gc.c: remove prev link from mrb_heap_page
2023-09-15 13:33:52 +09:00
Yukihiro "Matz" Matsumoto
44b5153360
gc.c: revert af68de52dddd80afe1620c45680eb055767a412f
...
The change increased memory consumption significantly
2023-09-15 13:33:52 +09:00
Yukihiro "Matz" Matsumoto
22e74a7ee5
gc.c: experiment before removing page->prev link
2023-09-15 13:33:52 +09:00
Yukihiro "Matz" Matsumoto
9b90fd4f60
gc.c (incremental_sweep_phase): rebuild free pages link only if needed
2023-09-15 13:33:52 +09:00
Yukihiro "Matz" Matsumoto
9f840e111a
gc.c: inline unlink_heap_page which was called only once
2023-09-15 13:33:52 +09:00
Yukihiro "Matz" Matsumoto
0f69e93664
gc.c: inline link_heap_page which was called once
2023-09-15 13:33:51 +09:00
Yukihiro "Matz" Matsumoto
117fcfc8e9
gc.c: stop using bidirectional link for free_heaps
...
Reduce size of the heap pages again; ref #6041
2023-09-15 13:33:51 +09:00