- 24 May, 2021 1 commit
-
-
Yukihiro "Matz" Matsumoto authored
-
- 22 May, 2021 5 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix typo in `src/fmt_fp.c` [ci skip]
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
Too many digits to fit in single precision float numbers, so that tests fail when `MRB_USE_FLOAT32` defined.
-
Yukihiro "Matz" Matsumoto authored
The function was intended to be a utility function for `mruby-sprintf`. The functionality was integrated into `sprintf.c`.
-
Yukihiro "Matz" Matsumoto authored
The original code can be found in `https://github.com/dhylands/format-float`. Changes: - support `double` - support `#` (alt_form) modifier - small refactoring
-
- 20 May, 2021 6 commits
-
-
Yukihiro "Matz" Matsumoto authored
With major refactoring to prepare removing `snprintf(3) calls.
-
Yukihiro "Matz" Matsumoto authored
- `mrb_float_to_str()` - `mrb_float_to_cstr()` Both functions will be replaced to support new coming `format-float.c`.
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
`fmt_fp.c` does not support those specifiers. In addition, I believe no one uses hexadecimal representation of float values.
-
Yukihiro "Matz" Matsumoto authored
Merge pull request #5456 from shuujii/support-load-64-bit-integer-from-mrb-format-with-MRB_32BIT-and-MRB_INT64 Support load 64-bit integer from mrb format with MRB_32BIT and MRB_INT64
-
KOBAYASHI Shuji authored
-
- 18 May, 2021 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
This change allows `def hello = puts "Hello"` without parentheses. This syntax has been introduced since Ruby3.1.
-
Yukihiro "Matz" Matsumoto authored
-
- 17 May, 2021 4 commits
-
-
Yukihiro "Matz" Matsumoto authored
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`
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
To be consistent, functions with `rational_` prefix implements methods, functions with `rat_` prefix are utility functions.
-
- 16 May, 2021 1 commit
-
-
Yukihiro "Matz" Matsumoto authored
-
- 15 May, 2021 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
The Ruby version of `Array#rotate!` generated a rotated array and replaced the receiver, but the C version rotates the receiver array in-place. So the performance is improved a lot both in speed and memory consumption. Look for the comments in `array.c` for the in-place rotating algorithm, if you are interested.
-
- 14 May, 2021 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
To avoid editor coloring failures.
-
- 13 May, 2021 10 commits
-
-
Yukihiro "Matz" Matsumoto authored
Mostly for performance reason.
-
Yukihiro "Matz" Matsumoto authored
So that auto indentation works.
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
- move `TRUE/FALSE` definition from `mrbconf.h` (not configurable) - use C/C++ definition of boolean type for `mrb_bool` The fix is originally written by @take-cheeze.
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
build(deps): bump github/super-linter from 3.17.0 to 3.17.1
-
Yukihiro "Matz" Matsumoto authored
`mrb_int` may not fit in `fixnum` (inline integer).
-
Yukihiro "Matz" Matsumoto authored
-
dependabot[bot] authored
Bumps [github/super-linter](https://github.com/github/super-linter) from 3.17.0 to 3.17.1. - [Release notes](https://github.com/github/super-linter/releases) - [Commits](https://github.com/github/super-linter/compare/v3.17.0...v3.17.1) Signed-off-by:
dependabot[bot] <support@github.com>
-
- 12 May, 2021 4 commits
-
-
Yukihiro "Matz" Matsumoto authored
Instead, copy them from the outer frame as CRuby does.
-
Yukihiro "Matz" Matsumoto authored
build(deps): bump actions/checkout from 2 to 2.3.4
-
dependabot[bot] authored
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 2.3.4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v2.3.4) Signed-off-by:
dependabot[bot] <support@github.com>
-
Yukihiro "Matz" Matsumoto authored
-
- 11 May, 2021 1 commit
-
-
Yukihiro "Matz" Matsumoto authored
The performance of `Enumerable#entries` are significantly slower than `Array#to_a`.
-
- 10 May, 2021 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Except for compatibility code.
-
Yukihiro "Matz" Matsumoto authored
- `puts` behavior changed as CRuby - fix wrong behavior in re-raising in `rescue`
-