Commit Graph

383 Commits

Author SHA1 Message Date
Yukihiro Matsumoto 48ff4f2d36 time - time should not return time, but number 2012-06-03 15:05:18 +09: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 df80b7835a Add Class#superclass; a patch made by @bovi; close #234 2012-06-03 08:20:48 +09:00
Yukihiro Matsumoto 12d75223d6 make shared string to reference-counted C structure to reduce GC pressure 2012-06-03 07:55:39 +09: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 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 22568f9a99 Merge branch 'master' of github.com:mruby/mruby 2012-06-02 22:31:58 +09: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 34c049c63e remove unused mrb_mem_clear 2012-06-02 21:34:10 +09:00
Yukihiro Matsumoto 54808d1df5 clean appendix comments from array.c 2012-06-02 21:31:03 +09:00
Yukihiro Matsumoto 92ee53146f unify long,size_t to int in array.[ch] 2012-06-02 21:30:04 +09:00
Yukihiro Matsumoto 0e46f49aaa changed prototype mrb_ary_replace to (mrb_state*,mrb_value,mrb_value) 2012-06-02 21:26:30 +09:00
Yukihiro Matsumoto c0c712d33b small refactoring around Array#concat 2012-06-02 21:17:14 +09:00
Yukihiro Matsumoto 687ec8e65c remove ary_reverse that no longer used 2012-06-02 21:08:25 +09:00
Yukihiro Matsumoto 3e9fc0b013 add proper type check (using mrb_get_args) in Array#replace 2012-06-02 21:07:50 +09:00
Yukihiro Matsumoto ca4de06e60 avoid using mrb_value in Array#+ 2012-06-02 21:05:33 +09:00
Yukihiro "Matz" Matsumoto 29d5f616fa Merge pull request #228 from fceller/master
fixed prototype warning (-Wstrict-prototypes)
2012-06-02 04:49:15 -07:00
Frank Celler a3d00a902a fixed prototype: g++ will complain about definition not being a prototype, should work with GCC and VC as well 2012-06-02 12:04:08 +02:00
Yukihiro Matsumoto 98fb528f6f Merge branch 'master' of github.com:mruby/mruby 2012-06-02 19:01:58 +09:00
Yukihiro Matsumoto 231cb59566 Array#reverse revisited 2012-06-02 19:01:00 +09:00
Yukihiro "Matz" Matsumoto 92f1925218 Merge pull request #225 from MobiRuby/fixed_const_missing
fixed const_get && const_missing issue
2012-06-02 01:29:42 -07:00
Yukihiro Matsumoto f78d2fad31 Merge branch 'master' of github.com:mruby/mruby 2012-06-02 17:25:34 +09:00
Yukihiro Matsumoto e65d4938f3 'mrb_sym' used as 'uint32_t'. it's broken portability; based on the work from @crimsonwoods; close #216 2012-06-02 17:25:18 +09:00
Yuichiro MASUI e473ce1ac4 fixed const_get && const_missing issue 2012-06-02 17:00:11 +09:00
Yukihiro "Matz" Matsumoto dafb6ead65 Merge pull request #217 from takahashim/fix-use-mrb_malloc
use mrb_malloc instead of malloc
2012-06-02 00:24:18 -07:00
Masaki Muranaka 703e97d5b3 Use "if" instead "switch". 2012-06-02 08:43:04 +09:00
Yukihiro Matsumoto b2d0f22dee ensure str_modify is called at the beginning of modifying methods 2012-06-02 04:12:23 +09:00
takahashim 49df217957 use mrb_malloc instead of malloc 2012-06-02 01:14:45 +09:00
Yukihiro Matsumoto cd48737e11 mrb_str_concat was broken for shared strings; close #214 2012-06-02 00:07:05 +09:00
Yukihiro Matsumoto a0b30fc01f OP_RETURN operand should be stack position of the new scope, not the current scope 2012-06-01 23:56:17 +09:00
Yukihiro Matsumoto d6337e48ad rest argument offset might be -1 that means empty 2012-06-01 23:54:43 +09:00
Yukihiro Matsumoto 364f7e8f37 remove unused mrb_f_send; and rename mrb_f_send_m to mrb_f_send 2012-06-01 21:23:54 +09:00
Yukihiro Matsumoto 26ac26bd4b remove spawn (and backtick) method that cannot be implemented without platform support 2012-06-01 21:22:40 +09:00
Yukihiro Matsumoto 9ec6db5e38 reorder arguments to mrb_get_args in mrb_f_send_m 2012-06-01 21:21:11 +09:00
Yukihiro Matsumoto 364e6b5a50 symbol table key should be mrb_sym, not int32_t 2012-06-01 09:44:19 +09:00
Yukihiro Matsumoto 8180fee180 Merge branch 'master' of github.com:mruby/mruby 2012-06-01 08:17:10 +09:00
Yukihiro "Matz" Matsumoto 0d15cfd5ec Merge pull request #211 from MobiRuby/add_kernel_send
add Kernel#send
2012-05-31 16:16:49 -07:00
Yukihiro Matsumoto 48d5df9987 Merge branch 'master' of github.com:mruby/mruby 2012-06-01 08:15:07 +09:00
Yuichiro MASUI 481d2874f1 add Kernel#send 2012-06-01 04:39:48 +09:00
Yukihiro Matsumoto 9b9b345697 remove unnecessary header inclusion from hash.c 2012-06-01 02:45:23 +09:00
Yukihiro Matsumoto e36285769a new API mrb_gc_protect() to add object to arena 2012-06-01 02:40:52 +09:00