Yukihiro "Matz" Matsumoto
ff4109735f
range.c (range_num_to_a): improved float support
2025-05-19 17:36:45 +09:00
Yukihiro "Matz" Matsumoto
18c43c2a5a
mruby-io: provide Kernel#p in this gem
...
To prevent ordering instability when output from mruby-io and Kernel#p
mixed.
2025-05-19 13:31:01 +09:00
Yukihiro "Matz" Matsumoto
65247613b9
Merge pull request #6530 from dearblue/visibility
2025-05-19 08:11:18 +09:00
Yukihiro "Matz" Matsumoto
31ebcb349e
mruby-compiler: add y.tab.c in the repository again; close #6515
...
Since we have introduced lrama, everyone can generate same `y.tab.c`
on any platform, without installing Bison. That was the reason we have
removed `y.tab.c` from the repository. But this change cause #6515 and
bothered out-of-tree builds. So we (reluctantly) added `y.tab.c` again.
2025-05-19 08:00:37 +09:00
Yukihiro "Matz" Matsumoto
c356e8f2ff
.gitignore: no longer ignore y.tab.c; ref #6515
2025-05-19 08:00:36 +09:00
Yukihiro "Matz" Matsumoto
96cbde7988
mruby-compiler: remove mrb_free dependency from codegen.c
2025-05-19 08:00:36 +09:00
Yukihiro "Matz" Matsumoto
bb712f9467
mruby-compiler: remove mrb_calloc dependency from parse.y
2025-05-19 08:00:36 +09:00
Yukihiro "Matz" Matsumoto
9fc58852e3
mruby-compiler: removed mrb_state dependency from two functions
...
- mrb_ccontext_partial_hook
- mrb_ccontext_cleanup_local_variables
2025-05-19 08:00:36 +09:00
Yukihiro "Matz" Matsumoto
fa19d7d3b5
stdlib.gembox: add mruby-catch to the gembox
2025-05-19 08:00:36 +09:00
dearblue
36df859333
Revert "class.c (find_visibility_scope): when callinfo returns, *ep == NULL; #6512 "
...
This reverts commit 3879b95a62 .
This is because the code first reported in #6494 no longer works.
2025-05-18 18:52:32 +09:00
dearblue
4417321d1c
Add more test code for method visibility
...
This test corresponds to the first issue of #6494 .
Complement to #6512 .
2025-05-18 18:50:02 +09:00
Yukihiro "Matz" Matsumoto
b952ca30cd
Merge pull request #6529 from mruby/dependabot/github_actions/super-linter/super-linter-7.4.0
2025-05-15 05:46:57 +09:00
dependabot[bot]
ef840eced0
build(deps): bump super-linter/super-linter from 7.3.0 to 7.4.0
...
Bumps [super-linter/super-linter](https://github.com/super-linter/super-linter ) from 7.3.0 to 7.4.0.
- [Release notes](https://github.com/super-linter/super-linter/releases )
- [Changelog](https://github.com/super-linter/super-linter/blob/main/CHANGELOG.md )
- [Commits](https://github.com/super-linter/super-linter/compare/v7.3.0...v7.4.0 )
---
updated-dependencies:
- dependency-name: super-linter/super-linter
dependency-version: 7.4.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-05-14 14:19:47 +00:00
Yukihiro "Matz" Matsumoto
923b1c9e37
stdlib.gembox: add mruby-enum-chain gem
2025-05-14 15:58:24 +09:00
Yukihiro "Matz" Matsumoto
9e6ddbb2ad
metaprog.gembox: add two binding gems
...
- mruby-binding
- mruby-proc-binding
2025-05-14 15:58:24 +09:00
Yukihiro "Matz" Matsumoto
d414e3f912
math.gembox: exclude mruby-cmath from math gembox
2025-05-14 15:58:23 +09:00
Yukihiro "Matz" Matsumoto
34bd571a65
Merge pull request #6528 from jbampton/fix-grammar-spelling
2025-05-14 15:58:05 +09:00
Yukihiro "Matz" Matsumoto
1fcaa3995e
Merge pull request #6418 from jbampton/add-ls-lint
2025-05-14 15:55:33 +09:00
John Bampton
781edbd446
misc: fix spelling
2025-05-14 02:01:02 +10:00
John Bampton
4f2f2cfd20
Add ls-lint with GitHub Actions
...
Rename files in the `mrbgems` directory
2025-05-14 01:14:02 +10:00
Yukihiro "Matz" Matsumoto
93a7e5ec26
Merge pull request #6526 from vickash/luckfox-pico
2025-05-13 16:46:23 +09:00
Yukihiro "Matz" Matsumoto
75466f9aab
mruby-compiler: use mrb_basic_alloc_func() directly from compiler
...
As a side effect, memory allocation failure may cause segmentation
fault. Maybe we have to add error detection later.
2025-05-13 13:20:06 +09:00
Yukihiro "Matz" Matsumoto
9ef2f551b7
mruby-compiler: use new mempool API
2025-05-13 08:13:48 +09:00
Yukihiro "Matz" Matsumoto
dbc9d12254
mempool.c (mempool_open): avoid using old API in mempool.c
2025-05-12 13:04:22 +09:00
Yukihiro "Matz" Matsumoto
ebca0cbf6a
Merge pull request #6525 from hasse09052/skip-empty-mirb-history
2025-05-12 12:59:28 +09:00
Yukihiro "Matz" Matsumoto
c2d5a402ba
compile.h: change struct mrb_mempool to mrb_mempool
...
So that compatibility layer can be used without macro definition.
2025-05-12 12:30:15 +09:00
vickash
6700c327ac
Luckfox Pico config: Use realpath, comment flags and cmath exclusion
2025-05-11 23:25:32 -04:00
vickash
f98a05c738
Add build config for Luckfox Pico embedded SBC
2025-05-11 22:35:05 -04:00
Yukihiro "Matz" Matsumoto
6566099dbb
mempool.c: remove mrb_state dependency from mempool library
...
mempool.h provide compatibility layer so that existing programs does not
need to update (but update recommended anyway, since compatibility layer
takes mrb_state that is not used at all).
2025-05-12 08:26:18 +09:00
Yukihiro "Matz" Matsumoto
6766fcb905
class.c (mt_rehash): Fix mrb_calloc argument order
...
Since mrb_calloc() (along with mrb_calloc) takes two arguments: nmemb
which is number of array elements, and size which is size of the array.
Of course, revsersing does not change the behavior, but we'd like to
respect the original design intention of calloc(3).
2025-05-11 20:11:56 +09:00
Yukihiro "Matz" Matsumoto
4704a7700a
Merge pull request #6521 from jbampton/add-codespell-config
2025-05-11 20:09:25 +09:00
hasse
6df8096af2
mruby-bin-mirb: skip adding empty input to mirb history
2025-05-11 02:44:04 +09:00
Yukihiro "Matz" Matsumoto
c6e3ae7e74
doc/guides/memory.md: update the document
...
- new API
- detailed hook description
- migration path from old API
2025-05-10 09:34:20 +09:00
Yukihiro "Matz" Matsumoto
7e4810658e
allocf.c: update and enhance documentation in the comment
2025-05-10 09:07:35 +09:00
Yukihiro "Matz" Matsumoto
5522c94bb3
mruby.h: remove mrb_allocf type
...
As a result, we removed (already obsoleted) `mrb_open_allocf()', and
made `mrb_open_core()` take no argument. [incompatible changes]
2025-05-10 08:59:18 +09:00
Yukihiro "Matz" Matsumoto
5c71681d82
allocf.c (mrb_basic_alloc_func): remove ud argument
2025-05-10 08:59:18 +09:00
Yukihiro "Matz" Matsumoto
c3cc559dfc
allocf.c: rename mrb_default_alloc to mrb_basic_alloc_func
...
Along with removing mrb_state first argument from the function. From
mruby 3.2, this function is *not* the default function, but the entry
point that can be redefined for the application. The function in
`src/allocf.c` is the default *implementation* (using malloc / realloc /
free) of the function.
2025-05-09 21:50:18 +09:00
John Bampton
f515669ce3
Add codespell config file .codespellrc
...
Add `.codespellrc` to the GitHub labeler
Can now run codespell from the command line standalone and it will use
our standard config file. Running codespell with pre-commit will also use this config.
Useful when regenerating the ignored words file on the command line.
https://github.com/codespell-project/codespell?tab=readme-ov-file#using-a-config-file
https://github.com/codespell-project/codespell?tab=readme-ov-file#pre-commit-hook
2025-05-09 20:54:27 +10:00
Yukihiro "Matz" Matsumoto
0bdd529430
mruby.h: remove allocf and allocf_ud from mrb_state
...
This is preparation for memory allocation restructuring.
2025-05-09 18:13:28 +09:00
Yukihiro "Matz" Matsumoto
3d2f848e64
mruby-random: Random#rand(nil) should raise TypeError
2025-05-08 17:37:05 +09:00
Yukihiro "Matz" Matsumoto
88e86ee62e
mruby-random: update error messages to be compatible with CRuby; #6523
2025-05-08 16:42:33 +09:00
Yukihiro "Matz" Matsumoto
21d6bfb6dd
test/kernel.rb: disable some Kernel#p tests; ref #6524
2025-05-08 16:21:01 +09:00
Yukihiro "Matz" Matsumoto
37b84f40e0
Merge pull request #6523 from leviongit/rand-range
2025-05-08 16:06:02 +09:00
Yukihiro "Matz" Matsumoto
5b10fdf684
Merge pull request #6524 from hasumikin/fix/Kernel#p
2025-05-08 16:01:35 +09:00
Yukihiro "Matz" Matsumoto
147af9d669
Merge pull request #6522 from jbampton/label-more-files
2025-05-08 15:59:47 +09:00
Yukihiro "Matz" Matsumoto
3879b95a62
class.c (find_visibility_scope): when callinfo returns, *ep == NULL; #6512
2025-05-08 12:02:32 +09:00
Yukihiro "Matz" Matsumoto
2b0d866da1
class.c (find_visibility_scope): rename the function; ref #6512
...
Since the function returns either callinfo or env, thus the name does
not describe the current behavior. In addition, we did some refactoring
on the function.
2025-05-08 12:02:00 +09:00
Yukihiro "Matz" Matsumoto
50c8e180d8
class.c (find_visibility_ci): refactor to reduce complexity; ref #6512
2025-05-08 07:57:35 +09:00
Yukihiro "Matz" Matsumoto
dbc4768758
mruby/internal.h: rename visibility separation macros; ref #6512
2025-05-08 07:32:36 +09:00
Yukihiro "Matz" Matsumoto
c9a36e5d39
mruby/value.h: rename flag check macros; ref #6512
2025-05-08 07:27:30 +09:00