summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2021-01-27Merge pull request #5302 from shuujii/rename-.i-created-for-presym-scan-to-.piYukihiro "Matz" Matsumoto
Rename `.i` created for presym scan to `.pi`
2021-01-27Rename `.i` created for presym scan to `.pi`KOBAYASHI Shuji
This is because compiler's `-save-temps=obj` option creates `.i` with the same name.
2021-01-27Merge pull request #5301 from shuujii/fix-typos-in-mruby-presym-disableenable.hYukihiro "Matz" Matsumoto
Fix typos in `mruby/presym/{disable,enable}.h` [ci skip]
2021-01-27Fix typos in `mruby/presym/{disable,enable}.h` [ci skip]KOBAYASHI Shuji
2021-01-27Merge pull request #5300 from ↵Yukihiro "Matz" Matsumoto
shuujii/avoid-possible-loss-of-data-casting-in-binary-search Avoid 'possible loss of data' casting in binary search
2021-01-27Merge pull request #5299 from shuujii/fix-Use-MRB_SYM-for-error-class-retrievalYukihiro "Matz" Matsumoto
Fix "Use `MRB_SYM()` for error class retrieval"; ref 2ddfd50df
2021-01-27Avoid 'possible loss of data' casting in binary searchKOBAYASHI Shuji
Because it may not be expected result. example: https://wandbox.org/permlink/F5Mp7IEJ1VY3CFLp
2021-01-27Fix "Use `MRB_SYM()` for error class retrieval"; ref 2ddfd50dfKOBAYASHI Shuji
The new macro (`MRB_E_SYM`) was not being used, so it is being used. Also `MRB_E_SYM` is confusing with `MRB_SYM_E`, so change it to `MRB_ERROR_SYM`.
2021-01-26Adjust spaces after list markers.Yukihiro "Matz" Matsumoto
2021-01-26Revert "Fix the wrong directory `host-bin` to `host/bin`."Yukihiro "Matz" Matsumoto
This reverts commit 34f82f24e941f36edc8d947a8a9300631b3121ff. Ref #5282
2021-01-26Clarify that contributors agree with MIT license in `CONTRIBUTING.md`.Yukihiro "Matz" Matsumoto
2021-01-26Update `doc/mruby3.md`.Yukihiro "Matz" Matsumoto
2021-01-26Add `doc/symbols.md`. [ci skip]Yukihiro "Matz" Matsumoto
To describe how to use symbols, especially preallocated symbols from C.
2021-01-26Change `mruby-config` to print usage on invalid arguments.Yukihiro "Matz" Matsumoto
Or no argument at all.
2021-01-26Fix the wrong directory `host-bin` to `host/bin`.Yukihiro "Matz" Matsumoto
Where `mruby-config` command should be generated.
2021-01-26Use `MRB_SYM()` for error class retrieval; ref #5277Yukihiro "Matz" Matsumoto
Note that `MRB_SYM()` is only available when `mruby/presym.h` is included. Use `mrb_intern_lit()` otherwise.
2021-01-26Revert "Minimize the changes in #5277"Yukihiro "Matz" Matsumoto
This reverts commit dc51d89ac22acc60b9bfeed87115863565b74085.
2021-01-25Silence 'loss of data' warnings in `symbol.c`.Yukihiro "Matz" Matsumoto
2021-01-25Merge pull request #5297 from hasumikin/fix-typo-in-rite-binary-headerYukihiro "Matz" Matsumoto
Fix TYPO and checking minor version in RITE BINARY HEADER
2021-01-25fix comparison of minor versionHASUMI Hitoshi
2021-01-25fix TYPO in RITE BINARY HEADERHASUMI Hitoshi
2021-01-25Silence 'loss of data' warnings.Yukihiro "Matz" Matsumoto
2021-01-25Fix a bug for the case `frexp()` return `Infinity`.Yukihiro "Matz" Matsumoto
2021-01-25Should use a limit for 32 bit platform; ref 05a8cc44Yukihiro "Matz" Matsumoto
2021-01-25Add description for `mruby-config` in `compile.md`. [ci skip]Yukihiro "Matz" Matsumoto
For easier compiling and linking of the application embedding `mruby`
2021-01-24Define `RAT_INT_LIMIT` for 32 bit platforms.Yukihiro "Matz" Matsumoto
2021-01-24Prohibit `r` suffix after scientific notation (e.g. `1e10`).Yukihiro "Matz" Matsumoto
As CRuby does.
2021-01-24Detect integer overflow in `rational_new_f()`.Yukihiro "Matz" Matsumoto
2021-01-23Remove test debug lines in fallback `presym.inc`Yukihiro "Matz" Matsumoto
ref dc51d89ac22
2021-01-23Fixed typo; ref #5296Yukihiro "Matz" Matsumoto
2021-01-23Merge pull request #5296 from yevgenko/patch-1Yukihiro "Matz" Matsumoto
Fix typo
2021-01-23Fix typoYevhen Viktorov
2021-01-22Minimize the changes in #5277Yukihiro "Matz" Matsumoto
Instead of including `mruby/presym.h` everywhere, we provided the fallback `mruby/presym.inc` under `include/mruby` directory, and specify `-I<build-dir>/include` before `-I<top-dir>/include` in `presym.rake`. So even when someone drops `-I<build-dir>/include` in compiler options, it just compiles without failure.
2021-01-21Reduce size of `mrb_callinfo` by rearranging members.Yukihiro "Matz" Matsumoto
From 48 bytes to 40 bytes on 64 bit platforms (unchanged on 32 bit).
2021-01-21Merge branch 'shuujii-avoid-including-presym.inc-in-existing-header-files'Yukihiro "Matz" Matsumoto
2021-01-21Merge branch 'avoid-including-presym.inc-in-existing-header-files' of ↵Yukihiro "Matz" Matsumoto
https://github.com/shuujii/mruby into shuujii-avoid-including-presym.inc-in-existing-header-files
2021-01-21Fix a bug that `:_1` to cause syntax error; fix #5295Yukihiro "Matz" Matsumoto
2021-01-21Better error messages with yacc tokens.Yukihiro "Matz" Matsumoto
2021-01-21Silence gcc warning from `strncpy()`.Yukihiro "Matz" Matsumoto
2021-01-20Remove CRC16 from dumped mruby binary.Yukihiro "Matz" Matsumoto
`calc_crc_16_ccitt()` consumes a lot of clock cycles in programs like `mrbtest` which loads a lot of dumped binary. Error detection for flaky channels should be done in the higher level. Note: `mruby/c` should be updated to support this change.
2021-01-19Compile `mruby-bin-debugger` with `ci/gcc-clang.rb`.Yukihiro "Matz" Matsumoto
2021-01-18Merge pull request #5294 from ↵Yukihiro "Matz" Matsumoto
shuujii/fix-that-Hash-may-not-contain-any-empty-buckets Fix that Hash may not contain any empty buckets
2021-01-18Fix that Hash may not contain any empty bucketsKOBAYASHI Shuji
The Hash implementation assumed that there were always empty buckets, but sometimes there were only active or deleted buckets (no empty buckets). Therefore, fix it so that this situation does not occur. ### Example ```ruby # example.rb class A attr_reader :v def initialize(v) @v = v end def ==(o) @v == o.v end def hash; @v end def to_s; "#{self.class}[#{@v}]" end alias eql? == alias inspect to_s end keys = (0..31).map{A.new(_1)} h = {} (0..16).each{h[keys[_1]] = _1} (17..31).each do k = keys[_1] h[k] = _1 h.delete(k) end p h.keys ``` #### Before this patch: ```console $ bin/mruby example.rb [A[0], A[1], A[2], A[3], A[4], A[5], A[6], A[7], A[8], A[9], A[10], A[11], A[12], A[13], A[14], A[15], A[16], A[30], A[31]] ``` #### After this patch: ```console $ bin/mruby example.rb [A[0], A[1], A[2], A[3], A[4], A[5], A[6], A[7], A[8], A[9], A[10], A[11], A[12], A[13], A[14], A[15], A[16]] ```
2021-01-18Merge pull request #5293 from dearblue/fix-5272.2Yukihiro "Matz" Matsumoto
Fix build error for mruby-bin-debugger
2021-01-18Fix build error for mruby-bin-debuggerdearblue
This is a missing change in #5272. This issue was reported by @shuujii. https://github.com/mruby/mruby/pull/5272#issuecomment-761819737
2021-01-17Add tests for `Integer#quo` and `Float#quo`; #5268Yukihiro "Matz" Matsumoto
2021-01-17Fix `int_quo` to do float division; fix #5268Yukihiro "Matz" Matsumoto
2021-01-17Define `Rational#quo`; fix #5268Yukihiro "Matz" Matsumoto
2021-01-17Make `mrb_to_flo()` to convert objects, not integer, not float; #5268Yukihiro "Matz" Matsumoto
Thinking `Ratinal` and `Complex` in mind.
2021-01-16Merge pull request #5292 from dearblue/objspace-memsizeYukihiro "Matz" Matsumoto
Fix NULL pointer dereference with mruby-os-memsize and mruby-method