Commit Graph

703 Commits

Author SHA1 Message Date
Masaki Muranaka 22b032fcdf mrb_hash_delete_key(), mrb_hash_keys() : Declare as static.
mrb_check_hash_type(): Remove as no implementation.
2012-07-29 20:11:43 +09:00
Yukihiro "Matz" Matsumoto 0584874e59 Merge pull request #402 from monaka/pr-remove-commented-out-code
Remove commented out code.
2012-07-29 01:57:39 -07:00
Masaki Muranaka b2fc62f3a9 Remove commented out code. 2012-07-29 15:25:14 +09:00
Masamitsu MURASE 99e2035f42 Modify mrb_vm_define_class.
* Check mismatch of superclass.
* Check constant value whose name is specified as a class's name.
2012-07-29 14:21:12 +09:00
Akira Kuroda a2aa7e7f52 fix segmentation fault in Array#first 2012-07-29 00:21:40 +09:00
Yukihiro "Matz" Matsumoto 919a84771b Merge pull request #398 from masamitsu-murase/modify_hash_shift
Protect deleted key and value from GC.
2012-07-28 06:44:55 -07:00
Masamitsu MURASE b48cfea736 Protect deleted key and value from GC. 2012-07-28 21:10:57 +09:00
Masamitsu MURASE a985cf7945 Modify ci->nregs. 2012-07-28 19:16:54 +09:00
Yukihiro Matsumoto 7f8076ef90 more peephole optimization on OP_MOVE 2012-07-28 11:23:29 +09:00
Yukihiro Matsumoto 88043c5ccd remove <stdio.h> that added for debugging 2012-07-27 12:54:19 +09:00
Yukihiro Matsumoto 638a66fd78 adjust ci->nregs for C implemented methods 2012-07-27 10:05:47 +09:00
Yukihiro Matsumoto 92d37403f1 temporary protection not to access out of stack 2012-07-27 05:57:22 +09:00
Max Anselm ea25912999 Undefine new for class rather than instance.
Applies to NilClass, TrueClass, FalseClass, Fixnum, and Float. Add
mrb_undef_class_method for DRYness.
2012-07-25 18:22:26 -04:00
Yukihiro "Matz" Matsumoto ec309c6fd7 Merge pull request #393 from akuroda/array_last_fix
fix segmentation fault in Array#last
2012-07-24 16:55:12 -07:00
Yukihiro Matsumoto 08213e32e8 const reference from instance_eval should not cause SEGV 2012-07-25 08:53:49 +09:00
Akira Kuroda f114e3e252 fix segmentation fault in Array#last 2012-07-25 00:05:51 +09:00
Yukihiro Matsumoto 88b638cf82 instance_eval should set target_class in the block 2012-07-24 23:16:41 +09:00
Yukihiro Matsumoto 42b7d75a67 instance_eval should raise NotImplementedError on string argument 2012-07-24 22:57:59 +09:00
Yukihiro Matsumoto 328353b287 treat exceptional usec value 2012-07-23 23:25:00 +09:00
Yukihiro Matsumoto fcc64c9f93 Merge branch 'master' of github.com:mruby/mruby 2012-07-23 17:06:58 +09:00
Masaki Muranaka d73a54d80a Use memcpy instead of strncpy 2012-07-23 10:18:11 +09:00
Yukihiro Matsumoto cac740c750 remove duplicated variable declaration 2012-07-23 08:45:53 +09:00
Yukihiro Matsumoto 8b6f6faf1e separate sec and usec in mrb_time_plus 2012-07-23 08:38:24 +09:00
Yukihiro Matsumoto 8dc69cf216 time.c: separate sec and usec to keep precisions 2012-07-23 07:33:18 +09:00
Yukihiro "Matz" Matsumoto 6cd32ee4c2 Merge pull request #391 from crimsonwoods/android_ndk_support
fix: SIZE_MAX is not defined in "stdint.h"
2012-07-22 14:02:09 -07:00
Yukihiro Matsumoto a9a91c3561 Time.at should take optional second argument 2012-07-22 23:16:40 +09:00
crimsonwoods d61cb77346 fix: SIZE_MAX is not defined in "stdint.h" 2012-07-22 23:10:15 +09:00
Yukihiro Matsumoto 3de8c4441e Merge branch 'master' of github.com:mruby/mruby 2012-07-22 23:07:45 +09:00
Yukihiro Matsumoto 6ada0df27e mruby should print exception 2012-07-22 23:07:21 +09:00
Masamitsu MURASE a4c6b1c75e Remove initialization of mt. 2012-07-22 00:35:49 +09:00
Masamitsu MURASE 7010aebbce Modify allocation size of mrb->irep. 2012-07-21 19:40:20 +09:00
Jiro Nishiguchi 4bc416cae9 mrb_load_* should return value 2012-07-19 23:13:29 +09:00
Yukihiro Matsumoto 4b9ef5dabe use no malloc in mrb_funcall; close #386 2012-07-19 17:45:13 +09:00
Yukihiro Matsumoto c697e111c8 Merge branch 'master' of github.com:mruby/mruby 2012-07-19 08:24:10 +09:00
Yukihiro Matsumoto b60baedae5 replace strcpy by memcpy; close #383 2012-07-19 08:23:49 +09:00
Masaki Muranaka f146fd0397 MRB_FUNCALL_ARGC_MAX support. (refs comments in #324). 2012-07-18 15:47:57 +09:00
Masaki Muranaka 7bb71a7d58 Remove magic numbers in mrb_funcall() 2012-07-18 15:26:53 +09:00
Yukihiro "Matz" Matsumoto 8eca0d5609 Merge pull request #378 from masamitsu-murase/modify_proc_lambda
Modify proc_lambda
2012-07-17 16:25:36 -07:00
Yukihiro "Matz" Matsumoto 4df4a3f0bf Merge pull request #380 from masamitsu-murase/modify_respond_to
Modify return value of 'respond_to?'
2012-07-17 16:24:16 -07:00
Masamitsu MURASE a0c4f8558b Kernel#respond_to? should return false if the method is undefined. 2012-07-18 02:17:29 +09:00
Masamitsu MURASE 2936ba19aa proc_lambda should return blk instead of self. 2012-07-18 02:11:43 +09:00
Masamitsu MURASE 265aa0b885 Undef Class#extend_object. 2012-07-18 02:07:42 +09:00
Yukihiro Matsumoto 1cffba6ae1 use fwrite() instead of loop putc 2012-07-17 23:50:19 +09:00
Yukihiro Matsumoto 36664174cb change return type of mrb_p() to void 2012-07-17 23:48:55 +09:00
Yukihiro Matsumoto cb8fe4400f mrb_p() should return the argument 2012-07-17 23:41:02 +09:00
Yukihiro Matsumoto 87daf837d6 prepare empty mrb_p() to make like work 2012-07-17 23:40:05 +09:00
Yukihiro Matsumoto 0ac2d7ac97 remove debug print 2012-07-17 23:38:43 +09:00
Yukihiro Matsumoto 8ce2af99f3 CRuby style inclusion order; close #377 2012-07-17 03:31:56 +09:00
Yukihiro Matsumoto e8ade38104 undef append_features for Classes 2012-07-17 02:17:16 +09:00
Yukihiro Matsumoto 094fdc4367 resolve conflict 2012-07-17 02:05:39 +09:00