Commit Graph

718 Commits

Author SHA1 Message Date
Jon 49aa42f3a9 Verify that memory for mrb_state was allocated 2012-06-03 11:11:34 -04:00
Yukihiro Matsumoto 7009a1d8f5 should not disclose metaclass; close #238 2012-06-03 23:26:40 +09:00
Yukihiro Matsumoto e4529c065d make arrays to share bodies 2012-06-03 23:05:31 +09:00
Yukihiro Matsumoto 3be1c88907 str_modify() revives string buffer kept in shared structure if refcnt == 1 2012-06-03 22:59:40 +09:00
Yukihiro "Matz" Matsumoto e66587439a Merge pull request #237 from k-tsj/rescue-only-standarderrors
A rescue clause with no parameter list rescues only StandardErrors
2012-06-03 05:08:48 -07:00
Yukihiro Matsumoto dece49750d string.subseq should update shared refcnt 2012-06-03 21:06:04 +09:00
Yukihiro Matsumoto 361d0ca75d strig.c should properly decref shared entities 2012-06-03 20:59:33 +09:00
Yukihiro Matsumoto 80c8908c4e remove mrb_exec_recursive 2012-06-03 17:59:59 +09:00
Yukihiro Matsumoto 4e46abb869 remove unused mrb_exec_recursive 2012-06-03 17:52:04 +09:00
Kazuki Tsujimoto 0629cf21ba A rescue clause with no parameter list rescues only StandardErrors 2012-06-03 17:48:02 +09:00
Yukihiro Matsumoto 597978c169 mrb_malloc/calloc/realloc should call mrb_garbage_collect before returning NULL 2012-06-03 17:34:23 +09:00
Yukihiro Matsumoto 479df23bc0 puts should return nil; close #215 2012-06-03 15:58:15 +09:00
Yukihiro Matsumoto 28b9619bb4 should decref shared string body on gc_free 2012-06-03 15:45:06 +09:00
Yukihiro Matsumoto 60e8d80fa7 Merge branch 'master' of github.com:mruby/mruby 2012-06-03 15:34:09 +09:00
Yukihiro "Matz" Matsumoto c9227e44fb Merge pull request #236 from liyuray/master
fix an issue that access violation occurred on uninitialized irep block when running "make test" on MINGW.
2012-06-02 23:33:56 -07:00
Yukihiro Matsumoto 5b47ec7a8b remove a blank line 2012-06-03 15:08:43 +09:00
Yukihiro Matsumoto 48ff4f2d36 time - time should not return time, but number 2012-06-03 15:05:18 +09:00
liyuray 5b3628051b issue: make test fail on mingw.
solution: initialize memory allocated.
2012-06-03 14:04:33 +08:00
Yukihiro Matsumoto e88e30524e should have adjusted stack address kept in closures; close #222 2012-06-03 14:44:46 +09:00
Yukihiro Matsumoto 27c2416d20 stack_extend boundary condition was wrong 2012-06-03 14:13:25 +09:00
Yukihiro Matsumoto 6c2c5540e2 should initialize shared->buf as well as s->buf 2012-06-03 09:09:40 +09:00
Yukihiro Matsumoto 52fdeb0225 str_make_shared not to return new string 2012-06-03 09:05:09 +09:00
Yukihiro Matsumoto 7f243a9b53 resolve conflict in test/t/class.rb 2012-06-03 08:23:40 +09:00
Yukihiro Matsumoto df80b7835a Add Class#superclass; a patch made by @bovi; close #234 2012-06-03 08:20:48 +09:00
Yukihiro "Matz" Matsumoto 8583b62277 Merge pull request #233 from bovi/add-class-new-test
Add first test case for Class#new
2012-06-02 16:14:12 -07:00
Yukihiro Matsumoto 12d75223d6 make shared string to reference-counted C structure to reduce GC pressure 2012-06-03 07:55:39 +09:00
Daniel Bovensiepen 57bd8d49ec Add first test case for Class#new and prepare further feature tests for it 2012-06-03 01:50:10 +08:00
Yukihiro Matsumoto 5fcd520514 small refactoring after mruby coding convention 2012-06-03 02:19:12 +09:00
Yukihiro "Matz" Matsumoto 369b556d04 Merge pull request #230 from MobiRuby/Class_new
support Class.new()
2012-06-02 10:17:18 -07:00
Yukihiro Matsumoto 15b9d74fc7 stupid naming error 2012-06-03 02:14:30 +09:00
Yukihiro "Matz" Matsumoto 79ad340c44 Merge pull request #232 from bovi/add-hash-tests
Add test cases for Hash
2012-06-02 10:13:05 -07:00
Yukihiro Matsumoto 1c926e852e removed mruby directory created for xcode 2012-06-03 02:12:32 +09:00
Yukihiro "Matz" Matsumoto b9923ba12f Merge pull request #223 from pbosetti/XCode
X code native target, follow up of #184
2012-06-02 10:08:34 -07:00
Daniel Bovensiepen 2c58690df1 Add test cases for Hash 2012-06-02 23:39:00 +08:00
Yukihiro Matsumoto cc86250297 remove unsafe macros in hash.h 2012-06-03 00:23:59 +09:00
Yuichiro MASUI 8a41d646f1 support Class.new() 2012-06-03 00:05:39 +09:00
Yukihiro Matsumoto ecbaf9cd99 simpler implementation of Hash#empty? 2012-06-02 23:52:32 +09:00
Yukihiro Matsumoto 8d0cc57a43 hash->ht might be NULL; it shouldn't though 2012-06-02 23:50:34 +09:00
Yukihiro Matsumoto 090e896d48 hash->ht might be NULL; it shouldn't though 2012-06-02 23:46:30 +09:00
Yukihiro Matsumoto 81c0e2e031 make color in OBJECT_HEADER unsigned 2012-06-02 23:43:13 +09:00
Yukihiro Matsumoto 7a3605cdd2 Merge branch 'master' of github.com:mruby/mruby 2012-06-02 23:35:59 +09:00
Yukihiro Matsumoto d060c8a713 add Hash#{select/reject} to return Hash as 1.9 2012-06-02 23:21:12 +09:00
Yukihiro "Matz" Matsumoto fd917df55a Merge pull request #229 from bovi/remove-ary-reverse
Remove not used ary_reverse
2012-06-02 06:33:52 -07:00
Yukihiro "Matz" Matsumoto 19f45f2af4 Merge pull request #227 from bovi/add-string-test
Add string test for string interpolation
2012-06-02 06:33:02 -07:00
Yukihiro Matsumoto 22568f9a99 Merge branch 'master' of github.com:mruby/mruby 2012-06-02 22:31:58 +09:00
Daniel Bovensiepen 9b53de0b39 Remove not used ary_reverse 2012-06-02 21:31:28 +08:00
Yukihiro Matsumoto 110cdd82e0 naming convention consistency for hash.h 2012-06-02 21:47:27 +09:00
Yukihiro Matsumoto de133c3715 refactoring around mrb_hash_new 2012-06-02 21:42:52 +09:00
Yukihiro Matsumoto d9dfbb044a remove unused st_hash_end/unit reference 2012-06-02 21:38:44 +09:00
Yukihiro Matsumoto 34c049c63e remove unused mrb_mem_clear 2012-06-02 21:34:10 +09:00