summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2020-09-18Merge pull request #5082 from wataash/remove-type-checkYukihiro "Matz" Matsumoto
Remove redundant type-check
2020-09-18Remove redundant type-checkWataru Ashihara
since mrb_str_to_str() also does it.
2020-09-17Merge pull request #5081 from wataash/d-format-commentYukihiro "Matz" Matsumoto
*.d format is version-independent
2020-09-17Merge pull request #5080 from wataash/fix-dep-readYukihiro "Matz" Matsumoto
Fix skipping reading file
2020-09-17*.d format is version-independentWataru Ashihara
As pointed out by @shuujii on https://github.com/mruby/mruby/pull/5079 , multi-path in single-line could be appear even with older-gcc or clang.
2020-09-17Fix skipping reading fileWataru Ashihara
2020-09-17Merge pull request #5079 from wataash/fix-dep-parseYukihiro "Matz" Matsumoto
Fix *.d parsing with gcc 9.3.0
2020-09-17Fix *.d parsing with gcc 9.3.0Wataru Ashihara
Before this commit: $ rake ... $ rm build/host/src/gc.o $ rake rake aborted! Don't know how to build task '/home/foo/mruby/build/host/src/gc.o' (See the list of available tasks with `rake --tasks`) ... After this commit: $ rake ... $ rm build/host/src/gc.o $ rake CC src/gc.c -> build/host/src/gc.o ... With gcc 9.3.0 on Ubuntu 20.04, build/host/src/array.d looks like: /build/host/src/array.o: /src/array.c \ /include/mruby.h /include/mrbconf.h \ /include/mruby/common.h \ ... /include/mruby/range.h \ /src/value_array.h and it has been parsed to: [ # /src/array.c missing "/include/mruby.h /include/mrbconf.h", # incorrectly parsed "/include/mruby/common.h", ... "/src/value_array.h", ] After this change, *.d will be parsed correctly. [ "/src/array.c", "/include/mruby.h", "/include/mrbconf.h", "/include/mruby/common.h", ... "/src/value_array.h", ]
2020-09-13Fix `File.extname` bug; fix #5077Yukihiro "Matz" Matsumoto
2020-09-13Add test to ensure #5077Yukihiro "Matz" Matsumoto
2020-09-10Update `y.tab.c`; ref #4933Yukihiro "Matz" Matsumoto
2020-09-10Merge pull request #4933 from dearblue/variablesYukihiro "Matz" Matsumoto
Fix take over file scope variables with `mruby` and `mirb` command
2020-09-07Merge pull request #5076 from dearblue/call_typeYukihiro "Matz" Matsumoto
Remove `enum call_type`
2020-09-03Remove `enum call_type`dearblue
It seems to be unnecessary from mruby-1.0.0 or earlier.
2020-08-30Fix `mrb_ary_splat()` to copy the array always.Yukihiro "Matz" Matsumoto
2020-08-29Merge pull request #5068 from sizious/mingw32-legacy-fixesYukihiro "Matz" Matsumoto
mruby-io: Fixing compilation issue under the legacy MinGW environment
2020-08-29Fix the bug caused by `to_a` returning a frozen array.Yukihiro "Matz" Matsumoto
Reported by @shuujii.
2020-08-29Fix a bug introduced by the last commit.Yukihiro "Matz" Matsumoto
Should have handled the case `to_a` returns `nil`.
2020-08-29mruby-io: Fixing compilation issue under the legacy MinGW environmentSiZiOUS
Adding MRB_MINGW32_LEGACY in common.h in order to identify the legacy MinGW environment (i.e. NOT to be confused with MinGW-w64). For more info about MinGW defined macros, see: https://sourceforge.net/p/predef/wiki/Compilers/
2020-08-29Fix `mrb_obj_ceqq` to avoid array copying.Yukihiro "Matz" Matsumoto
2020-08-29Fix `mrb_ary_splat` to copy the array; fix #5067Yukihiro "Matz" Matsumoto
2020-08-12Merge pull request #5065 from ↵Yukihiro "Matz" Matsumoto
shuujii/simplify-MSVC-detection-to-mrb_static_assert Simplify MSVC detection to `mrb_static_assert`
2020-08-12Simplify MSVC detection to `mrb_static_assert`KOBAYASHI Shuji
2020-08-11Merge pull request #5062 from ↵Yukihiro "Matz" Matsumoto
shuujii/use-normal-static_assert-in-mrb_static_assert-as-much-as-possible Use normal `static_assert` in `mrb_static_assert` as much as possible
2020-08-11Merge pull request #5063 from dearblue/stat32Yukihiro "Matz" Matsumoto
Use `struct _stat32` instead of `struct __stat32`
2020-08-11Use `struct _stat32` instead of `struct __stat32`dearblue
It is described as `struct __stat32` in the MSVC reference manual. https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/stat-functions?view=vs-2019 But it doesn't really exist, so it must use `struct _stat32`. It also replaces `struct __stat64` with `struct _stat64` to make it look nicer.
2020-08-11Use normal `static_assert` in `mrb_static_assert` as much as possibleKOBAYASHI Shuji
* `_Static_assert` can also be used with `-std=gnu99` on GCC >= 4.6. * `static_assert` can be used on MSVC. * `static_assert` can be used even on old G++/Clang++ if `__GXX_EXPERIMENTAL_CXX0X__` is defined.
2020-08-11Fixed VC `fstat` issue.Yukihiro "Matz" Matsumoto
2020-08-11Should use `_fstat32()` on 32bit Windows.Yukihiro "Matz" Matsumoto
2020-08-11Add cast for `mrb_fixnum_value()` from `time_t`.Yukihiro "Matz" Matsumoto
2020-08-11Fix `mrb_int` and `size_t` combination warnings.Yukihiro "Matz" Matsumoto
2020-08-10Avoid using `mrb_funcall()` from `mruby-io` gem.Yukihiro "Matz" Matsumoto
2020-08-09Remove duplicated definition of `E_EOF_ERROR`.Yukihiro "Matz" Matsumoto
2020-08-09Merge pull request #5061 from ↵Yukihiro "Matz" Matsumoto
shuujii/allow-mrb_static_assert-to-be-used-outside-of-functions Allow `mrb_static_assert()` to be used outside of functions
2020-08-09Allow `mrb_static_assert()` to be used outside of functionsKOBAYASHI Shuji
The use of `struct` is an idea by @dearblue.
2020-08-08Return `NaN` for `0/0`; d8e060dYukihiro "Matz" Matsumoto
2020-08-08Should not use `mrb_float_value()` with `MRB_WITHOUT_FLOAT`.Yukihiro "Matz" Matsumoto
2020-08-08Reintroduce `mrb_static_assert`; #5051Yukihiro "Matz" Matsumoto
Note that the home brew version of `mrb_static_assert` only works within the function body. This reverts commit 8f99689.
2020-08-07Avoid `division by zero` undefined behavior.Yukihiro "Matz" Matsumoto
2020-08-06Merge pull request #5059 from mruby/stableYukihiro "Matz" Matsumoto
Merge mruby 2.1.2
2020-08-06Merge master.Hiroshi Mimaki
2020-08-06Use `memcpy` to copy stack.Yukihiro "Matz" Matsumoto
2020-08-06Use `memset()` to clear stack unless `MRB_NAN_BOXING`.Yukihiro "Matz" Matsumoto
2020-08-06Remove block clear of `callinfo`.Yukihiro "Matz" Matsumoto
2020-08-06Remove `mrb_static_assert` from the core; #5051Yukihiro "Matz" Matsumoto
2020-08-06Update release date.2.1.2Hiroshi Mimaki
2020-08-05Merge pull request #5052 from dearblue/cistacksYukihiro "Matz" Matsumoto
Extend the `cipush()` and `cipop()` functions
2020-08-05Merge pull request #5058 from dearblue/benchmarkYukihiro "Matz" Matsumoto
Improve `rake benchmark`
2020-08-04Improve `rake benchmark`dearblue
- Use POSIX format instead of GNU extension for `time` command. For example FreeBSD's `time(1)` does not have GNU extensions available. - Sort `benchmark/bm_*.rb`. This is because the order of the bar graph cannot be uniquely determined depending on the result of `Dir.glob`.
2020-08-04Fix wrong condition for `PACK_DIR_HEX`; ref #5057Yukihiro "Matz" Matsumoto