Yukihiro "Matz" Matsumoto
|
b716bf005e
|
mruby-range-ext/range.c: use the reference from mrb structure.
Avoid `mrb_class_get()` if possible.
|
2022-09-12 10:29:45 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
d72d26afcb
|
mruby-string-ext/string.c: use the reference from mrb structure.
|
2022-09-12 10:27:31 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
3662d3d9da
|
fixup! numeric_ext.c: use the reference from mrb structure.
|
2022-09-12 10:27:30 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
fc85523cf1
|
numeric_ext.c: use the reference from mrb structure.
|
2022-09-12 10:27:29 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
f05574606e
|
mruby-numeric-ext: add ceildiv test with Float and Rational.
|
2022-09-12 10:27:29 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
b6d7564846
|
numeric_ext.rb: add Integer#ceildiv.
|
2022-09-12 10:27:28 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
b06fef65ea
|
mruby-exit.c: add reference to exit method.
Currently `exit` works as `exit!` (no handler). It should be fixed
soon.
|
2022-09-05 23:36:04 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
d508c94f0e
|
mruby-exit.c: add exit! method.
|
2022-09-05 23:35:37 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
bf16315b70
|
mruby-exit/exit.c: add fallback definition of constants.
- EXIT_SUCCESS
- EXIT_FAILURE
|
2022-09-05 07:30:12 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
9f47f11abd
|
math.c: update prototype style.
|
2022-09-05 07:30:12 +09:00 |
|
dearblue
|
c123c49ac4
|
Improves ObjectSpace.count_objects
- Support for `MRB_TT_STRUCT`, `MRB_TT_BREAK` and `MRB_TT_BIGINT`.
- Performs symbol value embedding with `MRB_SYM()`.
|
2022-09-04 20:53:18 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
4f0679bb86
|
pack.c (pack_unpack): small refactoring.
|
2022-08-31 23:29:12 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
3643f067c2
|
proc.h: remove unused env flags.
- MRB_ENV_TOUCHED
- MRB_ENV_HEAPED
|
2022-08-31 07:27:14 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
15e9b09bef
|
pack.c (hex2int): should return signed integer.
|
2022-08-30 18:08:05 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
dfeda0acc8
|
random.c: remove Random::DEFAULT.
|
2022-08-28 08:01:59 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
8c1b2ee0bb
|
numeric_ext.c (int_powm): avoid integer overflow by modulo first.
We do not fall back to big integer calculation unless absolutely necessary.
|
2022-08-27 22:18:38 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
5b1e14b96b
|
numeric_ext.c (int_powm): better error message.
|
2022-08-26 14:27:54 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
f5a3f4f2ea
|
bigint.c (mpz_powm): avoid stack allocations.
|
2022-08-26 14:27:54 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
b158581118
|
bigint.c (udiv): xx%yy should have been xx when xx<yy.
|
2022-08-26 14:19:10 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
4e0da4f0d8
|
bigint.c (mpz_init_set): fully initialize mpz_t first.
|
2022-08-26 14:18:30 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
62c36c03b3
|
bigint.c (mpz_set_int): fixed a bug in integer size check.
|
2022-08-26 12:55:29 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
6598732892
|
numeric_ext.c (int_powm): try bigint pow when overflow.
|
2022-08-26 12:37:54 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
b4785044d5
|
bigint.c (mrb_bint_powm): fix a return value bug.
|
2022-08-26 12:13:24 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
ef1974099d
|
bigint.c (mrb_bint_powm): check zero division first.
|
2022-08-26 12:10:22 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
7c0f7e2665
|
parse.y: allow NUMPARAMs (e.g. _1) as hash keys; fix #5785
|
2022-08-23 18:36:26 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
f587edd849
|
pack.c: need extra space for the terminal NULL.
|
2022-08-23 15:05:27 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
a641f146fc
|
codegen.c (gen_assignment): use nsym() instead of simple type cast.
|
2022-08-23 11:30:54 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
108875c972
|
codegen.c (gen_assignment): support NODE_COLON3 as lhs; fix #5752
We should allow `::C = 1` for example.
|
2022-08-23 07:53:23 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
c6daaa8c07
|
struct.c (make_struct): use preallocated symbols.
|
2022-08-22 16:12:59 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
35a5678899
|
mruby-pack/pack.c: make base64_dec_tab a static array of chars.
|
2022-08-21 19:25:16 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
993c388cce
|
bigint.c (mrb_bint_idiv): remove unused function.
|
2022-08-16 15:45:54 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
4107cc95a2
|
internal.c: move some functions to <mruby/internal.h>.
Ref #5776
|
2022-08-15 18:13:59 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
37dc1be74b
|
internal.c: move mrb_method_missing prototype to <mruby/internal.h>.
Ref #5776
|
2022-08-15 17:25:08 +09:00 |
|
HARADA Makoto
|
dc65b1faf1
|
fiber.c: add fiber_check_cfunc in fiber_resume().
|
2022-08-13 15:52:52 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
d14fd77148
|
numeric.c (mrb_int_pow): make the function to take 2 operands.
|
2022-08-12 12:19:21 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
521072ca3a
|
mruby-struct/struct.rb: include Enumerable module.
Struct.ancestors should be [Struct, Enumerable, Object, Kernel, BasicObject]
|
2022-08-06 16:03:26 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
a0c02e0a64
|
Merge pull request #5765 from dearblue/mrb_env_unshare
Improve out-of-memory tolerance of `mrb_env_unshare()`
|
2022-08-06 16:03:11 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
5eaef1cf25
|
mruby-time/time.c: properly generate hash from time objects.
|
2022-08-06 06:43:42 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
579379c517
|
rational.c (rational_hash): generate hash code from rational numbers.
|
2022-08-06 06:43:42 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
25f9d2f65a
|
complex.c (complex_hash): generate hash code from complex numbers.
|
2022-08-06 06:43:42 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
a7c3d59971
|
kernel.c (mrb_obj_hash): generate hash value for big-integers.
|
2022-08-06 06:43:41 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
62a35e502b
|
bigint.c: rename double sized mp_limb.
- mp_limb2 -> mp_dbl_limb
- mp_limb2s -> mp_dbl_limb_signed
|
2022-08-06 06:43:41 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
1718d9bafb
|
bigint.c: add type cast to mp_limb.
|
2022-08-06 06:43:40 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
b7bc326b4c
|
bigint.c (mpz_set_int): check mp_limb overflow from mrb_int.
|
2022-08-06 06:43:40 +09:00 |
|
dearblue
|
5bc15dd69b
|
Fixed assertion in ARGUMENT_NORMALIZE() for bidx.
It should be compared to the `irep->nregs` value as is.
At the same time, discovered problems have been fixed.
|
2022-08-04 22:43:06 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
441c6ea30d
|
bigint.c (udiv): check out of bound memory access.
|
2022-08-02 13:36:36 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
90e75f983e
|
Merge pull request #5769 from dearblue/opdef-proc
Protected `proc` objects given by `OP_DEF` on registers
|
2022-08-01 17:46:09 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
c34bb7825a
|
mruby-time/time.c: add Time#eql? to compare.
|
2022-08-01 16:29:35 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
569a8910af
|
bigint.c: check division by zero errors.
|
2022-08-01 13:58:05 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
d28009ebd8
|
mruby-print/print.rb: reduce explicit return values; ref #5762
By making __printstr__ to return nil.
|
2022-07-31 07:56:06 +09:00 |
|