summaryrefslogtreecommitdiffhomepage
path: root/mrbgems
AgeCommit message (Collapse)Author
2020-10-12Use more `MRB_QSYM()`.Yukihiro "Matz" Matsumoto
2020-10-12Add `mruby-bin-config` to `default.gembox`.Yukihiro "Matz" Matsumoto
2020-10-12Use `MRB_QSYM()` instead of `MRB_OPSYM()`.Yukihiro "Matz" Matsumoto
2020-10-12Use `MRB_OPSYM()` instead of `mrb_intern_lit()`.Yukihiro "Matz" Matsumoto
2020-10-12Update `host*` targets to use `default.gembox`.Yukihiro "Matz" Matsumoto
And now `default.gembox` includes `mruby-socket` gem.
2020-10-12Avoid changing directory in `mruby-io` testKOBAYASHI Shuji
2020-10-12Should not use `assert` with expressions with side-effect; ref #4981Yukihiro "Matz" Matsumoto
`assert()` can be completely removed when `NDEBUG` is set.
2020-10-12Fixed wrong condition in #4981.Yukihiro "Matz" Matsumoto
2020-10-12Avoid `snprintf` in `mruby-io` test; ref #4981Yukihiro "Matz" Matsumoto
2020-10-12Remove the temporary file from the `AF_UNIX` socket test; #4981Yukihiro "Matz" Matsumoto
2020-10-12Add `MRB_SYM()` for inline symbols.Yukihiro "Matz" Matsumoto
2020-10-12fix improper test of Range#mintaiyoslime
2020-09-25Prohibit string changes by "s"/"z" specifier of `mrb_get_args()`dearblue
- The `s` specifier is a string pointer obtained without performing `mrb_str_modify()`, so it cannot be changed. - The `z` specifier cannot be changed because it is a string pointer obtained by `RSTRING_CSTR()` which returns `const char *`.
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-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-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-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-04Fix wrong condition for `PACK_DIR_HEX`; ref #5057Yukihiro "Matz" Matsumoto
2020-08-03Should not decrement `count` when `PACK_FLAG_COUNT2`; fix #5057Yukihiro "Matz" Matsumoto
2020-07-31Fix `puts` in `mruby-print` on no argument; 0e9bd24Yukihiro "Matz" Matsumoto
`puts` should print newline when called without arguments.
2020-07-26Update document for `ObjectSpace.memsize_of` [ci skip]dearblue
The `recurse` keyword is removed by f00657ead7c3e5f6f9a346d7797a280b5c9f02fa.
2020-07-24Merge pull request #5045 from dearblue/memsize_ofYukihiro "Matz" Matsumoto
Improve `mruby-os-memsize`
2020-07-24Avoid using FPU with `mruby-os-memsize`; ref #5032dearblue
And, in the calculation of the instance variable size, the fraction was always rounded down because of division of integers, so fix it. At the same time, test items that are no longer passed due to this change are deleted.
2020-07-24Support without `mruby-method` for `mruby-os-memsize`; ref #5032dearblue
2020-07-24Add NUL terminator to string object size calculation; ref #5032dearblue
2020-07-23`ObjectSpace.count_objects` to support `MRB_TT_ISTRUCT`; #5046Yukihiro "Matz" Matsumoto
2020-07-22Fix `puts` to print newline with empty strings; ref b184772Yukihiro "Matz" Matsumoto
2020-07-22Fixed garbled characters; ref #5041dearblue
2020-07-21Remove unnecessory methods in `mruby-objectspace`; ref #5041dearblue
The `ObjectSpace#memsize_of` and `ObjectSpace#memsize_of_all` in `mruby-objectspace` ware migrated to `mruby-os-memsize` mrbgem.
2020-07-20Implement `Kernel#print` and `Kernel#puts` in C.Yukihiro "Matz" Matsumoto
2020-07-19Separate `memsize_of` and `memsize_of_all` to a separate gem; #5040Rory OConnell
Those methods are originally CRuby specific. Co-authored-by: Yukihiro "Matz" Matsumoto <[email protected]>
2020-07-20Remove some tests from `mruby-objectspace` gem; #5040Yukihiro "Matz" Matsumoto
Those tests succeeds only on some configuration.
2020-07-20Avoid accessing `obj.tt` of `mrb_value`; #5040Yukihiro "Matz" Matsumoto
The old code compiles only on `MRB_NO_BOXING`.
2020-07-20Replace 0 by `MRB_EACH_OBJ_OK`; #5040Yukihiro "Matz" Matsumoto
2020-07-19Skip `MRB_TT_FREE` and `MRB_TT_BREAK` in `each_object`.Yukihiro "Matz" Matsumoto
2020-07-19Reorder members of `struct os_each_object_data` to stop warnings.Yukihiro "Matz" Matsumoto
`mrb_value` may or may not be struct according to configuration.
2020-07-19Should have updated the arg spec for `memsize_of`&`memsize_of_all`; #5040Yukihiro "Matz" Matsumoto
2020-07-19Use `c` specifier for `mrb_get_args`.Yukihiro "Matz" Matsumoto
2020-07-19Fix `memsize_of_all` to count all objects if no argument given; #5040Yukihiro "Matz" Matsumoto
2020-07-19Fix `memsize_of_all` to count memory of subclass instances; #5040Yukihiro "Matz" Matsumoto
`ObjectSpace.memsize_of_all` takes a class and count memory size of all instances of the class and its subclasses (if any).
2020-07-18Avoid singleton classes with mrb_class_realRory O'Connell
2020-07-17Adding memsize_of_all docRory OConnell