summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2019-04-14Merge pull request #4373 from shuujii/fix-broken-NaN-with-MRB_NAN_BOXINGYukihiro "Matz" Matsumoto
Fix broken NaN with `MRB_NAN_BOXING`
2019-04-13Fix broken NaN with `MRB_NAN_BOXING`KOBAYASHI Shuji
Example: $ bin/mruby -e '(Float::INFINITY - Float::INFINITY).nan?' zsh: segmentation fault Cause: `SET_FLOAT_VALUE` is not used. It is needed for normalizing NaN. Treatment: In my environment, this issue could be reproduced only when `infinity - infinity`, however `SET_FLOAT_VALUE` should be used in all arithmetic operations (regardless of boxing setting), I think. So I fixed all similar codes by extracting to macro.
2019-04-12Small refactoring in `mrb_funcall_with_block`.Yukihiro "Matz" Matsumoto
2019-04-12Merge pull request #4372 from shuujii/refine-assert_floatYukihiro "Matz" Matsumoto
Refine `assert_float`
2019-04-12Deallocate `s->lines` in `codegen_error`; ref #4370Yukihiro "Matz" Matsumoto
2019-04-12The number of local variables should be less than 1024; fix #4370Yukihiro "Matz" Matsumoto
The `env` stores stack length in a 10 bit field. See `MRB_ENV_STACK_LEN()` macro.
2019-04-12Refine `assert_float`KOBAYASHI Shuji
Avoid arithmetic operations when `exp` and/or `act` are infinity or NaN.
2019-04-12Merge pull request #4369 from ↵Yukihiro "Matz" Matsumoto
shuujii/remove-incorrect-flags-updating-in-mrb_regexp_p Remove incorrect flags updating in `mrb_regexp_p()`
2019-04-12Merge pull request #4371 from clayton-shopify/fix-buffer-overflowsYukihiro "Matz" Matsumoto
Fix buffer overflows in parser.
2019-04-11Fix buffer overflows in parser.Clayton Smith
2019-04-11Remove incorrect flags updating in `mrb_regexp_p()`KOBAYASHI Shuji
2019-04-10Merge pull request #4368 from ↵Yukihiro "Matz" Matsumoto
shuujii/use-mrb_immediate_p-in-mrb_obj_freeze-and-mrb_obj_frozen Use `mrb_immediate_p()` in `mrb_obj_freeze()` and `mrb_obj_frozen()`
2019-04-10Use `mrb_immediate_p()` in `mrb_obj_freeze()` and `mrb_obj_frozen()`KOBAYASHI Shuji
2019-04-10Remove too aggressive `initialize` call in `mrb_instance_new`.Yukihiro "Matz" Matsumoto
2019-04-10Remove `MRB_API` from `mrb_instance_new`.Yukihiro "Matz" Matsumoto
2019-04-10Merge pull request #4367 from shuujii/extract-frozen-checking-to-functionYukihiro "Matz" Matsumoto
Extract frozen checking to function
2019-04-10Merge pull request #4366 from shuujii/remove-unneeded-function-prototypesYukihiro "Matz" Matsumoto
Remove unneeded function prototypes
2019-04-10Fixed old style declaration; ref #4365Yukihiro "Matz" Matsumoto
2019-04-10Rename `itoa` to `dump_int` to avoid name crash; ref #4173Yukihiro "Matz" Matsumoto
2019-04-10Use the old style declaration; ref #4365Yukihiro "Matz" Matsumoto
2019-04-09Extract frozen checking to functionKOBAYASHI Shuji
2019-04-08Remove unneeded function prototypesKOBAYASHI Shuji
2019-04-08Avoid infinite loop when no `Regexp` class is available; fix #4363Yukihiro "Matz" Matsumoto
2019-04-08Avoid using `snprintf` when `MRB_DISABLE_STDIO` is set; fix #4173Yukihiro "Matz" Matsumoto
2019-04-08Fix C99 style inline declaration; fix #4365Yukihiro "Matz" Matsumoto
2019-04-07Merge pull request #4364 from shuujii/fix-test-for-Array-sliceYukihiro "Matz" Matsumoto
Fix test for `Array#slice`
2019-04-07Fix test for `Array#slice`KOBAYASHI Shuji
2019-04-06Merge pull request #4362 from ↵Yukihiro "Matz" Matsumoto
shuujii/move-Array-append-prepend-from-core-to-mruby-ary-ext Move `Array#(append|prepend)` from core to `mruby-ary-ext`
2019-04-06Merge pull request #4361 from shuujii/remove-unused-mrb_proc_cfunc_pYukihiro "Matz" Matsumoto
Remove unused `mrb_proc_cfunc_p()`
2019-04-06Move `Array#(append|prepend)` from core to `mruby-ary-ext`KOBAYASHI Shuji
They are not included in ISO standard.
2019-04-06Remove unused `mrb_proc_cfunc_p()`KOBAYASHI Shuji
2019-04-05Merge pull request #4360 from ↵Yukihiro "Matz" Matsumoto
shuujii/use-Module-alias_method-should-return-self-in-ISO-standard `Module#alias_method` should return `self` in ISO standard
2019-04-05`Module#alias_method` should return `self` in ISO standardKOBAYASHI Shuji
2019-04-05Merge pull request #4357 from mruby/stableYukihiro "Matz" Matsumoto
Update version and release date. `mruby 2.0.1 (2019-4-4)`
2019-04-05Merge pull request #4358 from ↵Yukihiro "Matz" Matsumoto
shuujii/use-mrb_proc_arity-instead-of-Proc-arity-call-in-Method-arity Use `mrb_proc_arity` instead of `Proc#arity` call in `Method#arity`
2019-04-05Merge pull request #4355 from ↵Yukihiro "Matz" Matsumoto
shuujii/modify-else-and-endif-annotations-in-src-fmt_fp.c Modify `#else` and `#endif` annotations in `src/fmt_fp.c` [ci skip]
2019-04-04Use `mrb_proc_arity` instead of `Proc#arity` call in `Method#arity`KOBAYASHI Shuji
2019-04-04Update version and release date.2.0.1Hiroshi Mimaki
`mruby 2.0.1 (2019-4-4)`
2019-04-04Merge pull request #4354 from shuujii/remove-unnecessary-_set_output_format-callYukihiro "Matz" Matsumoto
Remove unnecessary `_set_output_format` call
2019-04-03Modify `#else` and `#endif` annotations in `src/fmt_fp.c` [ci skip]KOBAYASHI Shuji
2019-04-03Remove unnecessary `_set_output_format` callKOBAYASHI Shuji
Three-digit exponent issue was fixed via another workaround (63b8f5c).
2019-04-02Merge pull request #4353 from ↵Yukihiro "Matz" Matsumoto
shuujii/pad-leading-zero-to-month-and-day-in-MRUBY_RELEASE_DATE Pad leading zero to month and day in `MRUBY_RELEASE_DATE`
2019-04-02Pad leading zero to month and day in `MRUBY_RELEASE_DATE`KOBAYASHI Shuji
For Ruby compatibility.
2019-04-02Merge pull request #4352 from shuujii/fix-modifiable-class-nameYukihiro "Matz" Matsumoto
Fix modifiable class name
2019-04-01Fix modifiable class nameKOBAYASHI Shuji
Fix the following example: Object.const_set :A, Module.new{const_set :B, Class.new} ab = A::B.to_s p ab #=> "A::B" # Good ab[0] = "x" p A::B.to_s #=> "x::B" # Bad
2019-04-01Avoid keeping pointers from `mrb_sym2name_len()`; fix #4342Yukihiro "Matz" Matsumoto
The addresses for packed inline symbols reference `mrb->symbuf` that could be overridden by the later call of `mrb_sym2name_len`. Since file names in call stack information are kept as symbols, keeping the address in the C structures could cause problems like #4342. This changes small incompatible changes in function prototypes: * `mrb_parser_get_filename`: return value changed to `mrb_sym`. * `mrb_debug_get_filename`: add `mrb_state*` as a first argument. * `mrb_debug_get_line`: ditto. I believe above functions are almost internal, and no third-party mrbgem use them.
2019-03-31Merge pull request #4351 from shuujii/fix-warning-interpreted-as-argument-prefixYukihiro "Matz" Matsumoto
Fix warning: '*' interpreted as argument prefix
2019-03-31Fix warning: '*' interpreted as argument prefixKOBAYASHI Shuji
2019-03-30Merge pull request #4349 from shuujii/add-pass-and-flunk-to-test-assert.rbYukihiro "Matz" Matsumoto
Add `pass` and `flunk` to `test/assert.rb`
2019-03-30Add `pass` and `flunk` to `test/assert.rb`KOBAYASHI Shuji