Hiroshi Mimaki
f9d113f764
Update release date.
2.1.1
2020-06-04 17:20:46 +09:00
Yukihiro "Matz" Matsumoto
5e01674b72
Should not use assert with expressions with side-effect; ref #4981
...
`assert()` can be completely removed when `NDEBUG` is set.
2.1.1-rc2
2020-05-07 09:37:02 +09:00
Yukihiro "Matz" Matsumoto
b652a4ff14
Fixed wrong condition in #4981 .
2020-05-07 09:36:43 +09:00
Yukihiro "Matz" Matsumoto
7dc0fe66c7
Add #include <string.h> on all platforms for strncpy; #4981
2020-05-07 09:36:21 +09:00
Yukihiro "Matz" Matsumoto
1cdcd00cc0
Remove unused local variable if MRB_UTF8_STRING is not set.
...
Ref #4982 #4983
2020-05-07 09:35:47 +09:00
Yukihiro "Matz" Matsumoto
9f4b5227fe
Avoid snprintf in mruby-io test; ref #4981
2020-05-07 09:33:44 +09:00
Yukihiro "Matz" Matsumoto
d464fe5003
Remove the temporary file from the AF_UNIX socket test; #4981
2020-05-07 09:33:08 +09:00
Yukihiro "Matz" Matsumoto
6b839b2319
Fix IO#readchar to return broken UTF-8 rather than EOF error.
...
The behavior is different from CRuby, but we believe this is a right
behavior for mruby, which only supports either ASCII or UTF-8
exclusively; fix #4983 , ref #4982
```
$ printf '\xe3\x81' | ruby -e 'p STDIN.readchar'
"\xE3\x81"
```
```
$ printf '\xe3\x81' | mruby -e 'p STDIN.readchar'
"\xE3"
```
2020-05-07 09:32:46 +09:00
Yukihiro "Matz" Matsumoto
45bd372755
Fix IO#readchar to support UTF-8 char reading; fix #4712
...
This fix only effective when `MRB_UTF8_STRING` is set.
2020-05-07 09:31:38 +09:00
Yukihiro "Matz" Matsumoto
f5ee7df7f3
Rename (and expose) UTF-8 related functions; ref #4712
...
- mrb_utf8len() - returns the size of a UTF-8 char (in bytes)
- mrb_utf8_strlen() - returns the length of a UTF-8 string (in char)
2020-05-07 09:31:07 +09:00
Yukihiro "Matz" Matsumoto
e77e6e9d12
Fix _read_buf to be more efficient; fix #4982
...
The bug was introduced by #4712 . The `getc' problem resurrected.
It should be addressed soon.
2020-05-01 16:57:45 +09:00
Yukihiro "Matz" Matsumoto
a2b87c033a
Fix IO#sysread to update buffer string on EOF; ref #4982
2020-05-01 16:54:13 +09:00
Yukihiro "Matz" Matsumoto
b3c5d94bd1
Update IO#ungetc to keep @buf string; ref #4982
2020-05-01 16:53:55 +09:00
Yukihiro "Matz" Matsumoto
d029549c2f
Fix UTF-8 boundary check; ref #4982
2020-05-01 16:53:25 +09:00
Uchio Kondo
6e13467ce8
Fix typo and include location
2020-05-01 16:52:11 +09:00
Uchio Kondo
508ac2030e
Skip socket check on windows
2020-05-01 16:51:47 +09:00
Uchio Kondo
4b81bce48d
Follow C90 style
2020-05-01 16:51:22 +09:00
Uchio Kondo
3486675e00
Test mruby-io in tmpdir when AF_UNIX cannot be created on cwd
2020-05-01 16:50:54 +09:00
Hiroshi Mimaki
3d46f1b620
Update version to 2.1.1. (mruby 2.1.1 RC)
2.1.1-rc
2020-04-10 13:05:23 +09:00
Yukihiro "Matz" Matsumoto
63c7ff341a
Merge pull request #4965 from mimaki/remove-cygwin_filename
...
Merged `cygwin_filename()` into `filename()`.
2020-04-08 22:40:49 +09:00
mimaki
a8ab74a6dc
Merged cygwin_filename() into filename() because Cygwin pathnames are in UNIX format.
2020-04-08 13:27:14 +09:00
Yukihiro "Matz" Matsumoto
7ab5353f80
Merge pull request #4960 from Reckordp/BuildAndroid
...
Validate windows by Dir testing
2020-04-05 14:17:09 +09:00
Reckordp
d7df30bdd8
Unused library folder
2020-04-04 21:57:13 +07:00
Reckordp
d317ee144b
Correct naming file from Mingw
2020-04-04 21:56:40 +07:00
Yukihiro "Matz" Matsumoto
3cef380b20
Revert part of #4959
...
To prevent infinite loop on errors; reported by @shuujii
2020-04-04 11:50:59 +09:00
Reckordp
707933aa8e
Helper for link window's library
2020-04-03 20:34:00 +07:00
Yukihiro "Matz" Matsumoto
068b16a352
Merge pull request #4959 from dsisnero/master
...
build when directories and files have spaces
2020-04-02 13:26:53 +09:00
dsisnero
c7ab4cf616
fix for quoting visualcpp
2020-04-01 12:31:48 -06:00
Dominic Sisneros
e3875ae8c5
build when directories and files have spaces
...
Modified the build to quote filenames so that it builds when files have spaces
2020-04-01 11:55:35 -06:00
Yukihiro "Matz" Matsumoto
226fcb4f2a
Avoid unnecessary nextc() recursion.
2020-04-01 23:23:07 +09:00
Yukihiro "Matz" Matsumoto
d22b72a7cc
Merge pull request #4957 from dearblue/excessive-arena
...
Fix `mrb_funcall_with_block()` uses more GC arena
2020-04-01 15:40:25 +09:00
dearblue
15dec83832
Fix mrb_funcall_with_block() uses more GC arena
...
If `mrb->jmp` is `NULL` and the function `mrb_funcall_with_block()` is
called, GC Arena is returned from the function with over-used.
- A normal (no global exodus) return will consume two GC Arena's.
- In the event of an exception, five GC Arena are consumed.
This patch reduces consumption in both cases to one.
2020-03-31 23:24:53 +09:00
Yukihiro "Matz" Matsumoto
5acd802d2b
Merge pull request #4956 from dearblue/null-local_variables
...
Fix NULL pointer dereferences in mrb_local_variables; fix #4955
2020-03-31 22:04:18 +09:00
dearblue
9b15860ddb
Fix NULL pointer dereferences in mrb_local_variables; fix #4955
...
However, the behavior of `#call` on the method object of
`local_variables` is not corrected.
2020-03-30 23:52:59 +09:00
Yukihiro "Matz" Matsumoto
0dacc9a62a
Merge pull request #4954 from dearblue/nostdio
...
Improve configuration guard
2020-03-08 22:37:22 +09:00
dearblue
67606170e3
Add configuration guard for MRB_DISABLE_STDIO
...
ref #4576 and ref #4947
* Need MRBAPI functions without `MRB_DISABLE_STDIO`:
* mrbgems/mruby-bin-debugger
* mrbgems/mruby-bin-mirb
* mrbgems/mruby-bin-mrbc
* mrbgems/mruby-bin-mruby
* mrbgems/mruby-bin-strip
* Need `stdio.h`:
* mrbgems/mruby-io
* mrbgems/mruby-print
* Need `snprintf()` in `stdio.h`:
* mrbgems/mruby-pack
* mrbgems/mruby-sprintf
2020-03-08 21:57:17 +09:00
dearblue
cc1db2d117
Remove unnecessary 'stdio.h'; ref #4947
...
'stdio.h' is included in 'mruby.h' ('mrbconf.h').
However, keep 'stdio.h' used by mruby-test.
2020-03-08 21:42:09 +09:00
dearblue
b3d4ab0cd8
Improve conflict error message of mruby-bin-debugger; ref 87d1b2a91
2020-03-08 20:49:22 +09:00
Yukihiro "Matz" Matsumoto
5bf5a2cc6e
Merge pull request #4953 from Reckordp/BuildAndroid
...
Some rule to CrossBuild Android
2020-03-08 19:07:32 +09:00
Yukihiro "Matz" Matsumoto
e15e6e761e
Merge branch 'master' into BuildAndroid
2020-03-08 19:01:29 +09:00
Yukihiro "Matz" Matsumoto
1cc270f0cc
Small refactoring on #4952
...
Fix the argument of `mrb_file_is_absolute_path()`.
2020-03-08 18:57:49 +09:00
Yukihiro "Matz" Matsumoto
55f3202650
Merge pull request #4952 from Reckordp/master
...
Traditional, UNC, and Drive Path
2020-03-08 18:52:24 +09:00
Reckordp
a8d508c567
Let me in Please
2020-03-08 14:41:38 +07:00
Reckordp
7c85a1ff07
Increase flexibility of CrossBuild
2020-03-08 14:23:55 +07:00
Reckordp
dd6f5e4607
Let me in Please
2020-03-08 11:50:26 +07:00
Reckordp
ab1465d9d5
Traditional, UNC, and Device Is Absolute?
2020-03-08 10:53:18 +07:00
Reckordp
66c44b8568
Commit from remote
2020-03-08 05:40:47 +07:00
Reckordp
6ee24fe1bc
Evaluate all type path
2020-03-08 05:32:27 +07:00
Yukihiro "Matz" Matsumoto
4398bae56a
Merge branch 'dearblue-io-pread-pwrite'
2020-03-07 19:07:13 +09:00
Yukihiro "Matz" Matsumoto
20f9128f73
Small refactoring on #4939
2020-03-07 19:06:46 +09:00