summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-io/test/mruby_io_test.c
AgeCommit message (Collapse)Author
2019-09-26Use type predicate macros instead of `mrb_type` if possibleKOBAYASHI Shuji
For efficiency with `MRB_WORD_BOXING` (implement type predicate macros for all `enum mrb_vtype`).
2019-08-24Create a symbolic link in the temporary directory; fix #4642dearblue
Because the linker gives a warning on FreeBSD 12.0. ``` warning: mktemp() possibly used unsafely; consider using mkstemp() ```
2019-08-18Make symbolic link names unique for testdearblue
2019-08-05Use new specifiers/modifiers of `mrb_vfromat()`KOBAYASHI Shuji
The binary sizes (gems are only `mruby-bin-mruby`) are reduced slightly in my environment than before the introduction of new specifiers/modifiers (5116789a) with this change. ------------+-------------------+-------------------+-------- BINARY | BEFORE (5116789a) | AFTER (This PR) | RATIO ------------+-------------------+-------------------+-------- mruby | 593416 bytes | 593208 bytes | -0.04% libmruby.a | 769048 bytes | 767264 bytes | -0.23% ------------+-------------------+-------------------+-------- BTW, I accidentally changed `tasks/toolchains/visualcpp.rake` at #4613, so I put it back.
2019-05-06Avoid using `mrb_str_to_cstr` if possibleKOBAYASHI Shuji
Because it always allocate new string. Replace with the followings: - Use `RSRING_PTR` if string is guaranteed to be null-terminated. - Use `mrb_string_value_cstr` or `mrb_get_args("z")` if return value isn't modified.
2017-12-14On Windows, `_S_IREAD` and `_S_IWRITE` is defined in `sys/stat.h`.Yukihiro "Matz" Matsumoto
2017-12-14Use `_open` and `_close` on Windows.Yukihiro "Matz" Matsumoto
2017-12-14fix mkstemp implementation for MSVCYasuhiro Matsumoto
2017-12-13fix crash bug on WindowsYasuhiro Matsumoto
2017-12-13close file descriptorsYasuhiro Matsumoto
2017-12-13mingw have mkstempYasuhiro Matsumoto
2017-12-13fix testYasuhiro Matsumoto
2017-12-12Fixed mruby-io test failure on Windows platform.Hiroshi Mimaki
2017-12-08Fixed compile error of `mruby-io` gem on MinGW.Hiroshi Mimaki
2017-12-08Avoid VC++ reserved word `template`.Yukihiro "Matz" Matsumoto
2017-12-08AppVeyor compile errors resolution.Yukihiro "Matz" Matsumoto
2017-12-08AppVeyor compiler does not proved some POSIX functions.Yukihiro "Matz" Matsumoto
- `mode_t` by `int` - `umask` by `_umask` - `rmdir` by `_rmdir` - `mkstemp` and `mkdtemp` by using `_mktemp`
2017-12-07Add 'mrbgems/mruby-io/' from commit '3c8e1f94c44252c836f79a48bb17726da28e2756'Yukihiro "Matz" Matsumoto
git-subtree-dir: mrbgems/mruby-io git-subtree-mainline: 10ed730e4bd921cf4d8fe6f6d2e3cb3f0840f3b7 git-subtree-split: 3c8e1f94c44252c836f79a48bb17726da28e2756