summaryrefslogtreecommitdiffhomepage
path: root/mrbgems
AgeCommit message (Collapse)Author
2021-01-11Merge pull request #5285 from dearblue/io-unimpsYukihiro "Matz" Matsumoto
Remove functions for unimplemented methods
2021-01-11Integrate the argument parsing part of `IO.popen`dearblue
2021-01-11Remove functions for unimplemented methodsdearblue
- Use `mrb_notimplement_m()` instead. - Hide the unused `option_to_fd()` when `TARGET_OS_IPHONE` is enabled.
2021-01-11Create a `mruby-config` that can be run on the host by cross-buildingdearblue
The output directory will be `host-bin`, so it will be output as `<build-dir>/host-bin/mruby-config`. It's still not available for target devices.
2021-01-11Avoid including `presym.inc` in existing header filesKOBAYASHI Shuji
Addressed an issue where existing programs linking `libmruby.a` could only be built by adding `<build-dir>/include` to compiler's include path.
2021-01-10Fix CI failure on Windows environment.Yukihiro "Matz" Matsumoto
`1L` on Windows means `32 bit int`.
2021-01-10Fix mixture of inline `int` declaration in `for` statement.Yukihiro "Matz" Matsumoto
2021-01-10Revert "Revert "Simplify full-core.gembox""Yukihiro "Matz" Matsumoto
This reverts commit 37d795dec7b495d418dc2f9020cf980c158ba9ed. This reapplies e20d652 (#4202), which is reverted, but its issue was solved by 1d8456f.
2021-01-10Revert "Save&restore execution point (`pc`) in `c->cibase->pc`; fix #5261"dearblue
This reverts commit a0c1e075e35c358d21934c28ff1bec4153502409. This is because the `mrb_callinfo::pc` has been reorganized, resulting in over-correction.
2021-01-10Unified `pc` and `err` of `mrb_callinfo`dearblue
This enhances self-containment. - Changed the `mrb_callinfo::pc` field to point to itself. Previously it indicated the return destination of the previous call level. `mrb_callinfo::pc` will now hold the address to its own `proc->body.irep->iseq`. - Removed `mrb_callinfo::err` field. This is because `mrb_callinfo::pc - 1` is semantically the same as the previous `err`. - The `pc0` and `pc_save` variables in `mrb_vm_exec()` are no longer needed and have been deleted. - It removes the argument because `cipush()` doesn't need to save the previous `pc`.
2021-01-10Changes `stackent` to `stack` of `mrb_callinfo`dearblue
This enhances self-containment. Previously `mrb_context::stack` had the current call level stack, but now it owns it. The `mrb_context::stack` field, which is no longer needed, will be removed.
2021-01-10Unified `target_class` and `env` of `mrb_callinfo`dearblue
If there is `env`, `env->c` means `target_class`.
2021-01-09Fix wrong float to rational conversion in 32 bit mode.Yukihiro "Matz" Matsumoto
2021-01-09Convert float number to rational by decoding mantissa.Yukihiro "Matz" Matsumoto
2021-01-09Remove `khash.h` leftovers.Yukihiro "Matz" Matsumoto
2021-01-08Merge pull request #5267 from shuujii/delay-test-code-build-until-rake-testYukihiro "Matz" Matsumoto
Delay test code build until `rake test`
2021-01-08Save&restore execution point (`pc`) in `c->cibase->pc`; fix #5261Yukihiro "Matz" Matsumoto
`mrb_fiber_resume()` can be called from C; ref #3056
2021-01-08Delay test code build until `rake test`KOBAYASHI Shuji
With this change, the test code will not be built unless `rake test` is run, so there will be almost no side effects even if `enable_test` is always set (but, gems specified by `add_test_dependency` are included in `libmruby.a`). Also added are `test: build` task, which only builds the test code (including the main code), and `test: run` task, which only runs tests independent of build. Therefore, the idiom for building in parallel and not running tests in parallel is `rake -m test:build && rake test:run`.
2021-01-07Use `nint()` for implicit cast; ref #5260Yukihiro "Matz" Matsumoto
2021-01-06Add heredoc_push_indented helper functionSeeker
2021-01-06Fix line continuations with mixed indentation in squiggly heredocsSeeker
2021-01-06Fix build with `enable_cxx_exception`KOBAYASHI Shuji
2021-01-06Specify receivers for `gembox` methods; ref #5241Yukihiro "Matz" Matsumoto
2021-01-06Merge pull request #5241 from dearblue/gemboxYukihiro "Matz" Matsumoto
Take advantage of gembox
2021-01-06Use `~0U` instead of `~0` to avoid sign comparison warnings.Yukihiro "Matz" Matsumoto
2021-01-06Merge branch 'improve-source-scanning-for-presym' of ↵Yukihiro "Matz" Matsumoto
https://github.com/shuujii/mruby into shuujii-improve-source-scanning-for-presym
2021-01-06Avoid comparing `-1` with `size_t` (unsigned); Use `~0` instead.Yukihiro "Matz" Matsumoto
2021-01-06Allow context switch from C using `mrb_fiber_resume()`.Yukihiro "Matz" Matsumoto
But you still cannot cross C function boundary.
2021-01-05Remove duplicated `remove_sign_bits()` call.Yukihiro "Matz" Matsumoto
2021-01-04Fix `mirb` not to be terminated by `codegen error`.Yukihiro "Matz" Matsumoto
2021-01-03Fix for escaped newlines in squiggly heredocsSeeker
2021-01-02Avoid `int64_t` on 32 bit platforms.Yukihiro "Matz" Matsumoto
2021-01-02Check `NaN` and `Infinity` before converting `Float` to `Rational`.Yukihiro "Matz" Matsumoto
2021-01-02Allow negative integer value formatting in base 8 and 16.Yukihiro "Matz" Matsumoto
2021-01-02Use type casting macros; ref #5246 #5247Yukihiro "Matz" Matsumoto
2020-12-31Treat tabs as 8 spaces in squiggly heredocsSeeker
2020-12-31Fix regression for squiggly heredocsSeeker
2020-12-28Fix mixed indentation and escaped tabs in squiggly heredocsSeeker
2020-12-27Fix for empty lines in squiggly heredocsSeeker
2020-12-27Add `Hash#except` [Ruby 3.0]Seeker
2020-12-27Fix operand types errorSeeker
2020-12-27Commit y.tab.cSeeker
2020-12-26Add support for squiggly heredocsSeeker
2020-12-25Improves out of memory messages for `eval`dearblue
The comment says that if `mrb_parse_nstring()` returns `NULL`, it is only out of memory. I'm worried about compatibility if I set the exception class to `NoMemoryError`, so it's still `RuntimeError`.
2020-12-24Reset paren_nest at tAREF and tASET.Yukihiro "Matz" Matsumoto
2020-12-24Avoid division by zero in `rational_to_f()`.Yukihiro "Matz" Matsumoto
2020-12-21Take advantage of gemboxdearblue
I think that it is easy to use if it is divided according to the type of library and the general purpose. It is a subdivision from the previous `default.gembox`. By type gembox: - `stdlib`: Add some standard Ruby methods not provided by core. - `stdlib-ext`: Add some standard Ruby methods that are not provided by `stdlib`. - `stdlib-io`: Provides `IO`, `File`, `Socket`, `print`, etc. Conflict with `MRB_NO_STDIO` - `math`: Add a class related to math. Conflict with `MRB_NO_FLOAT` - `metaprog`: Adds features related to metaprogramming. Purpose gembox: - `default.gembox`: Import the same gems as before - `default-no-stdio.gembox`: Import the` stdlib` and `math` - `default-no-fpu.gembox`: Import the` stdlib` only
2020-12-19Merge pull request #5232 from jbampton/lint-markdownYukihiro "Matz" Matsumoto
feat(CI): add a GitHub Action to lint the Markdown
2020-12-19Merge pull request #5230 from dearblue/mruby-config.2Yukihiro "Matz" Matsumoto
Ignore `mruby-bin-config` in cross-building
2020-12-19feat(CI): add a GitHub Action to lint the MarkdownJohn Bampton
Run on pull request only Using https://www.npmjs.com/package/markdownlint-cli Lint Markdown for rules: - MD009/no-trailing-spaces - MD012/no-multiple-blanks - MD022/blanks-around-headings - MD031/blanks-around-fences - MD032/blanks-around-lists