| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2021-05-28 | vm.c: skip actual `method_missing` call unless it's overridden. | Yukihiro "Matz" Matsumoto | |
| So that `mruby -e 'a'` does not print backtrace history, i.e. ``` % mruby -e 'a' -e:1: undefined method 'a' (NoMethodError) ``` Instead of ``` % mruby -e 'a' trace (most recent call last): [1] -e:1 -e:1: undefined method 'a' (NoMethodError) ``` | |||
| 2021-05-27 | kernel.c: clear `mid` for `raise` and `method_missing` | Yukihiro "Matz" Matsumoto | |
| Method names need not to be printed in backtrace history. | |||
| 2021-05-27 | backtrace.c: do not print trace line if there's no backtrace history | Yukihiro "Matz" Matsumoto | |
| 2021-05-27 | array.c: unify `mrb_ary_ref` and `mrb_ary_entry` | Yukihiro "Matz" Matsumoto | |
| Use only `mrb_ary_entry` hereafter. | |||
| 2021-05-27 | array.c: check for negative shift size. | Yukihiro "Matz" Matsumoto | |
| 2021-05-26 | fmt_fp.c: move mruby specific `mrb_float_to_str` to `numeric.c` | Yukihiro "Matz" Matsumoto | |
| 2021-05-25 | fmt_fp.c: truncate precision to prevent buffer overflow. | Yukihiro "Matz" Matsumoto | |
| 2021-05-25 | fmt_fp.c: use constant that depends on `mrb_float` size. | Yukihiro "Matz" Matsumoto | |
| 2021-05-25 | fmt_fp.c: use a const int instead of a macro constant. | Yukihiro "Matz" Matsumoto | |
| 2021-05-24 | strtod.c: new public domain implementation of `strtod`; ref #5448 | Yukihiro "Matz" Matsumoto | |
| Instead of using copyrighted `strtod`, now use the public domain implementation of `strtod` by Yasuhiro Matsumoto (@mattn). The function has been renamed to `mrb_float_read()`; ref #5460 as well. | |||
| 2021-05-24 | fmt_fp.c: exponential may be bigger than `100`. | Yukihiro "Matz" Matsumoto | |
| 2021-05-24 | class.c: no need to create aliases if both symbols are same. | Yukihiro "Matz" Matsumoto | |
| 2021-05-24 | class.c: add write barrier for aliases. | Yukihiro "Matz" Matsumoto | |
| 2021-05-22 | Fix typo in `src/fmt_fp.c` [ci skip] | KOBAYASHI Shuji | |
| 2021-05-22 | fp_fmt.c: remove `mrb_float_to_cstr()`. | Yukihiro "Matz" Matsumoto | |
| The function was intended to be a utility function for `mruby-sprintf`. The functionality was integrated into `sprintf.c`. | |||
| 2021-05-22 | fmt_fp.c: replace with public domain float format routine; ref #5448 | Yukihiro "Matz" Matsumoto | |
| The original code can be found in `https://github.com/dhylands/format-float`. Changes: - support `double` - support `#` (alt_form) modifier - small refactoring | |||
| 2021-05-21 | fmt_fp.c: remove `fmt` argument from `mrb_float_to_str()`. | Yukihiro "Matz" Matsumoto | |
| With major refactoring to prepare removing `snprintf(3) calls. | |||
| 2021-05-21 | numeric.h: remove 2 functions from `MRB_API` | Yukihiro "Matz" Matsumoto | |
| - `mrb_float_to_str()` - `mrb_float_to_cstr()` Both functions will be replaced to support new coming `format-float.c`. | |||
| 2021-05-20 | Support load 64-bit integer from mrb format with MRB_32BIT and MRB_INT64 | KOBAYASHI Shuji | |
| 2021-05-17 | Global renaming regarding `integer` and `float`. | Yukihiro "Matz" Matsumoto | |
| Consistent number conversion function names: * `mrb_value` to immediate (C) value * `mrb_int()` -> `mrb_as_int()` * `mrb_to_flo()` -> `mrb_as_float()` * `mrb_value` to `mrb_value` (converted) * `mrb_to_int()' * `mrb_Integer()` - removed * `mrb_Float()` -> `mrb_to_float` Consistent function name (avoid `_flo` suffix): * `mrb_div_flo()` -> `mrb_div_float` | |||
| 2021-05-17 | Rename `mrb_fixnum_to_str` to `mrb_integer_to_str`. | Yukihiro "Matz" Matsumoto | |
| 2021-05-17 | Rename `mrb_flo_to_fixnum` to `mrb_float_to_integer`. | Yukihiro "Matz" Matsumoto | |
| 2021-05-14 | range.c: implement (part of) `Range#to_a` in C. | Yukihiro "Matz" Matsumoto | |
| Mostly for performance reason. | |||
| 2021-05-14 | range.c: refactor conditional compilation code. | Yukihiro "Matz" Matsumoto | |
| So that auto indentation works. | |||
| 2021-05-14 | range.c: rename `RANGE_INITIALIZED_MASK` to `RANGE_INITIALIZED_FLAG`. | Yukihiro "Matz" Matsumoto | |
| 2021-05-13 | backtrace.c: stop skipping frame with file/line information. | Yukihiro "Matz" Matsumoto | |
| Instead, copy them from the outer frame as CRuby does. | |||
| 2021-05-11 | Remove the obsolete term `Fixnum`. | Yukihiro "Matz" Matsumoto | |
| Except for compatibility code. | |||
| 2021-05-06 | symbol.c: add `Symbol#name` method | Yukihiro "Matz" Matsumoto | |
| `Symbol#name` is similar to `#to_s` but returns a frozen string. | |||
| 2021-05-06 | symbol.c: rename `sym_name` to `sym_cstr`. | Yukihiro "Matz" Matsumoto | |
| 2021-05-03 | Fix whitespace in `src/symbol.c` | John Bampton | |
| 2021-05-03 | symbol.c: remove `id2name` reference from documents. | Yukihiro "Matz" Matsumoto | |
| 2021-05-03 | symbol.c: remove `Symbol#id2sym`. | Yukihiro "Matz" Matsumoto | |
| In the ancient Ruby, symbols are represented by integers. In that era, to get string representation from integers, we used `Integer#id2sym` method. Later, `Symbol` was introduced, and `id2sym` was used for compatibility. Today, no one uses `id2sym` any longer. It is described in ISO 30170:2012 standard but I consider it as a mistake. | |||
| 2021-05-02 | array.c: `mrb_ary_shift_m` should be `static`. | Yukihiro "Matz" Matsumoto | |
| 2021-05-02 | symbol.c: remove `mrb_sym_static_p()` function that no one use. | Yukihiro "Matz" Matsumoto | |
| 2021-04-28 | string.{c,rb}: fix type of return values from some methods as Ruby3.0 | Yukihiro "Matz" Matsumoto | |
| When the receiver is the instance of subclass of `String`. - `String#each_char` - `String#each_line` - `String#partition` | |||
| 2021-04-27 | array.c: update `Array#shift` to take optional argument; close #5428 | Yukihiro "Matz" Matsumoto | |
| 2021-04-26 | Merge pull request #5425 from dearblue/exc_to_s | Yukihiro "Matz" Matsumoto | |
| Fix symbol leak in `exc_to_s()` | |||
| 2021-04-26 | backtrace.c: skip innermost frame only when the method is in C; #5394 | Yukihiro "Matz" Matsumoto | |
| 2021-04-26 | Merge pull request #5424 from dearblue/new_iseq | Yukihiro "Matz" Matsumoto | |
| Fix annotations for inline iseq of `Class.new` [ci skip] | |||
| 2021-04-26 | Merge pull request #5423 from dearblue/gc-red | Yukihiro "Matz" Matsumoto | |
| Introduce `MRB_GC_RED` | |||
| 2021-04-25 | Fix symbol leak in `exc_to_s()` | dearblue | |
| 2021-04-24 | Fix annotations for inline iseq of `Class.new` [ci skip] | dearblue | |
| 2021-04-24 | numeric.c: remove duplicated definitions; #5421 | Yukihiro "Matz" Matsumoto | |
| Following functions are defined in `mrblib/numeric.c`: - `Integer#ceil` - `Integer#floor` - `Integer#round` - `Integer#truncate` | |||
| 2021-04-24 | Introduce `MRB_GC_RED` | dearblue | |
| Replaces the magic number `7` except in `src/gc.c`. | |||
| 2021-04-24 | numeric.c: fix errors from `MRB_NO_FLOAT`; close #5421 | Yukihiro "Matz" Matsumoto | |
| 2021-04-23 | vm.c: fix errors with `MRB_NO_FLOAT`; fix #5421 | Yukihiro "Matz" Matsumoto | |
| 2021-04-22 | error.h: rename `mrb_protect_raw` to `mrb_protect_error`; #5415 | Yukihiro "Matz" Matsumoto | |
| - `_raw` does not describe the nature of the function - the function protect errors during C function execution | |||
| 2021-04-21 | numeric.c: update error messages in `int_pow`; ref #5420 | Yukihiro "Matz" Matsumoto | |
| 2021-04-21 | numeric.c: fix `int_pow` to detect integer overflow; fix #5420 | Yukihiro "Matz" Matsumoto | |
| 2021-04-20 | Remove `MRB_API` from `mrb_get_backtrace` definition | KOBAYASHI Shuji | |
