summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2019-07-04It was too early to check `key` for `undef`; ref #4534Yukihiro "Matz" Matsumoto
2019-07-04Rename `MRB_STR_NO_UTF` to 'MRB_STR_ASCII`; close #4550Yukihiro "Matz" Matsumoto
In #4550, @shuuji proposed the name name `MRB_STR_NO_MULTI_BYTE` for more precise description. Although I agree that the name name is correct, but the flag means the string does not contain multi byte UTF-8 characters, i.e. all characters fit in the range of ASCII.
2019-07-04Merge pull request #4551 from dearblue/fix-4549Yukihiro "Matz" Matsumoto
Fix heap buffer overflow; ref #4549
2019-07-04Fix heap buffer overflow; ref #4549dearblue
This patch is showed in #4549.
2019-07-04Merge pull request #4548 from shuujii/refine-document-to-mrb_get_argsYukihiro "Matz" Matsumoto
Refine document to mrb_get_args()` [ci skip]
2019-07-03Refine document to mrb_get_args()` [ci skip]KOBAYASHI Shuji
2019-07-02Merge pull request #4546 from ↵Yukihiro "Matz" Matsumoto
shuujii/fix-and-refine-error-message-in-mrb_obj_to_sym Fix and refine error message in `mrb_obj_to_sym()`
2019-07-02Fix and refine error message in `mrb_obj_to_sym()`KOBAYASHI Shuji
Before this patch: $ bin/mruby -e '1.respond_to?(2)' #=> nil is not a symbol After this patch (same as Ruby): $ bin/mruby -e '1.respond_to?(2)' #=> 2 is not a symbol nor a string
2019-07-02Merge pull request #4545 from shuujii/remove-unused-C-header-file-from-src-etc.cYukihiro "Matz" Matsumoto
Remove unused C header file from `src/etc.c`
2019-07-01Remove unused C header file from `src/etc.c`KOBAYASHI Shuji
2019-06-30Merge pull request #4544 from ↵Yukihiro "Matz" Matsumoto
shuujii/fix-include-prepend-and-extend-to-frozen-object Fix `include`, `prepend` and `extend` to frozen object
2019-06-30Fix `include`, `prepend` and `extend` to frozen objectKOBAYASHI Shuji
2019-06-29Merge pull request #4540 from dearblue/assert-nestingYukihiro "Matz" Matsumoto
Nested `assert` for mrbtest
2019-06-29Merge pull request #4541 from dearblue/replace-string-asetYukihiro "Matz" Matsumoto
Replace `String#[]=` method by C implements
2019-06-29Simplify `mrb_str_aref_m()` and `mrb_str_aref()`dearblue
It is integration with part of argument parsing used in `mrb_str_aset_m()`.
2019-06-29Replace `String#[]=` method by C implementsdearblue
The purpose is to eliminate string objects that are temporarily created during processing.
2019-06-29Add test for `String#[]=`dearblue
2019-06-29Use nested `assert`dearblue
2019-06-29Use a normal method instead of a lambdadearblue
Ref commit 35319bed01d58c785f73ce03e67d4e58be30f4b5
2019-06-29Nested `assert` for mrbtestdearblue
When nesting `assert` used in test, it is indented and displayed. Assertion numbers are concatenated by `"-"` at this time. The purpose is to match the apparent numbers when failing with `assert_mruby` which is defined by `mrbgems/mruby-bin-mruby/bintest/mruby.rb` for example. Child assertions "skip" and "info" are reported as parent assertions "info" and `$ok_test += 1`. The child assertions "ko" and "crash" are reported as the parent assertion "ko" and `$ko_test += 1`. When child assertions are mixed, "ko" takes precedence. Incompatibility: - `$mrbtest_assert_idx` takes `nil` or an integer array object. So far it was `nil` or an integer. - `$asserts` points to the top of the internal stack in the `assert`. - `$mrbtest_assert` points to the top of the internal stack in `assert`.
2019-06-28Merge pull request #4538 from shuujii/use-__ENCODING__-in-testsYukihiro "Matz" Matsumoto
Use `__ENCODING__` in tests
2019-06-28Merge pull request #4539 from ↵Yukihiro "Matz" Matsumoto
shuujii/remove-unnecessary-backticks-in-src-range.c Remove unnecessary backticks in `src/range.c`; ref #2858
2019-06-28Remove unnecessary backticks in `src/range.c`; ref #2858KOBAYASHI Shuji
2019-06-28Use `__ENCODING__` in testsKOBAYASHI Shuji
It cannot be used for `String#size` test if judging whether or not `MRB_UTF8_STRING` is defined by result of `String#size`.
2019-06-28Merge pull request #4535 from shuujii/add-modification-tests-for-immediate-valueYukihiro "Matz" Matsumoto
Add modification tests for immediate value
2019-06-28Merge pull request #4536 from komainu8/fix_broken_linksYukihiro "Matz" Matsumoto
Fix broken links for mruby.org
2019-06-27Fix broken links for mruby.orgYasuhiro Horimoto
A part of a fix for issue mruby/mruby.github.io#50
2019-06-27Add modification tests for immediate valueKOBAYASHI Shuji
2019-06-27Skip copying delete keys in a hash; fix #4534Yukihiro "Matz" Matsumoto
2019-06-26Merge pull request #4533 from shuujii/silence-unused-label-warningsYukihiro "Matz" Matsumoto
Silence unused label warnings from gcc; ref #4524
2019-06-26Silence unused label warnings from gcc; ref #4524KOBAYASHI Shuji
mruby/mruby/src/string.c:1722:4: warning: label 'bytes' defined but not used [-Wunused-label] bytes: ^~~~~
2019-06-26Merge pull request #4524 from dearblue/reverse-utf8Yukihiro "Matz" Matsumoto
Change to UTF-8 string reversing with in place
2019-06-26Merge pull request #4532 from ↵Yukihiro "Matz" Matsumoto
shuujii/fix-String-byteslice-with-MRB_UTF8_STRING-and-some-edge-cases Fix `String#byteslice` with `MRB_UTF8_STRING` and some edge cases
2019-06-26Merge pull request #4493 from dearblue/fix-rational-newYukihiro "Matz" Matsumoto
Fix rational new on 32 bits mode
2019-06-26Merge pull request #4492 from dearblue/fix-complex-newYukihiro "Matz" Matsumoto
Fix complex new on 32 bits mode
2019-06-25Fix `String#byteslice` with `MRB_UTF8_STRING` and some edge casesKOBAYASHI Shuji
Example: $ bin/mruby -e ' p "あa".byteslice(1) p "bar".byteslice(3) p "bar".byteslice(4..0) ' Before this patch: "a" "" RangeError (4..0 out of range) After this patch (same as Ruby): "\x81" nil nil
2019-06-25Merge pull request #4516 from ↵Yukihiro "Matz" Matsumoto
shuujii/fix-struct-RRange-overflow-on-32-bit-CPU-with-MRB_NAN_BOXING Fix `struct RRange` overflow on 32-bit CPU with `MRB_NAN_BOXING`
2019-06-25Merge pull request #4517 from ↵Yukihiro "Matz" Matsumoto
shuujii/remove-unneeded-statement-in-SET_OBJ_VALUE-with-boxing_word.h Remove unneeded statement in `SET_OBJ_VALUE` with `boxing_word.h`
2019-06-25Merge pull request #4528 from shuujii/fix-argument-specs-to-ArrayYukihiro "Matz" Matsumoto
Fix argument specs to `Array`
2019-06-25Merge pull request #4530 from ↵Yukihiro "Matz" Matsumoto
shuujii/compare-obj-pointer-directly-instead-of-using-mrb_obj_eq-in-mrb_gc_unregister Compare obj pointer directly instead of using mrb_obj_eq in mrb_gc_unregister
2019-06-25Fixed `mrb_iv_remove` with immediate objects; fix #4519Yukihiro "Matz" Matsumoto
The #4520 tried to address the issue, but it changes the type of `mrb_check_frozen` argument; close #4520
2019-06-25Fixed a bug caused by `to_s` that returns `nil`; fix 4504Yukihiro "Matz" Matsumoto
2019-06-25Fix `mrb_str_to_str()` to handle symbols.Yukihiro "Matz" Matsumoto
2019-06-25Renamed `stacked` to `onstack`; ref #4523Yukihiro "Matz" Matsumoto
2019-06-25Unify loops to minimize bytecode sizeRyan Lopopolo
2019-06-24Compare obj pointer directly instead of using mrb_obj_eq in mrb_gc_unregisterKOBAYASHI Shuji
Because immediate values are not registered.
2019-06-23Fix argument specs to `Array`KOBAYASHI Shuji
2019-06-23Use explicit block parameterRyan Lopopolo
2019-06-23Optimize String#each_lineRyan Lopopolo
2019-06-23Merge pull request #4526 from shuujii/refine-Hash-rehash-exampleYukihiro "Matz" Matsumoto
Refine `Hash#rehash` example [ci skip]