Commit Graph

6038 Commits

Author SHA1 Message Date
Tatsuhiko Kubo 45103ebc20 use mrb_str_cat_lit() instead of mrb_str_cat_cstr(). 2014-08-21 16:51:08 +09:00
Yukihiro "Matz" Matsumoto 4d72d65db1 Merge pull request #2548 from take-cheeze/mrb_data_init
Add API `mrb_data_init` to initialize `MRB_TT_DATA` tagged instance.
2014-08-20 23:42:05 +09:00
Yukihiro "Matz" Matsumoto ae28365341 Merge branch 'master' of github.com:mruby/mruby 2014-08-20 23:39:48 +09:00
Yukihiro "Matz" Matsumoto e73a091343 Merge branch 'cubicdaiya-issues/scope_new_error_handlings' 2014-08-20 23:38:49 +09:00
Yukihiro "Matz" Matsumoto 05ede52239 should use non NULL scope for raise_error(); ref #2547 2014-08-20 23:38:37 +09:00
Yukihiro "Matz" Matsumoto 399f88fa7b Merge pull request #2546 from cubicdaiya/issues/emptylines
Remove empty lines.
2014-08-20 23:34:37 +09:00
take_cheeze b3d0585fe5 Add API mrb_data_init to initialize MRB_TT_DATA tagged instance. 2014-08-20 22:42:35 +09:00
Tatsuhiko Kubo ae2d49811a Fix allocation-error-handlings for scope_new(). 2014-08-20 12:25:29 +09:00
Tatsuhiko Kubo 2b283393c6 Remove empty lines. 2014-08-20 12:07:36 +09:00
Yukihiro "Matz" Matsumoto f6f31a8ecd Merge pull request #2545 from cubicdaiya/issues/use_null_insteadof_zero
Use specified macro(NULL) instead of magic-number.
2014-08-20 09:26:46 +09:00
Yukihiro "Matz" Matsumoto 1251b0d5c9 Merge pull request #2542 from cubicdaiya/issues/mrb_pool_realloc_error_handlings
Fix error handling for mrb_pool_realloc().
2014-08-20 09:26:11 +09:00
Yukihiro "Matz" Matsumoto bceaade168 Merge pull request #2543 from cubicdaiya/issues/mrb_open_allocf_error_handlings
Fix error handling for mrb_open_allocf().
2014-08-20 09:25:33 +09:00
Yukihiro "Matz" Matsumoto 28cf769a6e Merge pull request #2544 from cubicdaiya/issues/mrb_open_core_error_handling
Fix error handlings for mrb_open_core().
2014-08-20 09:25:10 +09:00
Tatsuhiko Kubo effc44f265 Fix error handlings for mrb_open_core(). 2014-08-20 05:48:09 +09:00
Tatsuhiko Kubo 53a7549e1c Fix error handling for mrb_open_allocf().
When DISABLE_GEMS is not defined and
a return value of mrb_open_core() is NULL,
mrb_open_allocf() may cause SEGV.
2014-08-20 05:15:21 +09:00
Tatsuhiko Kubo 5ee00453e0 Fix error handling for mrb_pool_realloc().
mrb_pool_alloc() may return NULL.
2014-08-20 05:07:40 +09:00
Tatsuhiko Kubo ae306793f2 Use specified macro(NULL) instead of magic-number. 2014-08-20 04:34:03 +09:00
Yukihiro "Matz" Matsumoto d49f8517a6 Merge pull request #2540 from cubicdaiya/issues/read_irep_record_error_handlings
Fix error hanldlings in read_irep_record().
2014-08-19 21:52:23 +09:00
Yukihiro "Matz" Matsumoto c7fda2232b Merge pull request #2541 from cubicdaiya/issues/codegen_error_handling
Fix error handling for mrb_generate_code().
2014-08-19 20:11:59 +09:00
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
Tatsuhiko Kubo ff9582833d Fix error hanldlings in read_irep_record().
read_irep_record_1() and read_irep_record() may return NULL.
2014-08-19 17:42:20 +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