Commit Graph

696 Commits

Author SHA1 Message Date
Masamitsu MURASE b48cfea736 Protect deleted key and value from GC. 2012-07-28 21:10:57 +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
Yukihiro Matsumoto 526dd09b7a add Module#ancestors 15.2.2.4.9 2012-07-17 01:33:40 +09:00
Masamitsu MURASE ba08a2b9dd Add Module#extend_object and Module#extended. 2012-07-17 00:42:35 +09:00
Yukihiro "Matz" Matsumoto 5495ee96ae Merge pull request #374 from monaka/pr-reduce-strlen-3
Reduce strlen()
2012-07-16 02:36:30 -07:00
Masaki Muranaka cd50242146 Reduce strlen(). refs #301 2012-07-16 17:58:20 +09:00
Masaki Muranaka 0339317bd6 Supress using switches with fallthru or a empty default label. 2012-07-16 13:36:36 +09:00
Yukihiro Matsumoto 49cac5f97d case should care about return value; close #372 2012-07-16 11:54:35 +09:00
Yukihiro Matsumoto 3705bfb020 DIABLE_STDIO to disable __printstr__ 2012-07-15 17:30:15 +09:00