Yukihiro "Matz" Matsumoto
1a3846b492
mrbgem.rake: avoid implicit receivers in mrbgem.rake.
2021-04-13 07:35:39 +09:00
Yukihiro "Matz" Matsumoto
dd89a618b3
mruby-io: fix IO#ungetbyte; ref #5389
...
- remove `Integer#chr` (thus `mruby-sting-ext`) dependency
- fix the behavior when `c.is_a? String`
- fix the behavior when `c > 255`
2021-04-13 07:24:56 +09:00
Yukihiro "Matz" Matsumoto
9a9c842cb0
Rakefile: remove GitLab configuration; close #5409
...
This CI could consume too much CPU time on GitLab. Maybe we should add
resource concious CI configuration on GitLab.
2021-04-13 07:16:21 +09:00
Yukihiro "Matz" Matsumoto
475fc6ed26
AUTHORS: update authors information as of 2021-04-12.
2021-04-12 19:04:57 +09:00
Yukihiro "Matz" Matsumoto
ff2ffe3b07
proc.h: add type cast to silence warning; ref #5402
2021-04-12 15:21:54 +09:00
Yukihiro "Matz" Matsumoto
2cb9a0653a
Merge branch 'io_getbyte' close #5389
2021-04-10 19:08:51 +09:00
Yukihiro "Matz" Matsumoto
5cac9c8478
io.rb: fix IO#getbyte to work with UTF-8 characters; ref #5389
2021-04-10 19:08:15 +09:00
Yukihiro "Matz" Matsumoto
8fa1ff9a03
io.rb: add IO#readbyte; ref #5389
2021-04-10 19:08:15 +09:00
Yukihiro "Matz" Matsumoto
167e0b3f4f
io.c: add assertions to mrb_io_bufread(); ref #5389
2021-04-10 19:08:14 +09:00
Yukihiro "Matz" Matsumoto
5342b5cfef
io.rb: @buf should be empty on EOF; #4983 , #5389
2021-04-10 19:08:14 +09:00
take-cheeze
bf455fd582
Add IO#getbyte
2021-04-10 19:08:14 +09:00
Yukihiro "Matz" Matsumoto
44d5e214cc
Rename some internal functions; ref #5401
2021-04-10 17:33:50 +09:00
Yukihiro "Matz" Matsumoto
f7493b73cb
Merge pull request #5400 from jbampton/fix-spelling
...
chore: fix spelling
2021-04-09 22:07:50 +09:00
Yukihiro "Matz" Matsumoto
c2c37e1451
Merge pull request #5401 from dearblue/mcall
...
Reorganize `mcall()` in `mruby-method`
2021-04-09 21:46:09 +09:00
Yukihiro "Matz" Matsumoto
6d3c022749
mruby-config.bat: update as the shell version. [ci skip]
2021-04-08 07:32:35 +09:00
Yukihiro "Matz" Matsumoto
cbe061c2f4
codeql-analysis.yml: remove git checkout HEAD^2.
...
According to CodeQL instruction, `HEAD^2` is no longer needed.
2021-04-08 07:32:34 +09:00
Yukihiro "Matz" Matsumoto
77405e11b6
Merge pull request #5407 from mruby/dependabot/github_actions/actions/upload-artifact-v2.2.3
...
build(deps): bump actions/upload-artifact from v2.2.2 to v2.2.3
2021-04-07 16:22:08 +09:00
dependabot[bot]
2544e7f0d1
build(deps): bump actions/upload-artifact from v2.2.2 to v2.2.3
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from v2.2.2 to v2.2.3.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v2.2.2...ee69f02b3dfdecd58bb31b4d133da38ba6fe3700 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-04-07 07:12:15 +00:00
Yukihiro "Matz" Matsumoto
fa2ad34792
Removing trailing white spaces; ref #5406 [ci skip]
2021-04-07 11:02:47 +09:00
Yukihiro "Matz" Matsumoto
32ae96af1f
Merge pull request #5406 from sizious/dreamcast-shelf-build-config-update
...
Updating dreamcast_shelf build configuration.
2021-04-07 11:00:51 +09:00
SiZiOUS
03f7e88ee9
dreamcast_shelf: typo fix.
2021-04-06 20:49:03 +02:00
SiZiOUS
7ad2827900
Updating dreamcast_shelf build configuration.
2021-04-06 17:30:02 +02:00
Yukihiro "Matz" Matsumoto
71bf362a5b
doc/link.md: update mruby-config description.
2021-04-06 17:25:54 +09:00
Yukihiro "Matz" Matsumoto
58ab97e300
mruby-config: add --cc and --ld options.
...
* `--cc` print compiler name
* `--ld` print linker name
2021-04-06 17:25:53 +09:00
Yukihiro "Matz" Matsumoto
e19346fd8b
Merge pull request #5405 from shuujii/fix-heading-level-in-doc-guides-link.md
...
Fix heading level in `doc/guides/link.md` [ci skip]
2021-04-06 13:14:34 +09:00
Yukihiro "Matz" Matsumoto
339216b5ec
Merge pull request #5404 from shuujii/fix-typo-in-doc-guides-link.md
...
Fix typo in `doc/guides/link.md` [ci skip]
2021-04-06 12:52:14 +09:00
KOBAYASHI Shuji
6844ef7131
Fix heading level in doc/guides/link.md [ci skip]
2021-04-06 12:52:07 +09:00
KOBAYASHI Shuji
516756d538
Fix typo in doc/guides/link.md [ci skip]
2021-04-06 12:44:58 +09:00
Yukihiro "Matz" Matsumoto
1f03d34fd7
link.md: add new document for linking libmruby; ref #5393
2021-04-05 22:26:15 +09:00
Yukihiro "Matz" Matsumoto
27d3747faa
Merge pull request #5402 from dearblue/catch1
...
Making a proc object static for a method with static irep
2021-04-04 17:56:25 +09:00
dearblue
caeacea86e
Making a proc object static for a method with static irep
...
The following methods will be made static.
- `Class#new`
- `Proc#call`
- `Kernel#catch`
Previously, static const RProc could not be registered as a method, but this has been changed to allow it.
2021-04-04 15:44:19 +09:00
dearblue
4c196dcdaa
Reorganize mcall() in mruby-method.
...
Use `mrb_exec_irep()`. If possible, re-entry into the VM will be suppressed.
Note that due to the effect of being a tail-call, the backtrace of `Method#call` will be lost, and it will look as if the target method was called directly.
This change fixes the problem of infinite loops when redefining methods that make block calls using `mruby-method`.
```console
% bin/mruby -e 'mm = method(:proc); define_method(:proc, ->(*a, &b) { mm.call(*a, &b) }); p proc { 1 }'
trace (most recent call last):
[257] -e:1
[256] -e:1:in proc
[255] -e:1:in proc
...SNIP...
[1] -e:1:in proc
-e:1:in proc: stack level too deep (SystemStackError)
```
2021-04-03 21:20:59 +09:00
dearblue
dd34ac647f
Make mrb_exec_irep() allow non-VM to enter.
...
Change the old `mrb_exec_irep()` as-is to static `mrb_exec_irep_vm()`.
Extract the VM entry part from the old `exec_irep()` in `mruby-eval/src/eval.c` and make it the core of the new `mrb_exec_irep()`.
2021-04-03 21:17:48 +09:00
John Bampton
d8622fc68b
chore: fix spelling
2021-04-03 19:51:01 +10:00
Yukihiro "Matz" Matsumoto
fb8e12f37c
Merge pull request #5397 from dearblue/c++dump
...
Fix build failures with `enable_debug` and `enable_cxx_abi`
2021-04-03 18:44:17 +09:00
Yukihiro "Matz" Matsumoto
474ec3e5c6
Merge pull request #5398 from jbampton/fix-authors-link
...
Fix the Authors link in the README
2021-04-03 17:58:30 +09:00
Yukihiro "Matz" Matsumoto
7561bed32a
Merge pull request #5399 from jbampton/fix-spelling
...
chore: fix spelling
2021-04-03 17:57:08 +09:00
John Bampton
ce2b8aa05e
chore: fix spelling
2021-04-03 18:14:25 +10:00
John Bampton
049c1d0a45
Fix the Authors link in the README
2021-04-03 17:43:04 +10:00
dearblue
3e48f4eebc
Fix build failures with enable_debug and enable_cxx_abi
...
Under C++, there is no implicit conversion from `int` to `enum`, which caused a compilation error.
2021-04-03 16:22:40 +09:00
Yukihiro "Matz" Matsumoto
aca59de88e
Merge branch 'shuujii-define-MRB_NO_GEMS-if-disable_libmruby-is-specified'
2021-04-02 07:55:43 +09:00
Yukihiro "Matz" Matsumoto
ade9368510
Merge branch 'define-MRB_NO_GEMS-if-disable_libmruby-is-specified' of https://github.com/shuujii/mruby into shuujii-define-MRB_NO_GEMS-if-disable_libmruby-is-specified
2021-04-02 07:53:27 +09:00
Yukihiro "Matz" Matsumoto
f68c0d092c
Merge pull request #5396 from shuujii/fix-build-with-MRB_USE_ALL_SYMBOLS
...
Fix build with `MRB_USE_ALL_SYMBOLS`
2021-04-02 07:44:14 +09:00
Yukihiro "Matz" Matsumoto
bda242a135
vm.c: change the default error message for undefined super method.
...
- (old) `undefined method 'foo'`
- (new) `no superclass method 'foo'`
2021-04-01 08:42:30 +09:00
KOBAYASHI Shuji
4309a5b1f4
Fix build with MRB_USE_ALL_SYMBOLS
2021-03-31 19:10:39 +09:00
Yukihiro "Matz" Matsumoto
d5a4d5e393
codegen.c: s->ainfo should be zero along with OP_ENTER(0).
2021-03-31 17:20:14 +09:00
Yukihiro "Matz" Matsumoto
9f85c5e483
codegen.c: yield outside of method is now SyntaxError.
2021-03-31 15:57:43 +09:00
Yukihiro "Matz" Matsumoto
a7ca5a9b6e
backtrace.c: change missing-lineno to 0 for cosmetic reason; #5394
2021-03-31 15:41:19 +09:00
Yukihiro "Matz" Matsumoto
f2da051367
Merge pull request #5394 from fundamental/partial-backtrace
...
Add support for partial backtraces
2021-03-31 15:39:47 +09:00
Yukihiro "Matz" Matsumoto
b7c23a4a14
vm.c: resolve int and mrb_int mixture.
2021-03-31 11:46:21 +09:00