- 16 May, 2019 5 commits
-
-
Yukihiro "Matz" Matsumoto authored
It used heap allocated memory for the parser stack, but there's possibility of parser termination by exceptions. In that case, the parser stack memory is leaked. We were afraid of stack consumption, but parser stack size is only 4KB, so we don't have to worry about it (at least for the parser).
-
Yukihiro "Matz" Matsumoto authored
The previous value (`UINT16_MAX`) was too long for symbols, so it raises an exception after the length check.
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
- 15 May, 2019 12 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix typo in `mrbgems/mruby-io/src/file_test.c` [ci skip]
-
Yukihiro "Matz" Matsumoto authored
-
Ukrainskiy Sergey authored
-
Ukrainskiy Sergey authored
-
Ukrainskiy Sergey authored
-
Ukrainskiy Sergey authored
-
Ukrainskiy Sergey authored
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
Fix name assignment to frozen anonymous class/module
-
Yukihiro "Matz" Matsumoto authored
`String#each_byte` is not defined in ISO Ruby but it is implemented in the core mruby because it's useful.
-
Yukihiro "Matz" Matsumoto authored
Refine `Time#(to_s|inspect)`
-
Yukihiro "Matz" Matsumoto authored
-
- 14 May, 2019 2 commits
-
-
KOBAYASHI Shuji authored
For the following reasons: - Ruby compatibility. - Add UTC offset (time zone informations was not included by #4433). - More readable. Example: Before this patch: p Time.gm(2003,4,5,6,7,8,9) #=> Sat Apr 5 06:07:08 2003 p Time.local(2013,10,28,16,27,48) #=> Mon Oct 28 16:27:48 2013 After this patch: p Time.gm(2003,4,5,6,7,8,9) #=> 2003-04-05 06:07:08 UTC p Time.local(2013,10,28,16,27,48) #=> 2013-10-28 16:27:48 +0900 Implementation: I use `strftime(3)` because UTC offset can be added and program size become smaller than the other implementations (using `sprintf(3)`, self conversion etc) in my environment.
-
Yukihiro "Matz" Matsumoto authored
Fix `Time#(asctime|ctime)` according to ISO Ruby
-
- 13 May, 2019 1 commit
-
-
KOBAYASHI Shuji authored
- A leading charactor for day is space. - Time zone does not included. Before this patch: Time.gm(1982,3,4,5,6,7).asctime #=> "Thu Mar 04 05:06:07 UTC 1982" After this patch: Time.gm(1982,3,4,5,6,7).asctime #=> "Thu Mar 4 05:06:07 1982"
-
- 12 May, 2019 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix missing assertions in `mruby-time` test
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
Use `mrb_ensure_string_type` in `mrb_to_str`
-
- 11 May, 2019 3 commits
-
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
Update ossfuzz options
-
Yukihiro "Matz" Matsumoto authored
Move `mrb_gc_arena_restore` to inside the loop in `mrb_file_s_chmod`
-
- 10 May, 2019 3 commits
-
-
Bhargava Shastry authored
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
Merge pull request #4428 from shuujii/raise-TypeError-if-the-argument-type-is-unsupported-in-mrb_stat0 Raise `TypeError` if the argument type is unsupported in `mrb_stat0`
-
- 09 May, 2019 1 commit
-
-
KOBAYASHI Shuji authored
-
- 08 May, 2019 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Use `mrb_string_value_cstr` in `mrb_str_to_dbl`
-
KOBAYASHI Shuji authored
-
- 07 May, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Refactor `mrb_str_to_cstr` and `mrb_string_value_cstr`
-
KOBAYASHI Shuji authored
- Extract null byte check to function. - Avoid string allocation if null byte is included. - Use `str_new` instead of `mrb_str_dup` + `mrb_str_modify`
-
- 06 May, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Avoid using `mrb_str_to_cstr` if possible
-
KOBAYASHI Shuji authored
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.
-
- 05 May, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Use `mrb_fixnum_to_str()` instead of `Fixnum#to_s`
-
KOBAYASHI Shuji authored
-
- 04 May, 2019 1 commit
-
-
Yukihiro "Matz" Matsumoto authored
ossfuzz: Add simple mruby compile test harness
-