Jun Hiroe
b9632bce46
Refactor Enumerable#all?
2014-03-17 01:18:44 +09:00
Yukihiro "Matz" Matsumoto
0d82ada922
Merge pull request #1869 from suzukaze/add-test-enumerable.rb
...
Add test enumerable.rb
2014-03-17 00:15:51 +09:00
Yukihiro "Matz" Matsumoto
d53423fb7d
Merge pull request #1870 from ksss/convert_type
...
fix bool number to macro
2014-03-17 00:15:01 +09:00
Yukihiro "Matz" Matsumoto
e4ae3bf661
Merge pull request #1871 from ksss/numeric-plus
...
fix bug when `0 + other object`
2014-03-17 00:14:42 +09:00
Yukihiro "Matz" Matsumoto
5140e27b5a
Merge pull request #1872 from ksss/numeric-mul
...
fix bug when `0 * other object`
2014-03-17 00:14:16 +09:00
Yukihiro "Matz" Matsumoto
777d460fb8
Merge pull request #1873 from suzukaze/refactor-assert.rb
...
Refactor assert_true
2014-03-17 00:13:45 +09:00
Yukihiro "Matz" Matsumoto
ffdef362ec
Merge pull request #1874 from ksss/float-plus
...
float + nil should be raise TypeError
2014-03-17 00:13:24 +09:00
ksss
0fab9d557e
float + nil should be raise TypeError
2014-03-16 23:39:58 +09:00
Jun Hiroe
d27dcbe9d2
Refactor assert_true
2014-03-16 23:26:29 +09:00
ksss
9dcce29749
fix bug when 0 * other object
2014-03-16 23:08:31 +09:00
ksss
e9f3dca0f4
fix bug when 0 + other object
2014-03-16 22:52:25 +09:00
ksss
a481976056
fix bool number to macro
2014-03-16 21:06:08 +09:00
Jun Hiroe
8ba04a09a9
Add Enumerable#any?(&block) tests
2014-03-16 18:58:39 +09:00
Jun Hiroe
cf556f0ad9
Add Enumerable#all?(&block) tests
2014-03-16 18:49:05 +09:00
Yukihiro "Matz" Matsumoto
18bebd3acd
Merge pull request #1867 from cubicdaiya/issues/indent_style
...
Unify indent style
2014-03-16 14:41:01 +09:00
cubicdaiya
cee152670a
unify indent style
2014-03-16 07:44:44 +09:00
Yukihiro "Matz" Matsumoto
ef884caca5
Merge branch 'master' of github.com:mruby/mruby
2014-03-15 16:03:21 +09:00
Yukihiro "Matz" Matsumoto
b09b774dda
Merge pull request #1863 from take-cheeze/fiber_double_resume
...
Add Fiber's double resume test and fix it.
2014-03-15 15:59:54 +09:00
Yukihiro "Matz" Matsumoto
62505d51cc
calc hash value directly for strings, symbols and numbers
2014-03-15 15:53:12 +09:00
Yukihiro "Matz" Matsumoto
048bca43c9
string length type to be mrb_int
2014-03-15 15:47:21 +09:00
Yukihiro "Matz" Matsumoto
c476c1b528
symbol length type to be mrb_int
2014-03-15 15:43:40 +09:00
take_cheeze
62f05614ee
Add Fiber's double resume test and fix it.
2014-03-15 15:18:06 +09:00
Yukihiro "Matz" Matsumoto
b868ce8a77
Hash#shift may return any entries
2014-03-15 15:01:17 +09:00
Yukihiro "Matz" Matsumoto
ddd1bfda02
type of mrb_type() should be enum mrb_vtype when MRB_NAN_BOXING is on
2014-03-15 14:30:17 +09:00
Yukihiro "Matz" Matsumoto
fc75cff14e
Merge pull request #1859 from ksss/enumerator
...
Fix Enumerator
2014-03-15 11:35:02 +09:00
ksss
447764763c
add test for Array#each_index if non block given
2014-03-15 08:21:39 +09:00
ksss
4f8e11ae57
optimize from each to enumerator_block_call
2014-03-15 08:21:39 +09:00
ksss
0bb7f5e950
fix variable name typo
2014-03-15 08:21:39 +09:00
ksss
9447c637a5
test split and to detail
2014-03-15 08:21:34 +09:00
ksss
6b3cc0052d
fix self modifying bug
2014-03-15 08:15:16 +09:00
ksss
47fc784b56
fix return value for with_index
2014-03-15 08:15:16 +09:00
ksss
bc63518fa7
modify core method that return Enumerator object if not block given
2014-03-15 08:15:04 +09:00
ksss
29964cfdac
make private method enumerator_block_call
2014-03-14 23:42:04 +09:00
Yukihiro "Matz" Matsumoto
e893349e95
Merge pull request #1857 from mitchellh/f-fix-mingw-time
...
Don't redefine timeval in MinGW environments
2014-03-14 16:30:48 +09:00
Mitchell Hashimoto
3843a286b6
Don't redefine timeval on MingW64 environments
2014-03-13 23:23:28 -07:00
Yukihiro "Matz" Matsumoto
94df66fb08
Merge branch 'master' of github.com:mruby/mruby
2014-03-14 07:40:07 +09:00
Yukihiro "Matz" Matsumoto
1b6f6413db
Merge pull request #1855 from take-cheeze/fix_mrbc_compile_error
...
Fix compile error check of Mrbc command.
2014-03-14 07:39:53 +09:00
take_cheeze
deb5f59bec
fix compile error check of Mrbc command
2014-03-14 03:44:22 +09:00
Yukihiro "Matz" Matsumoto
2bd099c842
remove new_label(s) where label position can be obtained from genop()
2014-03-14 03:11:11 +09:00
Yukihiro "Matz" Matsumoto
8094a503f0
move dependency check from runtime to mrbgem.rake
2014-03-14 02:59:50 +09:00
Yukihiro "Matz" Matsumoto
58362fc30c
remove ambiguity warnings
2014-03-14 02:44:14 +09:00
Yukihiro "Matz" Matsumoto
113ab60784
mruby-enumerator: move definitions in core_mod.rb to mrblib core
2014-03-14 02:41:22 +09:00
ksss
463c5f83c3
add mruby-enumerator
2014-03-13 23:47:12 +09:00
Yukihiro "Matz" Matsumoto
91f2d47d34
too much optimization
2014-03-13 23:44:10 +09:00
Yukihiro "Matz" Matsumoto
8cc487c465
peephole optimization for OP_JMP{IF,NOT}
2014-03-13 19:54:50 +09:00
Yukihiro "Matz" Matsumoto
5b3c76ee48
Merge pull request #1849 from cremno/add-mrb_int_bit-macro
...
add MRB_INT_BIT
2014-03-13 03:09:58 +09:00
Yukihiro "Matz" Matsumoto
ad04b45e5b
Merge pull request #1851 from tmash06/add_include_limit_h
...
add including limits.h.
2014-03-13 03:09:03 +09:00
Yukihiro "Matz" Matsumoto
4e1a10f035
Merge pull request #1850 from cremno/safer-lit-macros
...
add mrb_strlen_lit
2014-03-13 03:08:31 +09:00
tmash06
cfcd2e2dc9
add including limits.h.
...
Because Android's libc(bionic) defines SIZE_MAX at limits.h.
2014-03-13 02:37:09 +09:00
cremno
e4afd5374f
add mrb_strlen_lit which makes _lit macros safer
...
strlen(3) + string literal is usually optimized but strlen(3) doesn't
check if its argument is really a string literal. This is important for
mruby's _static functions to which some _lit macros are expanded (string
literals have static storage). See comment for some additional info.
remove unnecessary parentheses
2014-03-12 17:56:08 +01:00