| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2019-05-17 | Merge pull request #4440 from kou/cc-with-option | Yukihiro "Matz" Matsumoto | |
| Add support for CC="gcc --option ..." again | |||
| 2019-05-17 | Move `Integral#(zero|nonzero|positive|negative)?` to `Numeric` | KOBAYASHI Shuji | |
| Because these methods work if object is `Comparable`, and `Numeric` is `Comparable`. | |||
| 2019-05-17 | Drop dependency from `mruby-rational` to `mruby-numeric-ext` | KOBAYASHI Shuji | |
| 2019-05-17 | Fix `Numeric#to_r` | KOBAYASHI Shuji | |
| 2019-05-17 | Add support for CC="gcc --option ..." again | Kouhei Sutou | |
| If $rake_root_fiber is used, sh runs command in another Fiber. If command is ran in another Fiber, "rescue RuntimEerror" can't rescue exception for system(...) failure. How to reproduce: $ CC="gcc -std=gnu99" ./minirake (in /home/kou/work/ruby/mruby.kou) CC mrbgems/mruby-compiler/core/codegen.c -> build/test/mrbgems/mruby-compiler/core/codegen.o sh: 1: gcc -std=gnu99: not found rake aborted! Command Failed: ["gcc -std=gnu99" -g -std=gnu99 ...] | |||
| 2019-05-17 | Implement part of `Rational` in C. | Yukihiro "Matz" Matsumoto | |
| 2019-05-17 | Avoid direct access to instance variables in `rational.rb`. | Yukihiro "Matz" Matsumoto | |
| 2019-05-17 | Fixed wrong overloading. | Yukihiro "Matz" Matsumoto | |
| `float op rational` should return `float`, since float is an inexact value. | |||
| 2019-05-17 | Make unused functions private. | Yukihiro "Matz" Matsumoto | |
| * mrb_fixnum_plus() * mrb_fixnum_minus() * mrb_fixnum_mul() | |||
| 2019-05-17 | Use `div` (integer divition) instead of `/` for rational numbers. | Yukihiro "Matz" Matsumoto | |
| 2019-05-17 | Remove unused `mrb_num_div()` function. | Yukihiro "Matz" Matsumoto | |
| 2019-05-17 | Move `Numeric#div` to the core. | Yukihiro "Matz" Matsumoto | |
| 2019-05-17 | Make `flo_rount` to return `Integeral`. | Yukihiro "Matz" Matsumoto | |
| 2019-05-17 | Change the `num.divmod(float)` to return `[int,num]`. | Yukihiro "Matz" Matsumoto | |
| 2019-05-17 | Add a new function `mrb_int_value`. | Yukihiro "Matz" Matsumoto | |
| This function returns `Fixnum` if the value fits in `mrb_int`, otherwise it returns `Float` value (mruby behavior of handling integers). | |||
| 2019-05-17 | Use `int64_t` instead of `mrb_int` in `int64_value`. | Yukihiro "Matz" Matsumoto | |
| 2019-05-17 | Use `mrb_float` instead of `double` in `FIXABLE_FLOAT`. | Yukihiro "Matz" Matsumoto | |
| 2019-05-16 | Refactor `time.c` regarding memory allocation. | Yukihiro "Matz" Matsumoto | |
| 2019-05-16 | Merge pull request #4439 from shuujii/fix-Rational-eq | Yukihiro "Matz" Matsumoto | |
| Fix `Rational#==` | |||
| 2019-05-16 | Fix `Rational#==` | KOBAYASHI Shuji | |
| 2019-05-16 | Enable `YYSTACK_USE_ALLOCA`. | Yukihiro "Matz" Matsumoto | |
| 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). | |||
| 2019-05-16 | Set maximum string (and symbol) size to 65534 (`UINT16_MAX-1`). | Yukihiro "Matz" Matsumoto | |
| The previous value (`UINT16_MAX`) was too long for symbols, so it raises an exception after the length check. | |||
| 2019-05-16 | Avoid potential type mismatch warnings in `pack.c`. | Yukihiro "Matz" Matsumoto | |
| 2019-05-16 | Avoid potential integer overflow. | Yukihiro "Matz" Matsumoto | |
| 2019-05-16 | Terminate float right shift if shift value is too big. | Yukihiro "Matz" Matsumoto | |
| 2019-05-15 | Merge pull request #4435 from ↵ | Yukihiro "Matz" Matsumoto | |
| shuujii/fix-typo-in-mrbgems-mruby-io-src-file_test.c Fix typo in `mrbgems/mruby-io/src/file_test.c` [ci skip] | |||
| 2019-05-15 | Do not overwrite `conf.cc.defines`. | Yukihiro "Matz" Matsumoto | |
| 2019-05-15 | Fix | Ukrainskiy Sergey | |
| 2019-05-15 | Fix dependencies | Ukrainskiy Sergey | |
| 2019-05-15 | Basic implementation of Complex and Rational classes | Ukrainskiy Sergey | |
| 2019-05-15 | Small refactoring | Ukrainskiy Sergey | |
| 2019-05-15 | Initial suffix support | Ukrainskiy Sergey | |
| 2019-05-15 | Fix typo in `mrbgems/mruby-io/src/file_test.c` [ci skip] | KOBAYASHI Shuji | |
| 2019-05-15 | Merge pull request #4400 from ↵ | Yukihiro "Matz" Matsumoto | |
| shuujii/fix-name-assignment-to-frozen-anonymous-class-module Fix name assignment to frozen anonymous class/module | |||
| 2019-05-15 | Add Enumerator support to `String#each_byte`. | Yukihiro "Matz" Matsumoto | |
| `String#each_byte` is not defined in ISO Ruby but it is implemented in the core mruby because it's useful. | |||
| 2019-05-15 | Merge pull request #4434 from shuujii/refine-Time-to_s-inspect | Yukihiro "Matz" Matsumoto | |
| Refine `Time#(to_s|inspect)` | |||
| 2019-05-15 | Remove `String#=~` and `String#match` that requires `Regexp`. | Yukihiro "Matz" Matsumoto | |
| 2019-05-14 | Refine `Time#(to_s|inspect)` | KOBAYASHI Shuji | |
| 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. | |||
| 2019-05-14 | Merge pull request #4433 from ↵ | Yukihiro "Matz" Matsumoto | |
| shuujii/fix-Time-asctime-ctime-according-to-ISO-Ruby Fix `Time#(asctime|ctime)` according to ISO Ruby | |||
| 2019-05-13 | Fix `Time#(asctime|ctime)` according to ISO Ruby | KOBAYASHI Shuji | |
| - 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" | |||
| 2019-05-13 | Merge pull request #4432 from shuujii/fix-missing-assertions-in-mruby-time-test | Yukihiro "Matz" Matsumoto | |
| Fix missing assertions in `mruby-time` test | |||
| 2019-05-12 | Fix missing assertions in `mruby-time` test | KOBAYASHI Shuji | |
| 2019-05-12 | Merge pull request #4431 from shuujii/use-mrb_ensure_string_type-in-mrb_to_str | Yukihiro "Matz" Matsumoto | |
| Use `mrb_ensure_string_type` in `mrb_to_str` | |||
| 2019-05-11 | Use `mrb_ensure_string_type` in `mrb_to_str` | KOBAYASHI Shuji | |
| 2019-05-11 | Merge pull request #4430 from bshastry/ossfuzz | Yukihiro "Matz" Matsumoto | |
| Update ossfuzz options | |||
| 2019-05-11 | Merge pull request #4429 from ↵ | Yukihiro "Matz" Matsumoto | |
| shuujii/move-mrb_gc_arena_restore-into-loop-in-mrb_file_s_chmod Move `mrb_gc_arena_restore` to inside the loop in `mrb_file_s_chmod` | |||
| 2019-05-10 | Update ossfuzz options | Bhargava Shastry | |
| 2019-05-10 | Move `mrb_gc_arena_restore` to inside the loop in `mrb_file_s_chmod` | KOBAYASHI Shuji | |
| 2019-05-10 | Merge pull request #4428 from ↵ | Yukihiro "Matz" Matsumoto | |
| shuujii/raise-TypeError-if-the-argument-type-is-unsupported-in-mrb_stat0 Raise `TypeError` if the argument type is unsupported in `mrb_stat0` | |||
| 2019-05-10 | Raise `TypeError` if the argument type is unsupported in `mrb_stat0` | KOBAYASHI Shuji | |
