summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2021-05-23Merge pull request #5459 from shuujii/fix-typo-in-src-fmt_fp.cYukihiro "Matz" Matsumoto
Fix typo in `src/fmt_fp.c` [ci skip]
2021-05-22Fix typo in `src/fmt_fp.c` [ci skip]KOBAYASHI Shuji
2021-05-22mruby-sprintf: reduce float digits to avoid test failure.Yukihiro "Matz" Matsumoto
Too many digits to fit in single precision float numbers, so that tests fail when `MRB_USE_FLOAT32` defined.
2021-05-22fp_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-22fmt_fp.c: replace with public domain float format routine; ref #5448Yukihiro "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-21fmt_fp.c: remove `fmt` argument from `mrb_float_to_str()`.Yukihiro "Matz" Matsumoto
With major refactoring to prepare removing `snprintf(3) calls.
2021-05-21numeric.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-21test/syntax.rb: fix endless def warning (no assertion).Yukihiro "Matz" Matsumoto
2021-05-21sprintf.c: remove specifiers `%a` and `%A`.Yukihiro "Matz" Matsumoto
`fmt_fp.c` does not support those specifiers. In addition, I believe no one uses hexadecimal representation of float values.
2021-05-21Merge pull request #5456 from ↵Yukihiro "Matz" Matsumoto
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
2021-05-20Support load 64-bit integer from mrb format with MRB_32BIT and MRB_INT64KOBAYASHI Shuji
2021-05-18parse.y: allow "command" syntax in endless method definition.Yukihiro "Matz" Matsumoto
This change allows `def hello = puts "Hello"` without parentheses. This syntax has been introduced since Ruby3.1.
2021-05-18parse.y: endless singleton method definition can omit parens.Yukihiro "Matz" Matsumoto
2021-05-17Global 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-17Rename `mrb_fixnum_to_str` to `mrb_integer_to_str`.Yukihiro "Matz" Matsumoto
2021-05-17Rename `mrb_flo_to_fixnum` to `mrb_float_to_integer`.Yukihiro "Matz" Matsumoto
2021-05-17rational.c: update function prefixes.Yukihiro "Matz" Matsumoto
To be consistent, functions with `rational_` prefix implements methods, functions with `rat_` prefix are utility functions.
2021-05-16numeric.h: reduce conditional compilation branch on `MRB_NO_FLOAT`.Yukihiro "Matz" Matsumoto
2021-05-15AUTHORS: update authors information as of 2021-05-15.Yukihiro "Matz" Matsumoto
2021-05-15mruby-array-ext/array.c: implement `Array#rotate` in C.Yukihiro "Matz" Matsumoto
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.
2021-05-14mruby-array-ext/array.c: implement `Array#compact` in C.Yukihiro "Matz" Matsumoto
2021-05-14array.rb: replace `can't` with `cannot`.Yukihiro "Matz" Matsumoto
To avoid editor coloring failures.
2021-05-14range.c: implement (part of) `Range#to_a` in C.Yukihiro "Matz" Matsumoto
Mostly for performance reason.
2021-05-14range.c: refactor conditional compilation code.Yukihiro "Matz" Matsumoto
So that auto indentation works.
2021-05-14range.c: rename `RANGE_INITIALIZED_MASK` to `RANGE_INITIALIZED_FLAG`.Yukihiro "Matz" Matsumoto
2021-05-13Update `mrb_bool` definition; close #2385Yukihiro "Matz" Matsumoto
- 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.
2021-05-13string.c: remove unnecessary branch in the internal method.Yukihiro "Matz" Matsumoto
2021-05-13Simplify module inclusion for `Array`, `Hash` and `Range`.Yukihiro "Matz" Matsumoto
2021-05-13Merge pull request #5451 from ↵Yukihiro "Matz" Matsumoto
mruby/dependabot/github_actions/github/super-linter-3.17.1 build(deps): bump github/super-linter from 3.17.0 to 3.17.1
2021-05-13range.c: avoid use of `mrb_fixnum_p`.Yukihiro "Matz" Matsumoto
`mrb_int` may not fit in `fixnum` (inline integer).
2021-05-13mruby-test: `MRB_INT_MAX` etc. may not fit in `Fixnum` (inline int).Yukihiro "Matz" Matsumoto
2021-05-13build(deps): bump github/super-linter from 3.17.0 to 3.17.1dependabot[bot]
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] <[email protected]>
2021-05-13backtrace.c: stop skipping frame with file/line information.Yukihiro "Matz" Matsumoto
Instead, copy them from the outer frame as CRuby does.
2021-05-12Merge pull request #5450 from ↵Yukihiro "Matz" Matsumoto
mruby/dependabot/github_actions/actions/checkout-2.3.4 build(deps): bump actions/checkout from 2 to 2.3.4
2021-05-12build(deps): bump actions/checkout from 2 to 2.3.4dependabot[bot]
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] <[email protected]>
2021-05-12range.rb: add `Range#entries` as an alias to `Range#to_a`.Yukihiro "Matz" Matsumoto
2021-05-12array.rb: add `Array#entries` as an alias to `Array#to_a`.Yukihiro "Matz" Matsumoto
The performance of `Enumerable#entries` are significantly slower than `Array#to_a`.
2021-05-11Remove the obsolete term `Fixnum`.Yukihiro "Matz" Matsumoto
Except for compatibility code.
2021-05-10doc/limitation.md: update the limitation.Yukihiro "Matz" Matsumoto
- `puts` behavior changed as CRuby - fix wrong behavior in re-raising in `rescue`
2021-05-08time.c: Windows API provides `clock_gettime`.Yukihiro "Matz" Matsumoto
`gettimeofday` emulation needed no longer.
2021-05-07Add `.git-blame-ignore-revs` file to ignore whitespace fixes.Yukihiro "Matz" Matsumoto
2021-05-07Merge pull request #5447 from dearblue/tabYukihiro "Matz" Matsumoto
Extend the tab with 8 whitespace
2021-05-07Merge pull request #5443 from jbampton/order-editorconfig-propertiesYukihiro "Matz" Matsumoto
Order the EditorConfig properties
2021-05-06symbol.c: add `Symbol#name` methodYukihiro "Matz" Matsumoto
`Symbol#name` is similar to `#to_s` but returns a frozen string.
2021-05-06symbol.c: rename `sym_name` to `sym_cstr`.Yukihiro "Matz" Matsumoto
2021-05-05Extend the tab with 8 whitespacedearblue
This work was done as follows: - check: `git grep $'\011' -- :^oss-fuzz` - convert: `ruby -pi -e 'nil while $_.sub!(/^(.*?)\t/) { $1 + " " * (8 - $1.size % 8) }'` The `doc/guide/{compile,mrbgems}.md` file adds and removes whitespace to make the directory tree look the same. In `mrbgems/mruby-socket/src/socket.c`, there is a part where the indent is changed from 4 to 2 at the same time as the tab is changed.
2021-05-05Merge pull request #5446 from ↵Yukihiro "Matz" Matsumoto
mruby/dependabot/github_actions/github/super-linter-v3.17.0 build(deps): bump github/super-linter from v3 to v3.17.0
2021-05-05build(deps): bump github/super-linter from v3 to v3.17.0dependabot[bot]
Bumps [github/super-linter](https://github.com/github/super-linter) from v3 to v3.17.0. - [Release notes](https://github.com/github/super-linter/releases) - [Commits](https://github.com/github/super-linter/compare/v3...28cfebb84fd6dd9e8773b5efe5ac0f8f3714f228) Signed-off-by: dependabot[bot] <[email protected]>
2021-05-05Merge pull request #5442 from dearblue/mruby-packYukihiro "Matz" Matsumoto
Fix documents for `mruby-io`
2021-05-05Merge pull request #5441 from dearblue/mruby-sleepYukihiro "Matz" Matsumoto
Update gem spec for `mruby-sleep`