Commit Graph

1739 Commits

Author SHA1 Message Date
h2so5 db0eaa6352 Fix Range#== 2013-06-30 23:40:53 +09:00
Yukihiro "Matz" Matsumoto 6852680d36 Merge pull request #1321 from suzukaze/refactor-range-c
Refactor mrb_range_eq() func in range.c.
2013-06-29 22:10:51 -07:00
Jun Hiroe a2210274ea Refactor mrb_range_eq() func in range.c. 2013-06-30 02:11:37 +09:00
Jun Hiroe 73d4491174 Refactor mrb_obj_eq() func in object.c. 2013-06-30 00:03:01 +09:00
Yukihiro "Matz" Matsumoto dfb240627f Merge pull request #1304 from iij/pr_nil_methods
add nil.to_a, nil.to_f, nil.to_i methods
2013-06-29 06:49:29 -07:00
Yukihiro "Matz" Matsumoto e33249e267 Merge pull request #1318 from Fleurer/refactor_realloc
refactor mrb_realloc() in gc.c
2013-06-29 06:33:38 -07:00
Yukihiro "Matz" Matsumoto 466d0ad717 Merge pull request #1317 from cremno/crc.c-include-stddef.h
crc.c - replace POSIX with C99 header
2013-06-29 01:04:44 -07:00
Yukihiro "Matz" Matsumoto c963855a5a Merge pull request #1314 from suzukaze/refactor-hash-c
Refactor mrb_hash_empty_p() func in hash.c
2013-06-29 01:03:34 -07:00
Yukihiro "Matz" Matsumoto 18121fba37 Merge pull request #1313 from mimaki/fix-mrb_get_args-z-format
ArgumentError raised when mrb_get_args(mrb, "z", ...) receives substring.
2013-06-29 01:02:14 -07:00
fleuria 68f31e94f5 refactor mrb_realloc()
remove the redundant codes with mrb_malloc_simple()
2013-06-28 23:15:31 +08:00
Cremno 5835406e6b replaced POSIX header with standard C header 2013-06-28 08:05:33 +02:00
Akira Yumiyama 36fc42e7db add nil.to_a, nil.to_f, nil.to_i methods 2013-06-28 10:01:07 +09:00
Jun Hiroe 0e5ecae325 Refactor mrb_hash_empty_p() func in hash.c 2013-06-27 21:23:12 +09:00
mimaki 42991fe092 fix unnecessary exception in mrb_get_args with "z" format. 2013-06-27 20:18:48 +09:00
Takashi Sogabe dfb4d555c4 Avoid read_escape() in case of regexp 2013-06-27 17:15:18 +09:00
Yukihiro "Matz" Matsumoto b44309b4b2 Merge pull request #1308 from suzukaze/refactor-hash-c
Refactor mrb_hash_has_keyWithKey() func in hash.c
2013-06-26 16:00:29 -07:00
Jun Hiroe 4dfa2033b6 Refactor mrb_hash_has_keyWithKey() func in hash.c 2013-06-26 23:00:42 +09:00
Carson McDonald 1d4b26ecfc Add arena save/restore around use of hash KEY. 2013-06-26 08:37:28 -04:00
Yukihiro "Matz" Matsumoto cf840c1d05 use mrb_malloc_simple() to allocate crc buffer; close #1302 2013-06-25 15:39:34 +09:00
Yukihiro "Matz" Matsumoto 3ceeb0be95 add mrb_malloc_simple() that returns NULL on error 2013-06-25 15:38:28 +09:00
kyab e9ebd6f87a Fix crash on load *mrb 2013-06-25 02:12:56 +09:00
Yukihiro "Matz" Matsumoto ec9fdd5c4c Merge branch 'master' of github.com:mruby/mruby 2013-06-24 00:41:48 +09:00
Yukihiro "Matz" Matsumoto b01670a3d3 fixed a bug in push back list; close #1298 2013-06-24 00:41:34 +09:00
kyab 31fbfb51db Add fallback for allocate CRC buffer 2013-06-22 04:02:55 +09:00
Masaki Muranaka e4ae05ed9b Cleanup mrb_str_resize(). 2013-06-21 16:06:35 +09:00
cubicdaiya 967c9cff2b make mrb_str_new_cstr DRY
Using str_new eliminates duplicated codes in mrb_str_new_cstr.
2013-06-21 09:53:10 +09:00
kyab cb05763928 Fix compile warning for abort 2013-06-20 18:00:10 +09:00
Yukihiro "Matz" Matsumoto f3c1048756 fix indent 2013-06-13 09:51:09 +09:00
Daniel Bovensiepen c9caea64c8 Singleton raises TypeError on #new 2013-06-09 11:21:51 +08:00
Yukihiro "Matz" Matsumoto 16424a14dc Merge pull request #1278 from monaka/pr-calloc-improvement
Check parameters strictly.
2013-06-11 00:25:50 -07:00
Masaki Muranaka 97b9caf892 Check parameters strictly.
calloc in C99 is expected to return NULL when nelem * len == 0.
2013-06-11 16:09:12 +09:00
Yukihiro "Matz" Matsumoto ae288fe78d add assertion that check sizeof(void*) should be 4 bytes when MRB_NAN_BOXING is in use 2013-06-11 12:43:42 +09:00
Yukihiro "Matz" Matsumoto 20ef86bea0 Merge pull request #1276 from h2so5/replace-isupper-msvc
Replace isupper with a macro in msvc
2013-06-09 15:55:17 -07:00
h2so5 b543046070 Use casting instead of a macro 2013-06-10 07:17:46 +09:00
h2so5 f8df722e92 Replace isupper with a macro in msvc 2013-06-09 23:05:35 +09:00
Carson McDonald cf0fbcd0ee Remove incorrect removal of iv 2013-06-09 07:50:07 -04:00
Carson McDonald c75bfc93a3 Raise a NameError when symbol isn't found. 2013-06-08 10:43:34 -04:00
Carson McDonald ab4ecac07b bob doesn't have new so don't undef 2013-06-08 10:42:18 -04:00
Carson McDonald 5fbceaf4a1 new is removed from Integer so doesn't need to be removed again in Fixnum 2013-06-08 10:38:09 -04:00
Yukihiro "Matz" Matsumoto 7b8ae1b8b6 Merge branch 'master' of github.com:mruby/mruby 2013-05-26 21:27:16 +09:00
kimu_shu e720782f81 Add MRB_WORD_BOXING mode (represent mrb_value as a word) 2013-05-26 10:09:17 +09:00
Yukihiro "Matz" Matsumoto 6557ee938a mruby error messages should be directed to stderr 2013-05-26 02:13:02 +09:00
Yukihiro "Matz" Matsumoto d78f23d28b fix fiber GC problem 2013-05-26 00:37:44 +09:00
Yukihiro "Matz" Matsumoto aa1cc2360f fixed a bug in initializing post mandatory block parameters 2013-05-25 00:45:06 +09:00
Yukihiro "Matz" Matsumoto 97a11305c6 fiber do not work on MRB_NAN_BOXING 2013-05-24 15:35:55 +09:00
Yukihiro "Matz" Matsumoto 76ddf86c72 manage fiber status (create|running|resumed|terminated) 2013-05-23 15:24:31 +09:00
Yukihiro "Matz" Matsumoto 93d710117d should have protected the return value from GC, even when the method is defined in Ruby; close #1263 2013-05-23 15:14:27 +09:00
Yukihiro "Matz" Matsumoto 2045a35292 garbage collect context (fiber) properly 2013-05-22 11:05:22 +09:00
Yukihiro "Matz" Matsumoto 1cfd3fb9eb remove unnecessary assignment 2013-05-21 09:10:14 +09:00
Yukihiro "Matz" Matsumoto a17fd80eb4 error in initializing callinfo stack in cipush(); close #1261 2013-05-21 07:49:08 +09:00