summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2021-06-15numeric.c: restore `fmt` argument for backward compatibility.Yukihiro "Matz" Matsumoto
`mrb_float_to_str()` used to take `fmt` argument. We thought no one used the function, and OK to remove the argument. But at least `mruby-redis` gem used the function.
2021-06-14pack.c: support `w' directive (BER integer compression).Yukihiro "Matz" Matsumoto
2021-06-13pack.c: `count` should not be negative for directives `xX@`.Yukihiro "Matz" Matsumoto
2021-06-13pack.c: raise error for unsupported `w` directive.Yukihiro "Matz" Matsumoto
2021-06-12readint.c: fixed typo.Yukihiro "Matz" Matsumoto
2021-06-12pack.c: support `@' directive (absolute position).Yukihiro "Matz" Matsumoto
2021-06-12pack.c: refactor pack/unpack 'X'.Yukihiro "Matz" Matsumoto
2021-06-12pack.c: add `X` directive (back up byte).Yukihiro "Matz" Matsumoto
2021-06-12pack.c: `count` should be always positive. no check needed.Yukihiro "Matz" Matsumoto
2021-06-12pack.c: fix `long/int` mixtures.Yukihiro "Matz" Matsumoto
2021-06-12pack.c: remove unused arguments from static functions.Yukihiro "Matz" Matsumoto
2021-06-12pack.c: wrong position after count read.Yukihiro "Matz" Matsumoto
2021-06-12Merge pull request #5476 from dearblue/eval+superYukihiro "Matz" Matsumoto
Raise `TypeError` with `super` inside `instance_eval` / `class_eval`
2021-06-12Raise `TypeError` with `super` inside `instance_eval` / `class_eval`dearblue
Commit d0f60182af9114f6840d993d74f492e483302805 introduced an exception as a limitation of mruby. Subsequent CRuby-2.7 has changed its behavior to raise an exception. ref: https://github.com/ruby/ruby/commit/55b7ba368696033f2e89b77cbcd4a05dec97b139
2021-06-11codegen.c: refactor `readint()`Yukihiro "Matz" Matsumoto
* renamed from redundant `readint_mrb_int()` * supports only base upto 16 * no base validation (already done in parser) * no negative read (negate after read) * overflow detection using `mrb_int_{mul,add}_overflow()`
2021-06-11readint.c: add new function `mrb_int_read`.Yukihiro "Matz" Matsumoto
Difference from `strtoul(3)`: * reads `mrb_int` based on configuration * specifies the end of the string * no sign interpretation * base 10 only
2021-06-11Merge pull request #5475 from ↵Yukihiro "Matz" Matsumoto
mruby/dependabot/github_actions/github/super-linter-4.2.2 build(deps): bump github/super-linter from 4.2.1 to 4.2.2
2021-06-11build(deps): bump github/super-linter from 4.2.1 to 4.2.2dependabot[bot]
Bumps [github/super-linter](https://github.com/github/super-linter) from 4.2.1 to 4.2.2. - [Release notes](https://github.com/github/super-linter/releases) - [Commits](https://github.com/github/super-linter/compare/v4.2.1...v4.2.2) --- updated-dependencies: - dependency-name: github/super-linter dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
2021-06-10sprintf.c: check value range before type casting.Yukihiro "Matz" Matsumoto
2021-06-10readflt.c: renamed from `strtod.c`Yukihiro "Matz" Matsumoto
The file provides `mrb_read_float()` renamed from `vim_strtod()`.
2021-06-10Merge pull request #5474 from ↵Yukihiro "Matz" Matsumoto
mruby/dependabot/github_actions/github/super-linter-4.2.1 build(deps): bump github/super-linter from 4.2.0 to 4.2.1
2021-06-10build(deps): bump github/super-linter from 4.2.0 to 4.2.1dependabot[bot]
Bumps [github/super-linter](https://github.com/github/super-linter) from 4.2.0 to 4.2.1. - [Release notes](https://github.com/github/super-linter/releases) - [Commits](https://github.com/github/super-linter/compare/v4.2.0...v4.2.1) --- updated-dependencies: - dependency-name: github/super-linter dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
2021-06-09Merge pull request #5473 from ↵Yukihiro "Matz" Matsumoto
mruby/dependabot/github_actions/github/super-linter-4.2.0 build(deps): bump github/super-linter from 4.1.0 to 4.2.0
2021-06-09build(deps): bump github/super-linter from 4.1.0 to 4.2.0dependabot[bot]
Bumps [github/super-linter](https://github.com/github/super-linter) from 4.1.0 to 4.2.0. - [Release notes](https://github.com/github/super-linter/releases) - [Commits](https://github.com/github/super-linter/compare/v4.1.0...v4.2.0) --- updated-dependencies: - dependency-name: github/super-linter dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
2021-06-08string.c: make `mrb_str_len_{inum,dbl}()` static.Yukihiro "Matz" Matsumoto
2021-06-08string.c: remove two unused functions.Yukihiro "Matz" Matsumoto
* `mrb_cstr_to_inum()` * `mrb_cstr_to_dbl()`
2021-06-08string.c: add `base>36` check to `String#to_i`.Yukihiro "Matz" Matsumoto
2021-06-07sprintf.c: fix `mrb_int` and `int` mixture errors.Yukihiro "Matz" Matsumoto
2021-06-07pack.c: fix 'void*` to `char*` assignment.Yukihiro "Matz" Matsumoto
2021-06-07pack.c: add `default` to `switch` statement to silence warnings.Yukihiro "Matz" Matsumoto
2021-06-07pack.c: support `M` specifier (quoted-printable).Yukihiro "Matz" Matsumoto
2021-06-07test/pack.c: reorganize test suits.Yukihiro "Matz" Matsumoto
2021-06-07pack.c: raise exception for unsupported specifiers.Yukihiro "Matz" Matsumoto
2021-06-06pack.c: check overflow before calling `pack_x`.Yukihiro "Matz" Matsumoto
2021-06-06pack.c: check overflow before reading count.Yukihiro "Matz" Matsumoto
2021-06-06pack.c: failed to detect overflow when `ch` is zero in `read_tmpl`.Yukihiro "Matz" Matsumoto
2021-06-05pack.c: hold `enum` values in `enum` variables not `int`.Yukihiro "Matz" Matsumoto
2021-06-05codedump.c: fix a compiler condition bug with `MRB_NO_FLOAT`.Yukihiro "Matz" Matsumoto
2021-06-05ops.h: fix term consistency. `Lit` -> `Pool`.Yukihiro "Matz" Matsumoto
2021-06-04Merge branch 'mirichi-test'Yukihiro "Matz" Matsumoto
2021-06-04add block argument test #2144mirichi
2021-06-04Merge branch 'test' of https://github.com/mirichi/mruby into mirichi-testYukihiro "Matz" Matsumoto
2021-06-04Merge pull request #5469 from ↵Yukihiro "Matz" Matsumoto
mruby/dependabot/github_actions/github/super-linter-4.1.0 build(deps): bump github/super-linter from 4.0.2 to 4.1.0
2021-06-04build(deps): bump github/super-linter from 4.0.2 to 4.1.0dependabot[bot]
Bumps [github/super-linter](https://github.com/github/super-linter) from 4.0.2 to 4.1.0. - [Release notes](https://github.com/github/super-linter/releases) - [Commits](https://github.com/github/super-linter/compare/v4.0.2...v4.1.0) --- updated-dependencies: - dependency-name: github/super-linter dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
2021-06-03add a few regressions test from #2313Yukihiro "Matz" Matsumoto
The code was contributed from Carson McDonald (@carsonmcdonald)
2021-06-02vm.c: unify `JUMP` instructions in `OP_SEND`.Yukihiro "Matz" Matsumoto
2021-06-01cdump.c: rename `dump_` prefix to `cdump` for static functions.Yukihiro "Matz" Matsumoto
2021-06-01cdump.c: separate irep dump in C feature.Yukihiro "Matz" Matsumoto
2021-05-31Merge pull request #5464 from shuujii/fix-typo-in-lib-mruby-presym.rbYukihiro "Matz" Matsumoto
Fix typo in `lib/mruby/presym.rb`
2021-05-31Fix typo in `lib/mruby/presym.rb`KOBAYASHI Shuji