summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2021-08-18debug.c: export integer compressing functions.Yukihiro "Matz" Matsumoto
- mrb_packed_int_len() - mrb_packed_int_encode() - mrb_packed_int_decode()
2021-08-17boxing_word.h: simplifies inline symbols on `MRB_64BIT`.Yukihiro "Matz" Matsumoto
2021-08-17pack.c: rename pack/unpack functions for readability.Yukihiro "Matz" Matsumoto
2021-08-17fixup! pack.c: reduce dispatch in `pack_unpack()`.Yukihiro "Matz" Matsumoto
2021-08-17pack.c: reduce dispatch in `pack_unpack()`.Yukihiro "Matz" Matsumoto
2021-08-16pack.c: fix `M` packing bug.Yukihiro "Matz" Matsumoto
2021-08-15AUTHORS: update. [ci skip]Yukihiro "Matz" Matsumoto
2021-08-14random.c: use `I` specifier for `mrb_get_args()`; ref #5530Yukihiro "Matz" Matsumoto
2021-08-14pack.c: fixed a overwriting bug in `pack_w` and `pack_M`.Yukihiro "Matz" Matsumoto
2021-08-14error.c: the error message may contain `NUL` character.Yukihiro "Matz" Matsumoto
2021-08-14Merge pull request #5532 from dantecatalfamo/rhel-doxygenYukihiro "Matz" Matsumoto
Add instructions for installing doxygen on RHEL/Fedora/CentOS
2021-08-13Add instructions for installing doxygen on RHEL/Fedora/CentOSDante Catalfamo
2021-08-13Merge pull request #5530 from dearblue/mrb_get_args-IYukihiro "Matz" Matsumoto
Check the class with `I` specifier of `mrb_get_args()`
2021-08-13Check the class with `I` specifier of `mrb_get_args()`dearblue
Previously, the `I` specifier only checked if the object was `MRB_TT_ISTRUCT`. So it was at risk of getting pointers to different C structs if multiple classes were to use the `MRB_TT_ISTRUCT` instance. Change this behavior and change the C argument corresponding to the `I` specifier to `(void *, struct RClass)`. This change is not compatible with the previous mruby. Please note that if the user uses the previous specifications, `SIGSEGV` may occur or the machine stack may be destroyed. resolve #5527
2021-08-13codegen.c: fixed a bug in `mrb_decode_insn()`.Yukihiro "Matz" Matsumoto
2021-08-13codegen.c: add a comment that notice `rewind_pc` calling convention.Yukihiro "Matz" Matsumoto
`rewind_pc` should not be called when `s->pc` is `0` (top).
2021-08-13codegen.c: refactor `mrb_last_insn()`.Yukihiro "Matz" Matsumoto
Last commit made `mrb_decode_insn()` to take `NULL` as `pc`.
2021-08-13codegen.c: `mrb_prev_pc` can return `NULL` at the top of `iseq`.Yukihiro "Matz" Matsumoto
2021-08-12test/eval.c: add test for #5528Yukihiro "Matz" Matsumoto
2021-08-12Revert "Drop unnecessary upper procs linked from class/module/def syntax"Yukihiro "Matz" Matsumoto
Fix #5528 This reverts commit 59201b59046b9e73c309508350cd3c0fafd20e4d; #5497
2021-08-12class.c: `const_missing` do not have to be in the backtrace; ref #5528Yukihiro "Matz" Matsumoto
2021-08-11codegen.c: avoid signedness warning of int comparison.Yukihiro "Matz" Matsumoto
2021-08-11codegen.c: avoid cross initialization of `mrb_insn_data`.Yukihiro "Matz" Matsumoto
2021-08-11codedump.c: print local variable name for `ADDI/SUBI/ instructions.Yukihiro "Matz" Matsumoto
Recent peephole optimization made `ADDI/SUBI` destinations possibly local variables.
2021-08-11codegen.c: more peephole optimization.Yukihiro "Matz" Matsumoto
`a=10; a+=1` to generate: ``` 1 000 OP_LOADI R1 11 ; R1:a ``` instead of: ``` 1 000 OP_LOADI R1 10 ; R1:a 1 003 OP_MOVE R2 R1 ; R1:a 1 006 OP_ADDI R2 1 1 009 OP_MOVE R1 R2 ; R1:a ```
2021-08-11Merge pull request #5526 from ↵Yukihiro "Matz" Matsumoto
mruby/dependabot/github_actions/github/super-linter-4.6.1 build(deps): bump github/super-linter from 4.6.0 to 4.6.1
2021-08-10build(deps): bump github/super-linter from 4.6.0 to 4.6.1dependabot[bot]
Bumps [github/super-linter](https://github.com/github/super-linter) from 4.6.0 to 4.6.1. - [Release notes](https://github.com/github/super-linter/releases) - [Commits](https://github.com/github/super-linter/compare/v4.6.0...v4.6.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-08-10Merge pull request #5524 from dearblue/gem-headersYukihiro "Matz" Matsumoto
Expose all header files of the gems for small compilation
2021-08-09Expose all header files of the gems for small compilationdearblue
After building mruby, if the user compiles and links to `libmruby.a`, expose the included directory of the captured gems. This is a change to the `<build-dir> /lib/libmruby.flags.mak` file and will result in being added to `bin/mruby-config --cflags`. This eliminates the need for the user to look up the path and add the compiler flag if the user wants to take advantage of her gems publishing features. In the main build with `rake CONFIG=...`, there is no problem because it can only be seen from the gems that depends directly and indirectly as before. However, when compiling independently by the user using `bin/mruby-config`, a header file name collision may occur if a unique header directory is added.
2021-08-09Merge pull request #5525 from jbampton/pre-commit-autoupdateYukihiro "Matz" Matsumoto
pre-commit autoupdate
2021-08-09pre-commit autoupdateJohn
https://pre-commit.com/#pre-commit-autoupdate
2021-08-09Merge pull request #5522 from dearblue/pack-EOFYukihiro "Matz" Matsumoto
Fixed compilation error of "mruby-pack" with `MRB_NO_STDIO`
2021-08-08Merge pull request #5523 from jbampton/patch-1Yukihiro "Matz" Matsumoto
docs: fix case of mruby
2021-08-07docs: fix case of mrubyJohn Bampton
2021-08-07Fixed compilation error of "mruby-pack" with `MRB_NO_STDIO`dearblue
2021-08-07codedump.c: print two operands `R(x)` and `R(x+1)` for clarity.Yukihiro "Matz" Matsumoto
2021-08-07codegen.c: need to push the value when the loop was eliminated.Yukihiro "Matz" Matsumoto
2021-08-07array.h: avoid duplicated defined of `MRB_ARY_NO_EMBED`; fix #5520Yukihiro "Matz" Matsumoto
2021-08-07Merge pull request #5521 from ↵Yukihiro "Matz" Matsumoto
mruby/dependabot/github_actions/github/super-linter-4.6.0 build(deps): bump github/super-linter from 4.5.1 to 4.6.0
2021-08-06build(deps): bump github/super-linter from 4.5.1 to 4.6.0dependabot[bot]
Bumps [github/super-linter](https://github.com/github/super-linter) from 4.5.1 to 4.6.0. - [Release notes](https://github.com/github/super-linter/releases) - [Commits](https://github.com/github/super-linter/compare/v4.5.1...v4.6.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-08-06numeric_ext.c: fix a bug regarding `MRB_INT_MIN`.Yukihiro "Matz" Matsumoto
2021-08-06numeric.c: fix a bug regarding `MRB_INT_MIN`.Yukihiro "Matz" Matsumoto
2021-08-06codegen.c: `-9223372036854775808 % -1` overflows 64 bit integer.Yukihiro "Matz" Matsumoto
2021-08-05codegen.c: remove code duplication from `NODE_ARRAY`.Yukihiro "Matz" Matsumoto
2021-08-04codegen.c: detect integer overflow in division.Yukihiro "Matz" Matsumoto
`MRB_INT_MIN / -1` overflows.
2021-08-04numeric.c: fix a bug in left shift of negative integer.Yukihiro "Matz" Matsumoto
`-1 * (1<<63)` causes overflow, but `-1<<63` is a valid value.
2021-08-03numeric.c: check zero division before modulo.Yukihiro "Matz" Matsumoto
2021-08-03codegen.c: check zero division before constant folding.Yukihiro "Matz" Matsumoto
2021-08-03numeric_ext.c: `modulo` and `remainder` should handle infinite argument.Yukihiro "Matz" Matsumoto
2021-08-03numeric_ext.c: add `Float#modulo` and `#remainder` methods.Yukihiro "Matz" Matsumoto