Yukihiro "Matz" Matsumoto
2217201603
Merge pull request #6006 from dearblue/mrbc-final_mrbgems
...
Remove `mrb_final_mrbgems()` in `mrbc.c`
2023-05-09 14:46:51 +09:00
Yukihiro "Matz" Matsumoto
feb07d1d1a
Merge pull request #6002 from jbampton/standardize-whitespace-spec-authors
...
mrbgems: standardize `spec.authors` for whitespace and author name
2023-05-08 17:01:23 +09:00
dearblue
e570ca82a8
Remove mrb_final_mrbgems() in mrbc.c
...
The current `mrb_final_mrbgems()` function is only referenced in the `mrbgem/gem_init.c` file.
Also, the definition in that file makes it a static function.
2023-05-06 21:07:08 +09:00
John Bampton
63e170170e
mrbgems: standardize spec.authors for whitespace and author name
2023-05-06 06:06:29 +10:00
John Bampton
db3774ea45
docs: fix links, grammar and spelling in Markdown
2023-05-06 04:43:50 +10:00
masahino
ad318e55c0
fix typo MRB_NO_IO_POEPN -> MRB_NO_IO_POPEN
2023-05-02 07:34:30 +09:00
Yukihiro "Matz" Matsumoto
68d67aee0e
mruby-io/io.c: need to adjust buffer limit before searching; fix #5991
2023-04-26 09:09:05 +09:00
Yukihiro "Matz" Matsumoto
01e5f2a3c8
mruby-io/io.c: fix indent
2023-04-25 23:27:59 +09:00
Yukihiro "Matz" Matsumoto
9a5a9b814f
mruby-catch/catch.c: remove mrb_ prefix from a static function
2023-04-25 23:27:30 +09:00
Yukihiro "Matz" Matsumoto
e0194bba67
mruby-string-ext/string.c: remove mrb_ prefix from static functions
2023-04-25 14:25:15 +09:00
Yukihiro "Matz" Matsumoto
62e8f047b9
mruby-sleep/sleep.c: remove mrb_ prefix from static functions
2023-04-24 12:19:12 +09:00
Yukihiro "Matz" Matsumoto
49b887d75f
mruby-object-ext/object.c: remove mrb_ prefix from static functions
2023-04-20 22:40:10 +09:00
Yukihiro "Matz" Matsumoto
2810491587
mruby-class-ext/class.c: remove mrb_ prefix from static functions
2023-04-19 00:12:28 +09:00
dearblue
0e00d8e224
Integrate mruby-binding-eval into mruby-eval
...
Currently mruby-eval depends on mruby-binding (formerly mruby-binding-core).
Also, `Kernel#eval` can accept `binding` objects.
With this in mind, it would be better if `Binding#eval` could also be handled by `mrbgems/mruby-eval`.
2023-04-16 21:44:00 +09:00
Yukihiro "Matz" Matsumoto
a959ce5755
Merge pull request #5985 from dearblue/sign-extension
...
Sign extension with `OP_LOADI32` in `get_int_operand()`
2023-04-15 23:25:07 +09:00
dearblue
c981e151ae
Sign extension with OP_LOADI32 in get_int_operand()
...
Previously, the following code did not give the expected result.
```
% bin/mruby -e 'p "%08X" % ~(-1 << 16)'
"..F0000FFFF"
% ruby32 -e 'p "%08X" % ~(-1 << 24)'
"00FFFFFF"
```
For information: this problem arises in the process of folding numbers through optimisation.
2023-04-15 20:52:43 +09:00
Yukihiro "Matz" Matsumoto
836bebc708
mruby-compar-ext/compar.rb: Comparable#clamp to accept nil as arguments
2023-04-14 01:06:29 +09:00
Yukihiro "Matz" Matsumoto
68c58eac91
Merge pull request #5981 from dearblue/binding-only-ruby
...
`Kernel#binding` responds only to calls from Ruby
2023-04-14 01:06:16 +09:00
Yukihiro "Matz" Matsumoto
c80db85ed5
Merge pull request #5980 from dearblue/binding-noise
...
Remove noise in new `mruby-binding`
2023-04-14 01:05:05 +09:00
Yukihiro "Matz" Matsumoto
4f125a3f19
mruby-struct/struct.c: allow struct size differ from members
...
The situation may be caused by `Struct.new(...).alloc` etc.
2023-04-13 07:39:05 +09:00
Yukihiro "Matz" Matsumoto
8af45425d0
mruby-struct/struct.c: Struct.new should take 1+ arguments
2023-04-13 07:39:05 +09:00
Yukihiro "Matz" Matsumoto
bb7b4b67ae
mruby-struct/struct.c (struct_corrupted): fix error message
2023-04-13 07:39:05 +09:00
Yukihiro "Matz" Matsumoto
a7c96edf6f
mruby-struct/struct.c: prohibit Struct.allocate; ref #5979
2023-04-13 07:39:05 +09:00
Yukihiro "Matz" Matsumoto
9822c843e9
mruby-array-ext/array.c: remove mrb_ prefix from static functions
2023-04-13 07:39:05 +09:00
dearblue
5cb2764279
Kernel#binding responds only to calls from Ruby
...
This follows the behavior changed in CRuby 3.2.
2023-04-09 21:15:13 +09:00
dearblue
93e07eec1c
Remove noise in new mruby-binding
...
`Binding#eval` should not be defined in `mruby-binding`.
2023-04-09 21:14:33 +09:00
dearblue
d3128ce58a
Allow Class#allocate to be prohibited
...
Calling `Class#allocate` with `UnboundMethod#bind_call` usually succeeds without problems.
If this behavior does not make us happy, we can now prohibit it with `MRB_SET_INSTANCE_TT(klass, MRB_TT_UNDEF)`.
At the same time, it applies to the `Binding`, `Complex`, `Data`, `Float`, `Integer`, `Method`, `Rational` and `UnboundMethod` classes.
2023-04-09 21:14:07 +09:00
John Bampton
b486a3c425
Update default.gembox add mruby debugger mrbd
2023-04-04 19:31:42 +10:00
Yukihiro "Matz" Matsumoto
5265e35ad2
mruby-time/time.c: remove mrb_ prefix from static functions
2023-04-03 08:58:33 +09:00
Yukihiro "Matz" Matsumoto
3d2cf0d9bf
mruby-bigint/bigint.c: fix int64/uint64 conversion
...
The functions were totally wrong in digit order and sign treatment. We
didn't notice since they are only called from mruby-time in the m64-i32
configuration.
2023-04-03 08:55:48 +09:00
Yukihiro "Matz" Matsumoto
65897145aa
mruby-time/time.c (mrb_to_time_t): should always initialize usec
2023-04-03 08:46:30 +09:00
Yukihiro "Matz" Matsumoto
875e0b0b59
mruby-time/time.c (time_value_from_time_t): should raise exception
...
When time_t does not fit in mrb_int; ref #5958
2023-04-03 08:38:52 +09:00
Yukihiro "Matz" Matsumoto
dd453080e0
Merge pull request #5958 from dearblue/fixable_time_t_p
...
Need `fixable_time_t_p()` always
2023-04-03 07:34:11 +09:00
dearblue
96190dba59
Need a dependency to mruby-compiler for mruby-bin-strip
...
It uses `mrb_irep_remove_lv()` defined in `mrbgems/mruby-compiler/core/codegen.c`.
2023-04-01 23:32:36 +09:00
dearblue
bcce4b7141
Need fixable_time_t_p() always
2023-04-01 23:22:08 +09:00
Yukihiro "Matz" Matsumoto
2de602b869
mruby-eval: add dependency to mruby-binding
2023-04-01 10:37:56 +09:00
Yukihiro "Matz" Matsumoto
eaaa474630
mruby-method/method.c: fix proc comparison for uncovered case
2023-04-01 10:37:16 +09:00
Yukihiro "Matz" Matsumoto
a3fc6ae53c
mruby-proc-ext/proc.c: use mrb_debug_get_position()
2023-04-01 10:37:15 +09:00
Yukihiro "Matz" Matsumoto
d482eabfa2
mruby-bigint/bigint.c: int.pow(n,m) to take bigint as exponential
2023-03-31 08:26:47 +09:00
Yukihiro "Matz" Matsumoto
62c52d5a28
mruby-bigint/bigint.c: remove unreachable line
2023-03-30 08:18:27 +09:00
Yukihiro "Matz" Matsumoto
35cedfb400
mruby-numeric-ext/numeric.c: Integer#pow fix for 2nd argument type
...
`int.pow()` takes 2nd argument only if 1st argument is an integer.
2023-03-30 08:18:27 +09:00
Yukihiro "Matz" Matsumoto
1f5a4d5386
mruby-method/method.c (method_eql): simplify the logic
2023-03-27 19:21:40 +09:00
Yukihiro "Matz" Matsumoto
553f9ba802
mruby-method/method.c (method_eql): use mrb_proc_eql
2023-03-27 19:15:03 +09:00
Yukihiro "Matz" Matsumoto
0f63551def
mruby-method/method.c (method_p): stricter method type check
2023-03-27 11:32:15 +09:00
Yukihiro "Matz" Matsumoto
f4cff664e6
mruby-proc-ext/proc.c: no need to define Kernel.proc
...
Since Kernel is an ancestor of Kernel module itself recursively.
2023-03-27 00:18:57 +09:00
Yukihiro "Matz" Matsumoto
3e7ced5d63
mruby-proc-ext/proc.c: remove prefix from static functions
2023-03-27 00:12:18 +09:00
Yukihiro "Matz" Matsumoto
0bbfec3e8b
mruby-eval: use functions from mruby-binding to simplify the code
2023-03-25 19:12:46 +09:00
Yukihiro "Matz" Matsumoto
11af5db1c3
mruby-binding: renamed from mruby-binding-core
...
The dependency is now:
mruby-binding-eval:
- mruby-binding
- mruby-eval
mruby-proc-binding:
- mruby-binding
mruby-eval:
- mruby-binding [new]
2023-03-24 12:25:57 +09:00
Yukihiro "Matz" Matsumoto
3ef41672ab
mruby-biding-eval: move essential part of the gem to mruby-eval
...
This change makes mruby-binding-eval gem nearly empty, but needed to
make `eval(str, binding)` works as well as `binding.eval(str)`.
2023-03-24 07:33:13 +09:00
Yukihiro "Matz" Matsumoto
910afdc691
mruby-binding-eval: modify struct initialization
2023-03-23 22:10:20 +09:00