summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2018-06-14Resolve sign comparison warning; ref #4044Yukihiro "Matz" Matsumoto
2018-06-14Merge pull request #4044 from iij/fixes-from-iij-socketTomoyuki Sahara
incorporate fixes from iij/socket
2018-06-14sa_family_t is not defined on windows.Tomoyuki Sahara
2018-06-14set sockaddr_un.sun_len on the systems that have sockaddr.sa_len.Tomoyuki Sahara
If your system has sa_len but is not BSD-derived, define HAVE_SA_LEN=1 on mrbgem.rake or build_config.rb.
2018-06-14struct sockaddr_un can be truncated.Tomoyuki Sahara
When we have "struct sockaddr_un *s_un", we could not assume *s_un points to a memory region which size is at least sizeof(*s_un). Even worse, it may be shorter than sizeof(struct sockaddr) on some systems.
2018-06-14struct sockaddr_un can be shorter than struct sockaddr.Tomoyuki Sahara
ref: https://github.com/iij/mruby-socket/issues/45
2018-06-14Restore GC arena after raised exceptions; ref #4042Yukihiro "Matz" Matsumoto
2018-06-14Need to add a write barrier for ranges; fix #4042Yukihiro "Matz" Matsumoto
Ranges are almost immutable but `initialize` and `initialize_copy` modify the receiver so that we need to add a write barrier.
2018-06-14Check for switching to uninitialized fiber; fix #4041Yukihiro "Matz" Matsumoto
The problem was caused by `Fiber.current.resume'.
2018-06-14Merge pull request #4043 from take-cheeze/fix_test_depYukihiro "Matz" Matsumoto
Fix unnecessary rebuild of tests.
2018-06-13Fix unnecessary rebuild of tests.take-cheeze
2018-06-11Revert "No longer need to insert write barriers for fibers."Yukihiro "Matz" Matsumoto
This reverts commit c6736357a72049a0eb2a31ccabcc3cd2baba7c9e. The assumption was wrong and caused the issue; fix #4020
2018-06-11Retrieve `b` operand from the instruction (for debugging); ref #4020Yukihiro "Matz" Matsumoto
2018-06-08`mrb_class_real()` did not work for `BasicObject`; fix #4037Yukihiro "Matz" Matsumoto
2018-06-07Allow `Object#clone` to copy frozen status only; fix #4036Yukihiro "Matz" Matsumoto
Copying all flags from the original object may overwrite the clone's flags e.g. the embedded flag.
2018-06-07Merge pull request #4035 from katzer/patch-1Yukihiro "Matz" Matsumoto
[mruby-socket] Declare inet_ntop and inet_pton as static
2018-06-07Merge pull request #4039 from i110/i110/fix-broken-lexical-variablesYukihiro "Matz" Matsumoto
fix broken lexical variables
2018-06-07Extend stack when pushing arguments that does not fit in; fix #4038Yukihiro "Matz" Matsumoto
2018-06-07Export `stack_extend` function (renamed `mrb_stack_extend`); fix #3219Yukihiro "Matz" Matsumoto
This change is required to support #4038.
2018-06-06add test for evalIchito Nagata
2018-06-06Revert "Fix heap use after free on mruby-aws-sigv4."Ichito Nagata
This reverts commit b8869498b7b1458af1cf2a5ccc7644849f826230.
2018-06-05Declare inet_ntop and inet_pton as static Sebastián Katzer
To avoid conflicts with multiple definitions of inet_ntop and inet_pton if compiled with # define _WIN32_WINNT _WIN32_WINNT_VISTA C:/mingw-w64/x86_64-7.2.0-posix-seh-rt_v5-rev1/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libWs2_32.a(dghfs00169.o):(.text+0x0): multiple definition of `inet_pton' 722C:/projects/iss/mruby/build/host/lib/libmruby.a(socket.o):C:/projects/iss/mruby/mrbgems/mruby-socket/src/socket.c:80: first defined here define _WIN32_WINNT _WIN32_WINNT_VISTA
2018-06-04Let inspect recursion do the right thingIchito Nagata
2018-06-03Merge pull request #4033 from i110/i110/fix-envadjustYukihiro "Matz" Matsumoto
fix env->stack misadjusting: fix #4029
2018-06-03fix env->stack misadjustingIchito Nagata
2018-06-01Instead of defining `Hash#dup`, we should define `Hash#initialize_copy`.Yukihiro "Matz" Matsumoto
`Hash#clone` did not work properly; fix #4030
2018-06-01The `clone` method should copy object status (e.g. frozen) too; #4030Yukihiro "Matz" Matsumoto
2018-06-01Merge pull request #4031 from i110/i110/hash_defaultYukihiro "Matz" Matsumoto
let Hash#merge keep ifnone value
2018-06-01let Hash#merge keep ifnone valueIchito Nagata
2018-05-30Should not call `initialize_copy` for `TT_ICLASS`; fix #4027Yukihiro "Matz" Matsumoto
Since `TT_ICLASS` is a internal object that should never be revealed to Ruby world.
2018-05-30Clear `__classname__` of duped class/module; ref #4027Yukihiro "Matz" Matsumoto
2018-05-23Check if the exception is frozen; fix #4025Yukihiro "Matz" Matsumoto
`exc_debug_info()` and `mrb_keep_backtrace()` raise `FrozenError` if the exception is frozen and lead to infinite loop.
2018-05-23Add `then` alias to `yield_self`.Yukihiro "Matz" Matsumoto
`then' was added in CRuby 2.6.
2018-05-11Merge pull request #4023 from iwamatsu/fix-upstreamYukihiro "Matz" Matsumoto
Fix test of mruby-pack with big-endian CPUs
2018-05-10Fix test of mruby-pack with big-endian CPUsNobuhiro Iwamatsu
When running the mruby-pack test with big endian, test data is incorrect, so it will fail with "i" and "I". ------ Fail: pack/unpack "i" (mrbgems: mruby-pack) - Assertion[1] Failed: Expected to be equal Expected: "\xff\xff\xc7\xcf" Actual: "\xff\xff\xcf\xc7" - Assertion[2] Failed: Expected to be equal Expected: [-12345] Actual: [-14385] Fail: pack/unpack "I" (mrbgems: mruby-pack) - Assertion[1] Failed: Expected to be equal Expected: "\x00\x0090" Actual: "\x00\x0009" - Assertion[2] Failed: Expected to be equal Expected: [12345] Actual: [14640] ------ This will fix the test data at big-endian. Signed-off-by: Nobuhiro Iwamatsu <[email protected]>
2018-05-09Merge pull request #4022 from mimaki/mruby-r-optionYukihiro "Matz" Matsumoto
Add `-r` option for `mruby` and `mirb`. (mrbgem is not supported)
2018-05-08Fix CI build errors and warnings.Hiroshi Mimaki
2018-05-07Add `-r` option for `mruby` and `mirb`.Hiroshi Mimaki
2018-05-07Merge pull request #4017 from mimaki/mruby-d-optionYukihiro "Matz" Matsumoto
Add `-d` option for `mruby` and `mirb`.
2018-05-07Fix CI build errors and warnings.Hiroshi Mimaki
2018-05-03`env` referred from top-level callinfo should not be unshared; fix #4019Yukihiro "Matz" Matsumoto
Because `mirb` keeps top-level environment across each iteration.
2018-05-02Need to call `mrb_str_modify()` in `mrb_str_cat_str()`; fix #4018Yukihiro "Matz" Matsumoto
If `str` and `str2` are the same string object `str->ptr` may be rewritten by `mrb_str_modify()`.
2018-05-02Add `-d` option for `mruby` and `mirb`.Hiroshi Mimaki
2018-05-01Update `MRB_FLO_TO_STR_FMT` to "%.16g"; fix #4016Yukihiro "Matz" Matsumoto
2018-05-01Check the return value from `mrb_get_datatype()`; fix #4009Yukihiro "Matz" Matsumoto
The return value (void*) may be NULL. Avoid using `mrb_get_datatype()` directly and use `io_get_open_fptr()` instead.
2018-05-01Fix stack position in multiple assignment; fix #4008Yukihiro "Matz" Matsumoto
This was caused by a patch from #2684.
2018-04-28Update `OP_APOST` description; ref #4008Yukihiro "Matz" Matsumoto
2018-04-28Fix broken support of `MRB_WITHOUT_FLOAT`; fix #4015Yukihiro "Matz" Matsumoto
2018-04-28Update the patch to not use `funcall` in C; ref #4013Yukihiro "Matz" Matsumoto
2018-04-28Fix Enumerable#hash on non 32-bit integer conf.kimu_shu