Commit Graph

6018 Commits

Author SHA1 Message Date
Tatsuhiko Kubo e035508efd Fix error handling for mrb_generate_code().
The return value of mrb_generate_code()
must be null-checked before referencing.
2014-08-19 17:50:07 +09:00
Yukihiro "Matz" Matsumoto f62dc56ba2 Merge pull request #2539 from cubicdaiya/issues/mirb_error_handlings
Fix error handlings in mirb.
2014-08-19 16:18:06 +09:00
Tatsuhiko Kubo 55ee7fe79c Fix error handlings in mirb.
mrb_parser_new() and mrb_generate_code() may return NULL.
2014-08-19 16:04:48 +09:00
Yukihiro "Matz" Matsumoto 444e4b7976 Merge pull request #2538 from kkkkkt/refactor-method
refactor mruby method(fix indent. remove temporary value etc)
2014-08-19 10:32:39 +09:00
kkkkkt 2f1d12c717 revert mrb_equal method 2014-08-18 18:54:46 +09:00
kkkkkt 9da37cdfd1 refactor mruby method(fix indent. remove temporary value, duplicate procedure) 2014-08-18 10:58:48 +09:00
Yukihiro "Matz" Matsumoto 98a95530c2 Merge pull request #2537 from chasonr/math-functions
Improve replacement math functions for Visual C++.
2014-08-16 17:56:02 +09:00
Yukihiro "Matz" Matsumoto 47ab5138d2 Merge pull request #2536 from kkkkkt/refactor-classc
Refactor classc
2014-08-16 17:55:04 +09:00
chasonr e23deaafc2 Improve replacement math functions for Visual C++. 2014-08-15 23:15:45 -04:00
go kikuta 14c36f9f21 use mrb_false_value instead of mrb_bool_value 2014-08-16 02:08:51 +09:00
go kikuta 1c3d05b5b6 refactor class.c methods (fix indent, remove unneed temp value. ) 2014-08-16 02:06:05 +09:00
Yukihiro "Matz" Matsumoto ea959d4436 Merge pull request #2535 from kkkkkt/remove-unused-variable
removed unused variable in range_beg_len
2014-08-16 01:16:23 +09:00
go kikuta d5fd823d82 removed unused variable in range_beg_len 2014-08-16 01:09:40 +09:00
Yukihiro "Matz" Matsumoto 6496195d21 Merge pull request #2533 from suzukaze/fix-indents
Fix indents in numeric.c
2014-08-15 22:59:18 +09:00
Yukihiro "Matz" Matsumoto c066cf4585 Merge pull request #2534 from suzukaze/refactor-numeric.c
Refactor flo_mod func in numeric.c
2014-08-15 22:59:00 +09:00
Jun Hiroe 2ba257ccb4 Fix indents in numeric.c 2014-08-15 20:51:43 +09:00
Jun Hiroe 9b176207a4 Refactor flo_mod func in numeric.c 2014-08-15 20:50:20 +09:00
Yukihiro "Matz" Matsumoto 8a2291b2cd Merge pull request #2532 from chasonr/float-to-string
Remove some roundoff from mrb_flo_to_str
2014-08-14 12:43:06 +09:00
chasonr f7389bb1e6 Remove some roundoff from mrb_flo_to_str 2014-08-13 23:31:22 -04:00
Yukihiro "Matz" Matsumoto 6c1dfc9566 need to add space for receiver to proc env; fix #2525 2014-08-13 23:58:32 +09:00
Yukihiro "Matz" Matsumoto 2b9e5e751b add write barrier when iv is copied 2014-08-13 22:55:32 +09:00
Yukihiro "Matz" Matsumoto 170ba511f2 remove unnecessary mrb_float casting; ref #2531 2014-08-13 21:58:52 +09:00
Yukihiro "Matz" Matsumoto 598ff395b4 Merge pull request #2531 from kkkkkt/refactor-numeric-hash-method
refactor mrb_hash_shift, num_pow, flo_eq, flo_finite_p method
2014-08-13 21:57:46 +09:00
kkkkkt a9b37bff4b refactor mrb_hash_shift, num_pow, flo_eq, flo_finite_p method 2014-08-13 18:26:58 +09:00
Yukihiro "Matz" Matsumoto ad7085e475 Merge pull request #2529 from kkkkkt/change-string-method-mrb-aspec
changed some string method's mrb-aspec
2014-08-12 18:46:06 +09:00
kkkkkt b27738f036 changed some string method's mrb-aspec 2014-08-12 16:20:02 +09:00
Yukihiro "Matz" Matsumoto fa3629b42c Merge pull request #2527 from iij/pr-remove-mrb_str_bytesize
mrb_str_bytesize is a carbon copy of mrb_str_size.  remove it.
2014-08-11 20:31:34 +09:00
Tomoyuki Sahara c4f5c2473a mrb_str_bytesize is a carbon copy of mrb_str_size. remove it.
mruby core does not support any character encodings but ASCII.
2014-08-11 17:46:40 +09:00
Yukihiro "Matz" Matsumoto 712ad32b2a Merge pull request #2526 from iij/pr-test-only-gem
fix build when neither src nor mrblib directory exists.
2014-08-11 17:43:33 +09:00
Tomoyuki Sahara 547f3177a9 fix build when neither src nor mrblib directory exists. 2014-08-11 17:30:21 +09:00
Yukihiro "Matz" Matsumoto 2d5943b696 Merge pull request #2524 from mattn/fix-succ
Fix String#succ. "-".succ should be "."
2014-08-11 17:24:11 +09:00
Yukihiro "Matz" Matsumoto 4c0f40f6a5 Merge pull request #2523 from kkkkkt/changed_string_method_comment
changed mrb_str_size and mrb_str_bytesize comments.
2014-08-11 17:22:37 +09:00
mattn 4ece1e3e29 "-a-a-".succ should be "-a-b-" 2014-08-11 15:00:44 +09:00
mattn 3103d063e2 Fix String#succ. "-a-".succ should be "-b-" 2014-08-11 14:28:05 +09:00
mattn 34f40b0a01 Fix String#succ. "-".succ should be "." 2014-08-11 14:01:10 +09:00
kkkkkt 513be0052e changed mrb_str_size and mrb_str_bytesize comments. 2014-08-11 12:02:31 +09:00
Yukihiro "Matz" Matsumoto 2b74fa54de Merge pull request #2503 from cremno/dont-always-generate-gem-functions
don't always generate gem functions
2014-08-09 23:34:38 +09:00
Yukihiro "Matz" Matsumoto f3f54cb619 Merge pull request #2522 from dycoon/debug_timer
timer on windows bug fixed.
2014-08-09 22:09:48 +09:00
dycoon e7249e4590 timer on windows bug fixed. 2014-08-09 21:40:52 +09:00
Yukihiro "Matz" Matsumoto 67153b0f17 Merge pull request #2521 from kou/fix-class-variable-and-singleton-class-method
Fix a bug that class variable can't be referenced from class method
2014-08-09 15:52:41 +09:00
Kouhei Sutou e75e2083fd Fix a bug that class variable can't be referenced from class method
Class method defined in singleton class should be evaluated in class
context not singleton class context.

fix #2515
2014-08-09 15:06:17 +09:00
Yukihiro "Matz" Matsumoto 39488f0baf git push origin masterMerge branch 'mattn-string-succ' 2014-08-08 23:16:30 +09:00
Yukihiro "Matz" Matsumoto 7a5d3c19c6 remove test for succ on Unicode (non-ASCII) char; #2520 2014-08-08 23:16:12 +09:00
Yukihiro "Matz" Matsumoto 0381de3ee6 Merge branch 'string-succ' of https://github.com/mattn/mruby into mattn-string-succ 2014-08-08 23:15:14 +09:00
mattn dc0c354658 Add String#succ, String#succ!, String#next, String#next! 2014-08-08 17:58:07 +09:00
Yukihiro "Matz" Matsumoto b54682bb8e Merge pull request #2519 from SatoshiOdawara/fix_context_of_eval
fixed evaluation context of eval(string) and instance_eval(string)
2014-08-08 17:13:27 +09:00
Satoshi Odawara 432e8e9ea9 fixed evaluation context of eval(string) and instance_eval(string) 2014-08-08 16:59:40 +09:00
Yukihiro "Matz" Matsumoto 569c7dec5f move StopIteration to core; close #2518 2014-08-08 16:08:53 +09:00
Yukihiro "Matz" Matsumoto 0e45aa0066 Merge pull request #2517 from kkkkkt/remove_nonneed_space
removed non-need space
2014-08-08 12:11:40 +09:00
Yukihiro "Matz" Matsumoto b609054f75 Merge pull request #2516 from suzukaze/fix-typo-gc
Fix typo in gc.c
2014-08-08 12:11:03 +09:00