summaryrefslogtreecommitdiffhomepage
path: root/mrbgems
AgeCommit message (Collapse)Author
2018-11-02Merge pull request #4151 from take-cheeze/remove_op_symidxYukihiro "Matz" Matsumoto
Reduce instruction size
2018-11-02Add tests for empty patterns for `tr` and `count`; #4156 #4157Yukihiro "Matz" Matsumoto
2018-11-02Empty pattern string for `String#tr` should remove characters; fix #4157Yukihiro "Matz" Matsumoto
2018-11-02Empty pattern string can generate `TR_UNINITIALIZED` pattern; fix #4156Yukihiro "Matz" Matsumoto
2018-11-01Silence Appveyor's VC compilation warnings.Yukihiro "Matz" Matsumoto
2018-10-30VS 2017 C does not understand inline struct initialization; ref #4153Yukihiro "Matz" Matsumoto
2018-10-29Reduce unnecessary symbol table entrytake-cheeze
2018-10-29Reduce instruction sizetake-cheeze
2018-10-29Merge pull request #4149 from take-cheeze/static_tr_patternYukihiro "Matz" Matsumoto
Keep `tr_pattern` static if possible
2018-10-29Merge pull request #4148 from take-cheeze/rename_libmruby_stuffYukihiro "Matz" Matsumoto
Rename `MRuby::Build#libmruby` stuff to avoid confusion
2018-10-29Merge pull request #4147 from take-cheeze/add_missing_depYukihiro "Matz" Matsumoto
Add missing dependency of source code generator
2018-10-29Rename libmruby stuff to avoid confusiontake-cheeze
2018-10-29Add missing dependency of source code generatortake-cheeze
2018-10-29Suppress sleep test script warningtake-cheeze
2018-10-29Keep tr_pattern statictake-cheeze
2018-10-23Fixed a bug in processing `OP_EXT?` instructions.Yukihiro "Matz" Matsumoto
fix haconiwa/haconiwa#171
2018-10-18replace quicksort with mergesort.Tomoyuki Sahara
2018-10-13Fixed a bug caused by too much optimization; fix #4137Yukihiro "Matz" Matsumoto
2018-10-12Fixed broken stack consistency; fix #4135Yukihiro "Matz" Matsumoto
2018-10-12Call `uniq!` for each union processing in `Array#union`.Yukihiro "Matz" Matsumoto
2018-10-02Fixed SEGV from `eval` called form top-level `mrb_funcall()`; fix #4028Yukihiro "Matz" Matsumoto
2018-09-27Fixed a `String#squeeze` bug in handling `iso-8859-1` strings; ref #4127Yukihiro "Matz" Matsumoto
2018-09-26Add index to larger segment lists for performanceYukihiro "Matz" Matsumoto
2018-09-26Use `mrb_undef_value` for delete mark instead of shifting Hash entry table.Yukihiro "Matz" Matsumoto
That means entry table should be compacted periodically by `sg_compact()`.
2018-09-26Revert "Fix comparisons in str_squeeze."Yukihiro "Matz" Matsumoto
This reverts commit 7b04fcd092006b6e78cd63619fb7ae972f8e0c5d. The issue was addressed by 9e3cbaa. No longer needed.
2018-09-26Avoid using `memmove()` for performance; fix #4130Yukihiro "Matz" Matsumoto
2018-09-26Disambiguate block braces.Yukihiro "Matz" Matsumoto
2018-09-26Rename `tr_pattern_free()` to `tr_free_pattern()`.Yukihiro "Matz" Matsumoto
2018-09-25Fix leak in `mrb_str_count`Takeshi Watanabe
2018-09-24Fix comparisons in str_squeeze.Clayton Smith
2018-09-21Implement `String#delete` and `#delete!`; ref #4086Yukihiro "Matz" Matsumoto
mruby restriction: In mruby, `String#delete` only takes single pattern argument.
2018-09-21Implement `String#count`; ref #4086Yukihiro "Matz" Matsumoto
mruby restriction: In mruby, `String#count` does not take multiple pattern arguments, but only one pattern.
2018-09-21Add `String#squeeze` and `#squeeze!`; ref #4086Yukihiro "Matz" Matsumoto
mruby restriction: `String#squeeze` can take more than 1 pattern arguments in CRuby, in that case, the intersection of patterns will be used to match. But in mruby, it doesn't take multiple patterns.
2018-09-21Add `String#tr_s` and `String#tr_s!`; ref #4086Yukihiro "Matz" Matsumoto
2018-09-21Add `String#tr` and `#tr!` to `mruby-string-ext` gem; fix #4086Yukihiro "Matz" Matsumoto
This patch is based on `mruby/c` implementation by Hirohito Higashi. We might need to add `#tr_s`, `#squeeze` and `#delete` as well. Adding them should not be too hard using functions we implemented here.
2018-09-21Implement `Array#union` which is introduced in Ruby2.6.Yukihiro "Matz" Matsumoto
2018-09-20Improve performance of `Array#uniq!`.Yukihiro "Matz" Matsumoto
2018-09-20Move `Symbol#to_proc` to the core from `mruby-symbol-ext` gem.Yukihiro "Matz" Matsumoto
Even though `Symbol#to_proc` is not included in ISO standard, the `some_method(&:method_name)` is used very widely and convenient. So we moved it to the core.
2018-09-20Make `#to_h` to take a block; [ruby-core:89088]Yukihiro "Matz" Matsumoto
2018-09-20Small refactoring in `mruby-hash-ext`.Yukihiro "Matz" Matsumoto
2018-09-18Use `mrb_to_flo()` to check return value from `to_f`; fix #4115Yukihiro "Matz" Matsumoto
The ISO standard does not include implicit type conversion using `to_int`, `to_str` and sometimes `to_f`. For the compactness of the mruby implementation, maybe we should remove those implicit conversion from mruby.
2018-09-18Array size may be changed in `mrb_get_args()` reentry.Yukihiro "Matz" Matsumoto
fix #4116; fix #4117; fix #4118; fix #4119; fix #4120
2018-09-15Exclude pipe and exec on iOS/tvOSTom Black
Use of `execl()` is prohibited on these platforms
2018-09-16fixup! Add support for iOS platforms that does not support `fork`; fix #4113Yukihiro "Matz" Matsumoto
2018-09-16Merge pull request #4121 from clayton-shopify/fix-sprintf-overflowYukihiro "Matz" Matsumoto
Prevent signed integer overflow.
2018-09-16Add support for iOS platforms that does not support `fork`; fix #4113Yukihiro "Matz" Matsumoto
2018-09-14Prevent signed integer overflow.Clayton Smith
2018-09-08Merge pull request #4110 from dearblue/fix-typo1Yukihiro "Matz" Matsumoto
Fix typo
2018-09-07Clear terminated spacedearblue
2018-09-07Fix integer overflow issue; fix #4108Yukihiro "Matz" Matsumoto
I misunderstood the return value from `snprintf()`, which is NOT number of characters written in buffer, but the number of character the buffer has to have to write the complete output.