KOBAYASHI Shuji
e2604c1550
Avoid using mrb_str_to_cstr if possible
...
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.
2019-05-06 23:32:53 +09:00
Yukihiro "Matz" Matsumoto
5b304c156c
On Windows, _S_IREAD and _S_IWRITE is defined in sys/stat.h.
2017-12-14 01:19:44 +09:00
Yukihiro "Matz" Matsumoto
7ac39333b5
Use _open and _close on Windows.
2017-12-14 01:19:21 +09:00
Yasuhiro Matsumoto
e7e5db51de
fix mkstemp implementation for MSVC
2017-12-14 00:43:38 +09:00
Yasuhiro Matsumoto
6123d653b7
fix crash bug on Windows
2017-12-13 12:48:26 +09:00
Yasuhiro Matsumoto
e0e23b1765
close file descriptors
2017-12-13 00:18:02 +09:00
Yasuhiro Matsumoto
7c8c9f9532
mingw have mkstemp
2017-12-13 00:08:10 +09:00
Yasuhiro Matsumoto
7ff907f680
fix test
2017-12-13 00:07:51 +09:00
Hiroshi Mimaki
5ef8f18e9b
Fixed mruby-io test failure on Windows platform.
2017-12-12 16:57:13 +09:00
Hiroshi Mimaki
7f3bda5653
Fixed compile error of mruby-io gem on MinGW.
2017-12-08 12:58:26 +09:00
Yukihiro "Matz" Matsumoto
f9d1d72217
Avoid VC++ reserved word template.
2017-12-08 09:55:55 +09:00
Yukihiro "Matz" Matsumoto
6ebcb7417a
AppVeyor compile errors resolution.
2017-12-08 09:37:50 +09:00
Yukihiro "Matz" Matsumoto
9df7bceb15
AppVeyor compiler does not proved some POSIX functions.
...
- `mode_t` by `int`
- `umask` by `_umask`
- `rmdir` by `_rmdir`
- `mkstemp` and `mkdtemp` by using `_mktemp`
2017-12-08 09:19:59 +09:00
Yukihiro "Matz" Matsumoto
d75266dd1b
Add 'mrbgems/mruby-io/' from commit '3c8e1f94c44252c836f79a48bb17726da28e2756'
...
git-subtree-dir: mrbgems/mruby-io
git-subtree-mainline: 10ed730e4b
git-subtree-split: 3c8e1f94c4
2017-12-07 18:11:06 +09:00