| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2019-06-25 | Merge pull request #4528 from shuujii/fix-argument-specs-to-Array | Yukihiro "Matz" Matsumoto | |
| Fix argument specs to `Array` | |||
| 2019-06-25 | Merge pull request #4530 from ↵ | Yukihiro "Matz" Matsumoto | |
| shuujii/compare-obj-pointer-directly-instead-of-using-mrb_obj_eq-in-mrb_gc_unregister Compare obj pointer directly instead of using mrb_obj_eq in mrb_gc_unregister | |||
| 2019-06-25 | Fixed `mrb_iv_remove` with immediate objects; fix #4519 | Yukihiro "Matz" Matsumoto | |
| The #4520 tried to address the issue, but it changes the type of `mrb_check_frozen` argument; close #4520 | |||
| 2019-06-25 | Fix `mrb_str_to_str()` to handle symbols. | Yukihiro "Matz" Matsumoto | |
| 2019-06-24 | Compare obj pointer directly instead of using mrb_obj_eq in mrb_gc_unregister | KOBAYASHI Shuji | |
| Because immediate values are not registered. | |||
| 2019-06-23 | Fix argument specs to `Array` | KOBAYASHI Shuji | |
| 2019-06-23 | Merge pull request #4526 from shuujii/refine-Hash-rehash-example | Yukihiro "Matz" Matsumoto | |
| Refine `Hash#rehash` example [ci skip] | |||
| 2019-06-22 | Fix the unnecessary `mrb_str_modify()` call | dearblue | |
| Now to be calls `mrb_str_modify()` only once when 2 or more characters. | |||
| 2019-06-22 | Delete the unnecessary block brace in `mrb_str_reverse_bang` | dearblue | |
| 2019-06-22 | Fix string brakes for one UTF-8 charactor | dearblue | |
| 2019-06-22 | Change to UTF-8 string reversing with in place | dearblue | |
| Reverses UTF-8 strings without allocated heap for working memory. 1. String before reversing: ``` "!yburmの界世" # byte unit [33, 121, 98, 117, 114, 109, 227, 129, 174, 231, 149, 140, 228, 184, 150] ``` 2. Reverse the byte order of each character: ``` [33, 121, 98, 117, 114, 109, 174, 129, 227, 140, 149, 231, 150, 184, 228] ``` 3. Reverse the whole byte order and complete: ``` [228, 184, 150, 231, 149, 140, 227, 129, 174, 109, 114, 117, 98, 121, 33] # string "世界のmruby!" ``` | |||
| 2019-06-22 | Replacement to function for string reversing | dearblue | |
| 2019-06-22 | Refine `Hash#rehash` example [ci skip] | KOBAYASHI Shuji | |
| Previous example doesn't work because string key (frozen) can't be modified. | |||
| 2019-06-22 | Fix potential overflow in `utf8len()` | dearblue | |
| For example on 32 bit mode, when `p = 0xfffffffd`, `e = 0xfffffffe` and `len = 4`, the sum of `p` and `len` can be to `1`, and comparison with `e` will to be false. As a result, a segmentation fault occurs by referring to address 0. | |||
| 2019-06-16 | Fix cvar, ivar, const and method can be removed to frozen object | KOBAYASHI Shuji | |
| 2019-06-13 | Fix class name validation in `Struct.new` | KOBAYASHI Shuji | |
| Before this patch: $ bin/mruby -e 'p Struct.new("A-")' #=> Struct::"A-" After this patch: $ bin/mruby -e 'p Struct.new("A-")' #=> NameError: identifier A- needs to be constant | |||
| 2019-06-10 | `Kernel#global_variables` should not include undefined `$1`-`$9` | KOBAYASHI Shuji | |
| - They are not include in Ruby. - Appear in duplicate when `$1`-`$9` are defined. | |||
| 2019-06-07 | Remove `Kernel#global_variables` from core | KOBAYASHI Shuji | |
| This method is defined in `mruby-metaprog` gem. | |||
| 2019-05-30 | Fix inverted compilation condition; fix #4478 | Yukihiro "Matz" Matsumoto | |
| 2019-05-29 | Add `mrb_alloca` again; ref #4470 | Yukihiro "Matz" Matsumoto | |
| This time, the allocated memory comes from the string object, which is referenced from GC arena. The memory region will be reclaimed when the C function called from VM is terminated, or the GC arena is restored. | |||
| 2019-05-27 | Merge pull request #4470 from dearblue/remove-mrb_alloca | Yukihiro "Matz" Matsumoto | |
| Remove `mrb_alloca()` function | |||
| 2019-05-26 | Move `mrb_mod_s_nesting()` to `mruby-metaprog` gem from the core | KOBAYASHI Shuji | |
| 2019-05-25 | Remove `mrb_alloca()` function | dearblue | |
| When I found this function, I expected it to behave the same as the `alloca(3)` function, but it is accually the `mrb_alloca()` function does not free the heap until the `mrb_close()` function is called. Also, even if it is deleted, it can be replaced with the combination of the `MRB_TT_DATA` object and the `mrb_gv_set()` function if it is sure necessary. | |||
| 2019-05-25 | Fix double rounded by negative index | dearblue | |
| - Before patched: ``` $ mruby -e 'p (-12..-1).map { |i| "Hello"[i] }.join' "HelloHello" ``` - After patched: ``` $ mruby -e 'p (-12..-1).map { |i| "Hello"[i] }.join' "Hello" ``` | |||
| 2019-05-25 | Name the return value of `mrb_range_beg_len()` | dearblue | |
| 2019-05-22 | Merge pull request #4403 from dearblue/read-irep-from-buf | Yukihiro "Matz" Matsumoto | |
| Read irep from buffers | |||
| 2019-05-21 | Update ISO section number for some Numeric methods. | Yukihiro "Matz" Matsumoto | |
| 2019-05-21 | Export `mrb_int_value` that converts `mrb_float` to `Fixnum`. | Yukihiro "Matz" Matsumoto | |
| Or `Float` if `mrb_float` value is too big (or too small) to fit in `mrb_int`. The `_int_` in `mrb_int_value` means `Integral` module, which represents integer-like values in mruby. | |||
| 2019-05-21 | Silence the return value warnings from gcc; ref 237a57b | Yukihiro "Matz" Matsumoto | |
| 2019-05-21 | Move `**`,`/`,`quo`,`div` and comparison methods to Integral from Numeric | KOBAYASHI Shuji | |
| Having these methods in Numeric can get in the way of creating subclasses of Numeric because they only support Fixnum and Float. | |||
| 2019-05-20 | Add new functions for numerical operation; ref 237a57b | Yukihiro "Matz" Matsumoto | |
| New functions: * mrb_num_plus(mrb, x, y) * mrb_num_minus(mrb, x, y) * num_num_mul(mrb, x, y) | |||
| 2019-05-19 | Merge pull request #4455 from dearblue/remove-LINE-section | Yukihiro "Matz" Matsumoto | |
| Remove "LINE" section reader | |||
| 2019-05-19 | Remove "LINE" section reader | dearblue | |
| Because it is not currently output by `mrbc`. | |||
| 2019-05-18 | Move `Kernel#equal? to `BasicObject` | KOBAYASHI Shuji | |
| 2019-05-18 | Move `Numeric#__coerce_step_counter` to `Integral` | KOBAYASHI Shuji | |
| This method is only used in `Integral#step` | |||
| 2019-05-18 | Add ISO section number to `Module#===`. | Yukihiro "Matz" Matsumoto | |
| 2019-05-18 | Rename `struct RIstruct` to `struct RIStruct`. | Yukihiro "Matz" Matsumoto | |
| 2019-05-17 | Make unused functions private. | Yukihiro "Matz" Matsumoto | |
| * mrb_fixnum_plus() * mrb_fixnum_minus() * mrb_fixnum_mul() | |||
| 2019-05-17 | Remove unused `mrb_num_div()` function. | Yukihiro "Matz" Matsumoto | |
| 2019-05-17 | Move `Numeric#div` to the core. | Yukihiro "Matz" Matsumoto | |
| 2019-05-17 | Make `flo_rount` to return `Integeral`. | Yukihiro "Matz" Matsumoto | |
| 2019-05-17 | Change the `num.divmod(float)` to return `[int,num]`. | Yukihiro "Matz" Matsumoto | |
| 2019-05-17 | Add a new function `mrb_int_value`. | Yukihiro "Matz" Matsumoto | |
| This function returns `Fixnum` if the value fits in `mrb_int`, otherwise it returns `Float` value (mruby behavior of handling integers). | |||
| 2019-05-17 | Use `int64_t` instead of `mrb_int` in `int64_value`. | Yukihiro "Matz" Matsumoto | |
| 2019-05-16 | Terminate float right shift if shift value is too big. | Yukihiro "Matz" Matsumoto | |
| 2019-05-15 | Merge pull request #4400 from ↵ | Yukihiro "Matz" Matsumoto | |
| shuujii/fix-name-assignment-to-frozen-anonymous-class-module Fix name assignment to frozen anonymous class/module | |||
| 2019-05-11 | Use `mrb_ensure_string_type` in `mrb_to_str` | KOBAYASHI Shuji | |
| 2019-05-08 | Use `mrb_string_value_cstr` in `mrb_str_to_dbl` | KOBAYASHI Shuji | |
| 2019-05-07 | Refactor `mrb_str_to_cstr` and `mrb_string_value_cstr` | KOBAYASHI Shuji | |
| - Extract null byte check to function. - Avoid string allocation if null byte is included. - Use `str_new` instead of `mrb_str_dup` + `mrb_str_modify` | |||
| 2019-05-04 | Check whether object is immediate in `mrb_gc_(register|unregister)` | KOBAYASHI Shuji | |
