summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2020-06-04Update release date.2.1.1Hiroshi Mimaki
2020-05-07Should not use `assert` with expressions with side-effect; ref #49812.1.1-rc2Yukihiro "Matz" Matsumoto
`assert()` can be completely removed when `NDEBUG` is set.
2020-05-07Fixed wrong condition in #4981.Yukihiro "Matz" Matsumoto
2020-05-07Add `#include <string.h>` on all platforms for `strncpy`; #4981Yukihiro "Matz" Matsumoto
2020-05-07Remove unused local variable if `MRB_UTF8_STRING` is not set.Yukihiro "Matz" Matsumoto
Ref #4982 #4983
2020-05-07Avoid `snprintf` in `mruby-io` test; ref #4981Yukihiro "Matz" Matsumoto
2020-05-07Remove the temporary file from the `AF_UNIX` socket test; #4981Yukihiro "Matz" Matsumoto
2020-05-07Fix `IO#readchar` to return broken UTF-8 rather than `EOF` error.Yukihiro "Matz" Matsumoto
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-07Fix `IO#readchar` to support UTF-8 char reading; fix #4712Yukihiro "Matz" Matsumoto
This fix only effective when `MRB_UTF8_STRING` is set.
2020-05-07Rename (and expose) UTF-8 related functions; ref #4712Yukihiro "Matz" Matsumoto
- 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-01Fix `_read_buf` to be more efficient; fix #4982Yukihiro "Matz" Matsumoto
The bug was introduced by #4712. The `getc' problem resurrected. It should be addressed soon.
2020-05-01Fix `IO#sysread` to update buffer string on `EOF`; ref #4982Yukihiro "Matz" Matsumoto
2020-05-01Update `IO#ungetc` to keep `@buf` string; ref #4982Yukihiro "Matz" Matsumoto
2020-05-01Fix UTF-8 boundary check; ref #4982Yukihiro "Matz" Matsumoto
2020-05-01Fix typo and include locationUchio Kondo
2020-05-01Skip socket check on windowsUchio Kondo
2020-05-01Follow C90 styleUchio Kondo
2020-05-01Test mruby-io in tmpdir when AF_UNIX cannot be created on cwdUchio Kondo
2020-04-10Update version to `2.1.1`. (mruby 2.1.1 RC)2.1.1-rcHiroshi Mimaki
2020-04-08Merge pull request #4965 from mimaki/remove-cygwin_filenameYukihiro "Matz" Matsumoto
Merged `cygwin_filename()` into `filename()`.
2020-04-08Merged `cygwin_filename()` into `filename()` because Cygwin pathnames are in ↵mimaki
UNIX format.
2020-04-05Merge pull request #4960 from Reckordp/BuildAndroidYukihiro "Matz" Matsumoto
Validate windows by Dir testing
2020-04-04Unused library folderReckordp
2020-04-04Correct naming file from MingwReckordp
2020-04-04Revert part of #4959Yukihiro "Matz" Matsumoto
To prevent infinite loop on errors; reported by @shuujii
2020-04-03Helper for link window's libraryReckordp
2020-04-02Merge pull request #4959 from dsisnero/masterYukihiro "Matz" Matsumoto
build when directories and files have spaces
2020-04-01fix for quoting visualcppdsisnero
2020-04-01build when directories and files have spacesDominic Sisneros
Modified the build to quote filenames so that it builds when files have spaces
2020-04-01Avoid unnecessary `nextc()` recursion.Yukihiro "Matz" Matsumoto
2020-04-01Merge pull request #4957 from dearblue/excessive-arenaYukihiro "Matz" Matsumoto
Fix `mrb_funcall_with_block()` uses more GC arena
2020-03-31Fix `mrb_funcall_with_block()` uses more GC arenadearblue
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-31Merge pull request #4956 from dearblue/null-local_variablesYukihiro "Matz" Matsumoto
Fix NULL pointer dereferences in mrb_local_variables; fix #4955
2020-03-30Fix NULL pointer dereferences in mrb_local_variables; fix #4955dearblue
However, the behavior of `#call` on the method object of `local_variables` is not corrected.
2020-03-08Merge pull request #4954 from dearblue/nostdioYukihiro "Matz" Matsumoto
Improve configuration guard
2020-03-08Add configuration guard for `MRB_DISABLE_STDIO`dearblue
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-08Remove unnecessary 'stdio.h'; ref #4947dearblue
'stdio.h' is included in 'mruby.h' ('mrbconf.h'). However, keep 'stdio.h' used by mruby-test.
2020-03-08Improve conflict error message of mruby-bin-debugger; ref 87d1b2a91dearblue
2020-03-08Merge pull request #4953 from Reckordp/BuildAndroidYukihiro "Matz" Matsumoto
Some rule to CrossBuild Android
2020-03-08Merge branch 'master' into BuildAndroidYukihiro "Matz" Matsumoto
2020-03-08Small refactoring on #4952Yukihiro "Matz" Matsumoto
Fix the argument of `mrb_file_is_absolute_path()`.
2020-03-08Merge pull request #4952 from Reckordp/masterYukihiro "Matz" Matsumoto
Traditional, UNC, and Drive Path
2020-03-08Let me in PleaseReckordp
2020-03-08Increase flexibility of CrossBuildReckordp
2020-03-08Let me in PleaseReckordp
2020-03-08Traditional, UNC, and Device Is Absolute?Reckordp
2020-03-08Commit from remoteReckordp
2020-03-08Evaluate all type pathReckordp
2020-03-07Merge branch 'dearblue-io-pread-pwrite'Yukihiro "Matz" Matsumoto
2020-03-07Small refactoring on #4939Yukihiro "Matz" Matsumoto