leviongit
|
98906d5ac9
|
random.c : fix Random#rand not returning value
|
2025-05-04 03:48:22 +02:00 |
|
leviongit
|
202c213fe1
|
random.c : add some tests
|
2025-05-04 02:44:19 +02:00 |
|
leviongit
|
4390aeb78d
|
random.c : add rand(Range)
|
2025-05-04 02:44:19 +02:00 |
|
Yukihiro "Matz" Matsumoto
|
1b39c7d7da
|
mruby-compiler (codegen): private backquote should be called; fix #6516
|
2025-04-28 10:40:05 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
a6ef3a45d1
|
vm.c (mrb_f_public_send): define #public_send method
The method itself is available when mruby-metaprog is loaded.
|
2025-04-25 17:39:12 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
6e1538ce3a
|
Merge pull request #6518 from HirohitoHigashi/master
|
2025-04-25 15:51:36 +09:00 |
|
HirohitoHigashi
|
586ff7a694
|
Change mrbc_args.flags bit width from 2 to 3.
|
2025-04-25 12:05:01 +09:00 |
|
John Bampton
|
fe201dc72f
|
core/codegen.c: remove unneeded duplicate semicolon
|
2025-04-25 05:10:24 +10:00 |
|
Yukihiro "Matz" Matsumoto
|
baea6e284e
|
mruby-bigint (mpz_bits): use lzb()
|
2025-04-17 08:11:27 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
061521ead5
|
mruby-bigint (mpz_bits): renamed from mpz_bit_length()
|
2025-04-17 08:10:34 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
16198dc985
|
mruby-numeric-ext (int_sqrt): translate Japanese comment (oops)
|
2025-04-17 01:43:03 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
e42523fcf4
|
mruby-numeric-ext: add test for Integer.sqrt()
|
2025-04-16 23:30:23 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
ddfe65763e
|
mruby-numeric-ext (int_sqrt): support bigint
|
2025-04-16 23:08:23 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
dee661913f
|
mruby-numeric-ext (int_sqrt): Integer.sqrt implemented
This is the first version. It should support bigint eventually.
|
2025-04-16 22:37:06 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
95f9de4877
|
mruby-metaprog (mrb_mod_s_constants): Module.constants implemented
The method returns the list of all constants accessible from the point
of call.
|
2025-04-14 22:09:35 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
cda551ce25
|
mruby-metaprog (mrb_mod_s_constants): call Module#constants if possible
When the optional argument is given or the receiver is not `Module`.
|
2025-04-14 22:09:34 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
82522a2e71
|
mruby-bigint (mrb_bint_to_s): add check for MRB_32BIT and MRB_INT64
|
2025-04-14 22:09:33 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
29964b3ba7
|
mruby-io (mrb_file_size): add check for MRB_32BIT and MRB_INT64
|
2025-04-14 22:09:33 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
1fdd961041
|
mruby-compiler (scope_new): need to initialize nregs; fix #6509
`nregs` should not be smaller than `nlocals`.
|
2025-04-07 11:35:19 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
8c2ea232ea
|
Revert "mruby-enum-ext (cycle): need to splat block parameters; #6508"
This reverts commit 6c4b799b42.
|
2025-04-07 08:23:52 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
6c4b799b42
|
mruby-enum-ext (cycle): need to splat block parameters; #6508
|
2025-04-06 22:05:57 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
96855d31b5
|
mruby-enum-ext (sum): need to honor index; fix #6508
|
2025-04-06 22:04:56 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
dd68681002
|
mruby-enum-ext: tally should respect multi-values; fix #6507
|
2025-04-05 22:12:51 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
cb8cd9388c
|
mruby-enum-ext: filter_map should not ignore index; fix #6504
|
2025-04-05 21:44:49 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
9750513c25
|
mruby-bigint (mpz_get_str): add type cast to stop warning
|
2025-04-04 23:55:44 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
bf36ba9d10
|
Merge pull request #6505 from jbampton/fix-spelling
mrbgems: fix spelling
|
2025-04-04 17:33:32 +09:00 |
|
John Bampton
|
b1d910f6f4
|
mrbgems: fix spelling
|
2025-04-04 15:05:13 +10:00 |
|
Yukihiro "Matz" Matsumoto
|
07d7aa6fdb
|
mruby-pack: fix int and mrb_int mixture
|
2025-04-02 16:45:11 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
b88680ee9e
|
mruby-pack (pack_unpack): use mrb_bool instead of int
|
2025-04-02 16:44:06 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
5c2c77c71c
|
mruby-string (str_succ_bang): fixed sample string; close #6500
To avoid spellcheck failure in pre-commit.
|
2025-04-01 11:00:25 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
d908daa8b9
|
mruby-rational (rational_hash): hash value is uint32_t
|
2025-03-25 08:10:49 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
b446b0d547
|
mruby-compiler: add type cast to silence warning
|
2025-03-25 08:10:04 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
4ca61298ac
|
mruby-sprintf: add type cast to silence warning
|
2025-03-25 08:08:26 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
7e18b1dadb
|
mruby-fiber/fibertest.c: use ptrdiff_t for pointer difference
|
2025-03-24 22:31:27 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
b8351d6191
|
mruby-io/file.c: use ptrdiff_t for pointer difference
|
2025-03-24 22:30:53 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
dd2950211c
|
mruby-io/mruby_io_test.c: use -1 for length (means strlen(s))
|
2025-03-24 15:19:54 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
4aae7be949
|
mruby-io (path_gethome): move local variable declarations
|
2025-03-24 14:03:13 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
a33426da15
|
mruby-io (mrb_file_s_chmod): check string type before casting
|
2025-03-23 20:04:25 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
11f6251d23
|
mruby-io (mrb_file_basename): fixed a silly mistake
|
2025-03-22 13:01:38 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
aa06aff50d
|
mruby-io/file.c: use mrb_sys_fail instead of mrb_raise (w/ errno info)
|
2025-03-22 11:02:05 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
f3b79fcc23
|
mruby-io (mrb_file_s_readlink): increase buffer size linearly
|
2025-03-21 19:34:05 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
ca693dec30
|
mruby-io (mrb_file_s_readlink): when rc == bufsize, rc never be -1
|
2025-03-21 19:31:12 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
9e315af2a5
|
mruby-io (mrb_file_basename): fixed wrong strncmp usage
|
2025-03-21 10:37:05 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
90d4805f5b
|
mruby-io (mrb_file_realpath): use mrb_str_cat instead of mrb_str_append
|
2025-03-20 22:04:49 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
5bc391e170
|
mruby-io (mrb_file_basename): use mrb_str_cat() instead of snprintf(3)
|
2025-03-20 22:03:30 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
dbafada7be
|
mruby-io (mrb_file_basename): use "z" specifier for mrb_get_args()
|
2025-03-20 13:39:38 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
d1909320d9
|
mruby-compiler: fixed a bug in string literal merge; fix #6491
|
2025-03-17 09:17:38 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
eb455c19fe
|
mruby-compiler: prohibit singleton methods for literals
We have checked `def (literal).m` style but not `def literal.m` style.
In addition, `NODE_INT` check is newly added.
|
2025-03-14 23:28:42 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
5bc00bf199
|
mruby-compiler: detect super without surrounding method; close #6271
|
2025-03-11 21:21:50 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
76d3739a89
|
mruby-metaprog (mrb_obj_methods): should not retrieve obj->c directly
In some cases, `obj` may not be an object structure, but an immediate.
|
2025-03-10 11:40:48 +09:00 |
|