summaryrefslogtreecommitdiffhomepage
path: root/mrbgems
AgeCommit message (Collapse)Author
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
2020-07-17Add ObjectSpace.memsize_of_allRory OConnell
2020-07-17Fix indent of compiler conditions; #5032Yukihiro "Matz" Matsumoto
2020-07-17Fix `memsize_of` to count method table size; #5032Yukihiro "Matz" Matsumoto
Also avoid `mrb_funcall` to minimize VM recursion.
2020-07-17Fix `memsize_of` Fibers; #5032Yukihiro "Matz" Matsumoto
Memory size of a Fiber is calculated by stack size only in CRuby.
2020-07-17Add `const` to `irep` pointer in `os_memsize_of_irep`; #5032Yukihiro "Matz" Matsumoto
2020-07-17Remove recursive `memsize_of`; #5032Yukihiro "Matz" Matsumoto
This is enhancement from CRuby's `memsize_of`. We need to change the CRuby first for the enhancement.
2020-07-17Remove `MRB_TT_DATA` calculation of `memsize_of`; #5032Yukihiro "Matz" Matsumoto
2020-07-17Use `mrb_test` instead of `mrb_obj_eq`; #5032Yukihiro "Matz" Matsumoto
2020-07-17Fix `memsize_of` for fiber objects; #5032Yukihiro "Matz" Matsumoto
2020-07-17Fix `memsize_of` for string objects; #5032Yukihiro "Matz" Matsumoto
2020-07-17Merge pull request #5032 from RoryO/add-objspace-memsize-ofYukihiro "Matz" Matsumoto
Add ObjectSpace.memsize_of
2020-07-15mrb_ prefix conventionRory O'Connell
2020-07-14Clarify memsize_of documentationRory O'Connell