summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2017-07-15Add `Hash#transform_keys!` and `Hash#transform_values`.Yukihiro "Matz" Matsumoto
2017-07-15Use `keys.each` instead of unstable `each_keys`.Yukihiro "Matz" Matsumoto
2017-07-14Remove duplication in `mruby-hash-ext` test.Yukihiro "Matz" Matsumoto
2017-07-14Avoid duplicated width filling for sprintf `%d` specifier; fix #3736Yukihiro "Matz" Matsumoto
2017-07-14Add `Hash#transform_{keys,values}` to `mruby-hash-ext`.Yukihiro "Matz" Matsumoto
2017-07-13Use `floor()` to implement `round()` on WIN32 platform.Yukihiro "Matz" Matsumoto
This change was suggested by Akira Kakuto.
2017-07-13Define `round()` only on WIN32 platform; fix #3741Yukihiro "Matz" Matsumoto
2017-07-12`while`|`until` should have the value from `break`; fix #3735Yukihiro "Matz" Matsumoto
2017-07-12Avoid float operation to shrink arena buffer size.Yukihiro "Matz" Matsumoto
2017-07-12Add `inline` modifier to `cipush()` and `cipop()` functions.Yukihiro "Matz" Matsumoto
2017-07-12Use "$!" specifier of `mrb_get_args`.Yukihiro "Matz" Matsumoto
2017-07-12Update `mrb_get_args()` document.Yukihiro "Matz" Matsumoto
2017-07-12Add "*!" argument specifier to avoid stack copying.Yukihiro "Matz" Matsumoto
2017-07-12Add `ary_modify_check()` to `Array#unshift`; ref #3737Yukihiro "Matz" Matsumoto
2017-07-12Merge pull request #3740 from christopheraue/fix_test_outputYukihiro "Matz" Matsumoto
fixed printing failed assertions
2017-07-11fixed printing failed assertionsChristopher Aue
2017-07-11`POSFIXABLE` and `NEGFIXABLE` should take one argument.Yukihiro "Matz" Matsumoto
2017-07-10Resurrect `POSFIXABLE` and `NEGFIXABLE`; ref 9186828Yukihiro "Matz" Matsumoto
2017-07-09Merge pull request #3739 from ksss/array-shiftYukihiro "Matz" Matsumoto
Should only check frozen fix #3737
2017-07-09Should only check frozen for Array#popksss
2017-07-09Add frozen test for Array#shiftksss
2017-07-09Should only check frozen fix #3737ksss
2017-07-07Add fallback definitions of `DBL_EPSILPN` and `LDBL_EPSILON`; fix #3733Yukihiro "Matz" Matsumoto
This is a workaround for mingw-w64 (5.3.1) bug.
2017-07-06Reduce allocation size of backtrace arrays.Yukihiro "Matz" Matsumoto
2017-07-06Avoid out-of-bounds access of the backtrace array.Yukihiro "Matz" Matsumoto
2017-07-06`FIXABLE_FLOAT()` fails sometimes in `MRB_INT64` environment.Yukihiro "Matz" Matsumoto
2017-07-05`print("%d", 0)` should not print `-0`; fix #3731Yukihiro "Matz" Matsumoto
2017-07-05Put a space between error position and error message.Yukihiro "Matz" Matsumoto
For readability's sake.
2017-07-05Negation was not a good way to handle negative integers; fix #3729Yukihiro "Matz" Matsumoto
There's a number that negation does not work (-2147483648 in 32bit environment).
2017-07-05In Ruby, `sprintf` specifier `%u` should behave as `%d`; fix #3730Yukihiro "Matz" Matsumoto
Since there's no unsigned integer in Ruby. Binary, octal and hexadecimal negative numbers can be represented by using 2's compliment. But decimal (not being power of 2) cannot be use that kind of format.
2017-07-05Check stack size before accessing env stack; fix #3727Yukihiro "Matz" Matsumoto
2017-07-05Avoid undefined behavior of left shifting negative integer; #3728Yukihiro "Matz" Matsumoto
2017-07-05Avoid undefined behavior of signed integer overflow; fix #3728Yukihiro "Matz" Matsumoto
2017-07-04Merge pull request #3726 from mruby/stableYukihiro "Matz" Matsumoto
mruby-1.3.0
2017-07-04Set the mruby-1.3.0 release date to `2017-7-4`.1.3.0Hiroshi Mimaki
2017-07-04Refactor `sprintf()` code.Yukihiro "Matz" Matsumoto
2017-07-04Initialize `flags` for each loop.Yukihiro "Matz" Matsumoto
2017-07-03Fixed an unit test to work on Cygwin.Hiroshi Mimaki
2017-07-01`break` should not cross fiber-context boundary; fix #3724Yukihiro "Matz" Matsumoto
2017-07-01`super` may be called from a block; fix #3723Yukihiro "Matz" Matsumoto
2017-06-28Remove redundant use of `Object#to_s` in interpolation.Yukihiro "Matz" Matsumoto
2017-06-28Provide better way to check compile errors.Yukihiro "Matz" Matsumoto
Now you can just call `mrb_load_*` functions then check `context->parser_nerr > 0` if the return value is `undef`, instead of calling `mrb_parse_*` functions independently. ref #3248 #3331
2017-06-28Revert "Make `mrb_load_exec` a static function."Yukihiro "Matz" Matsumoto
This reverts commit 7944d9a6d4ccb94189f37d307d384ed1cfe33e17. Because it voids #3248 and #3331. But we should add better way to check whether compile errors occur without duplicated callings.
2017-06-28Avoid `mrb_funcall()` unless absolutely necessary; ref #3722Yukihiro "Matz" Matsumoto
As a result, `#chr` is not called for ch < 0x80, so we need to update the "invalid chr" test.
2017-06-27Remove unnecessary initialization of a local variable.Yukihiro "Matz" Matsumoto
2017-06-27No longer need to copy `argv` from `mrb_get_args`; ref #3722Yukihiro "Matz" Matsumoto
2017-06-27Copy argv from VM stack to avoid use-after-free; fix #3722Yukihiro "Matz" Matsumoto
2017-06-23Make `LocalJumpError` a subclass of `ScriptError`.Yukihiro "Matz" Matsumoto
It's incompatible with CRuby, but it is required for mruby because it cannot detect `break` outside of loops in the parsing time, but in the code generation time where it cannot raise `SyntaxError`.
2017-06-23Should raise an exception if `break` called in ensure; fix #3721Yukihiro "Matz" Matsumoto
2017-06-23Make `mrb_load_exec` a static function.Yukihiro "Matz" Matsumoto