4115 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto e63c1e1d49 Merge pull request #1655 from pbosetti/master
Added rewrite of Array#[] to mruby-array-ext gem
1.0.0
2014-01-10 04:49:57 -08:00
Yukihiro "Matz" Matsumoto 3fff0e2025 Merge pull request #1656 from h2so5/string-length-utf8
String#length should be an alias of String#size
2014-01-10 04:44:13 -08:00
h2so5 61745a4727 String#length should be an alias of String#size 2014-01-10 20:01:04 +09:00
Paolo Bosetti 921e6e24f4 Added rewrite of Array#[] to mruby-array-ext gem, so that arrays can be sliced
with Ranges (as a[1..-2])
2014-01-10 11:13:47 +01:00
Yukihiro "Matz" Matsumoto ff9b41cc37 Merge pull request #1654 from iij/pr-not-match-operator
add operator "!~".
2014-01-09 22:04:01 -08:00
Yukihiro "Matz" Matsumoto a02eb4bddc Merge pull request #1653 from iij/pr-fix-iso-ref-string-match
fix ISO reference number of String#=~.
2014-01-09 22:03:29 -08:00
Tomoyuki Sahara 83413218a5 add operator "!~". 2014-01-10 13:41:41 +09:00
Tomoyuki Sahara 3b76aae4f0 fix ISO reference number of String#=~. 2014-01-10 12:01:24 +09:00
Yukihiro "Matz" Matsumoto 3046cc7bd8 Merge branch 'master' of github.com:mruby/mruby 2014-01-08 13:05:27 +09:00
Yukihiro "Matz" Matsumoto c150f115a1 adjust lineno after continuing script files using mrb_partial_hook; close #1652 2014-01-08 13:05:19 +09:00
Yukihiro "Matz" Matsumoto 2040347d26 Merge pull request #1650 from cremno/remove-str_mod_check
string.c: remove str_mod_check
2014-01-07 15:36:18 -08:00
Yukihiro "Matz" Matsumoto ee8875b1d5 Merge pull request #1651 from h2so5/string-reverse-utf8
add String#reverse, String#reverse! for UTF-8
2014-01-07 15:32:48 -08:00
Yukihiro "Matz" Matsumoto b147970bd2 Merge pull request #1649 from cremno/include-cleanup
remove superfluous includes
2014-01-07 15:32:12 -08:00
h2so5 7fc9264b0f add String#reverse, String#reverse! for UTF-8 2014-01-08 02:21:19 +09:00
cremno 84e9c4befe string.c: remove str_mod_check
Clang 3.4 emits '-Wunused-function' - and it's really unused!
But according to the description this seems to be a bug:

>Warn whenever a static function is declared but not defined or
>a non-inline static function is unused. This warning is enabled by
-Wall.

Source: <http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html>
2014-01-07 18:15:45 +01:00
cremno aa655b9ee1 remove superfluous includes
- reduce compile time by a little bit (full-core: ~0.7s for me)
- thanks to 'include-what-you-use' for some help
- include Standard C header files before any other (coding style)
2014-01-07 17:56:30 +01:00
Yukihiro "Matz" Matsumoto cff4ac6bb7 skip "trace:" header if no backtrace line exists 2014-01-08 00:49:23 +09:00
Yukihiro "Matz" Matsumoto 1cdf283899 Merge branch 'master' of github.com:mruby/mruby 2014-01-08 00:40:57 +09:00
Yukihiro "Matz" Matsumoto a1131361d5 dump.c: wrong filename table dump for multiple script files; close #1648 2014-01-08 00:40:45 +09:00
Yukihiro "Matz" Matsumoto 65d2073739 Merge pull request #1647 from mattn/remove_duplicate_test_for_mruby_string_utf8
Remove duplicate test for mruby-string-utf8
2014-01-07 00:37:38 -08:00
mattn 993095cb7c Remove duplicate test 2014-01-07 16:57:25 +09:00
Yukihiro "Matz" Matsumoto 78ab979ef9 mruby-string-utf8: redefine String#size for UTF-8 string; #1646 2014-01-07 16:24:09 +09:00
Yukihiro "Matz" Matsumoto dc25f85bab mruby-string-utf8: UTF-8 string may contail NUL; #1646 2014-01-07 15:00:55 +09:00
Yukihiro "Matz" Matsumoto 0f7d771adc Merge branch 'mruby-string-utf8' of https://github.com/mattn/mruby into mattn-mruby-string-utf8 2014-01-07 14:31:12 +09:00
mattn 055468bfa0 Add mruby-string-utf8 2014-01-07 14:25:08 +09:00
Yukihiro "Matz" Matsumoto 65f6b105e9 Merge branch 'master' of github.com:mruby/mruby 2014-01-07 01:06:02 +09:00
Yukihiro "Matz" Matsumoto 8d01c157c6 Merge pull request #1645 from iij/pr-case-expression-test
tests for "case" expression.
2014-01-06 08:05:48 -08:00
Yukihiro "Matz" Matsumoto 7d8a3b618a small refactoring (dedup mrb_vm_cv_set) 2014-01-06 22:31:25 +09:00
Yukihiro "Matz" Matsumoto fe19ac2bcd small cosmetic variable renaming 2014-01-06 14:24:33 +09:00
Yukihiro "Matz" Matsumoto 07e8f80040 adjust proc->target_class according to surrounding proc->target_class; based on a patch from @Fleurer; close #1627 2014-01-06 14:04:50 +09:00
Tomoyuki Sahara 37475f4577 tests for "case" expression. 2014-01-06 10:10:37 +09:00
Yukihiro "Matz" Matsumoto 91fbbe2f59 Merge pull request #1644 from carsonmcdonald/testraiseinensure
Test for raise in ensure
2014-01-05 15:12:41 -08:00
Yukihiro "Matz" Matsumoto 3c7ab32e39 Merge pull request #1643 from take-cheeze/remove_unnecessary_depedency
Reduce unnecessary mrbgems full test rebuild.
2014-01-05 15:11:59 -08:00
Carson McDonald 072d98dd94 Test for raise in ensure 2014-01-05 09:20:31 -05:00
Yukihiro "Matz" Matsumoto 791021575c need not to initialize ci->err at toplevel 2014-01-05 20:03:45 +09:00
Yukihiro "Matz" Matsumoto f5cca078e3 avoid decrimenting eidx out of ecall() 2014-01-05 19:18:13 +09:00
h2so5 0e23038a60 execute ensure clause correctly without OP_EPOP 2014-01-05 16:24:20 +09:00
Yukihiro "Matz" Matsumoto 0b92025c3d Merge pull request #1640 from carsonmcdonald/splatwhentest
Test case statement with splat
2014-01-04 15:59:30 -08:00
Carson McDonald 8bff2a8f9d Test case statement with splat 2014-01-04 13:58:09 -05:00
Yukihiro "Matz" Matsumoto d40a62e2d2 object_id may not return Fixnum (ISO says Integer), since intptr_t may be bigger than Fixnum, so type check for Numeric; ref #1630 2014-01-04 21:12:18 +09:00
Yukihiro "Matz" Matsumoto 925137475c should splat and iterate elements when "*ary" speficied in the case-when clause; close #1627 2014-01-04 11:25:53 +09:00
Yukihiro "Matz" Matsumoto 2122cf48db pop ensure stack before execution; close #1638 2014-01-04 01:30:38 +09:00
Yukihiro "Matz" Matsumoto 6bcbef5064 always clear ci->err 2014-01-04 00:54:05 +09:00
Yukihiro "Matz" Matsumoto 4b68fbcd83 quicker release of arena after ensure calls 2014-01-04 00:13:28 +09:00
Yukihiro "Matz" Matsumoto d32a67e4b4 Merge branch 'master' of github.com:mruby/mruby 2014-01-04 00:07:34 +09:00
Yukihiro "Matz" Matsumoto 0bafa49d90 Merge pull request #1639 from h2so5/macro-ci-err
use macros for assignments to ci->err
2014-01-03 07:07:24 -08:00
Yukihiro "Matz" Matsumoto 6d7b3a7bc9 mrb_ary_splat() to call #to_a 2014-01-03 23:57:20 +09:00
h2so5 77f215c837 use macros for assignments to ci->err 2014-01-03 21:54:58 +09:00
Yukihiro "Matz" Matsumoto dc27c2be46 Merge pull request #1634 from cremno/use-mrb_fixnum_p
tiny word boxing optimization
2014-01-02 15:46:00 -08:00
Yukihiro "Matz" Matsumoto 1012c595f2 Merge pull request #1632 from cremno/superfluous-return
remove superfluous return in codedump_all
2014-01-02 15:45:07 -08:00