Yukihiro Matsumoto
6410cdf3bf
do not undef config macros
2012-06-27 01:13:21 +09:00
Masaki Muranaka
568af55187
Refactor hex_to_str().
2012-06-26 20:41:42 +09:00
Yukihiro "Matz" Matsumoto
ed9488f2ca
Merge pull request #323 from monaka/pr-fix-str_to_format
...
Fix str_to_format.
2012-06-25 20:36:26 -07:00
Masaki Muranaka
b18ab1dc3f
Fix str_to_format. See also #314 .
2012-06-26 12:03:12 +09:00
Masamitsu MURASE
c152c194a1
Prevent memory leak when string literal is created.
2012-06-26 01:34:41 +09:00
Yukihiro Matsumoto
c99b806f8b
ci->acc should not be left uninitialized; close #303
2012-06-25 19:24:57 +09:00
Yukihiro Matsumoto
8dc533ed5f
Merge branch 'master' of github.com:mruby/mruby
2012-06-25 17:30:28 +09:00
Yukihiro Matsumoto
19638ded73
use mrb_intern_str instead of mrb_intern if possible
2012-06-25 17:30:12 +09:00
Yukihiro "Matz" Matsumoto
52b6d1c001
Merge pull request #318 from masamitsu-murase/fix_instance_tt
...
Patch for inheritance of built-in class
2012-06-24 13:43:44 -07:00
Yukihiro "Matz" Matsumoto
bf747efdd1
Merge pull request #317 from masamitsu-murase/fix_struct_new_gc
...
Fix GC of struct
2012-06-24 06:32:48 -07:00
Yukihiro "Matz" Matsumoto
431d1c8e2b
Merge pull request #316 from masamitsu-murase/modify_obj_clone
...
Modify Kernel#clone and Kernel#dup
2012-06-24 06:26:49 -07:00
Yukihiro "Matz" Matsumoto
97c9c859d1
Merge pull request #313 from masamitsu-murase/fix_struct_new
...
Fix Struct#new and GC
2012-06-24 06:11:28 -07:00
Yukihiro Matsumoto
8121e0d354
should mark child env from method (proc) objects
2012-06-24 21:46:24 +09:00
Masamitsu MURASE
e53eea76eb
Modify gc_gray_mark for Struct.
2012-06-24 17:38:20 +09:00
Masamitsu MURASE
9a1f588749
Modify obj_free to free instances of Struct.
2012-06-24 17:29:41 +09:00
Masamitsu MURASE
2a2ffe7f7d
Modify Kernel#clone and Kernel#dup.
...
Kernel#clone, Kernel#dup:
- 'iv' should not be shared with the original object,
but it should be copied.
Kernel#clone:
- 'mt' of singleton_class should be copied.
2012-06-24 16:39:08 +09:00
Masamitsu MURASE
1deb31320a
Modify instance tt.
2012-06-24 15:15:55 +09:00
Masamitsu MURASE
7778b5ca1c
Implement garbage collection for struct.
2012-06-24 06:28:17 +09:00
Masamitsu MURASE
7a17377c64
Fix Struct.new and Struct.[].
...
Instances of Struct's subclass should have MRB_TT_STRUCT.
2012-06-24 04:06:53 +09:00
Yukihiro Matsumoto
d657e26d35
pacify const assignment warning
2012-06-24 01:12:05 +09:00
Yukihiro Matsumoto
c261e4f360
resolve crash issue on LLVM; longjmp cleared some local variable
2012-06-24 00:15:22 +09:00
Yukihiro Matsumoto
f045e64675
reduce calling mrb_str_new_cstr() to avoid strlen(); #301
2012-06-23 13:51:50 +09:00
Yukihiro Matsumoto
1fa63930fd
check object type before retrieving instance variabls; close #311
2012-06-23 10:40:17 +09:00
Yukihiro Matsumoto
2d781f5c1d
remove assertion for false assumption; mrb_str_new(0, len) where len > 0 can be used to allocate an unintialized string
2012-06-23 09:49:14 +09:00
Masaki Muranaka
21f2e5364b
Use mrb_str_new() instead of mrb_str_new2() as possible.
2012-06-22 17:02:08 +09:00
Yukihiro Matsumoto
766ae4ee5f
dislose mrb_hash_keys; close #304
2012-06-21 16:27:16 +09:00
Yukihiro Matsumoto
9936ce997c
forgot to rename function mrb_sym2name -> mrb_sym2name_len
2012-06-21 16:27:05 +09:00
Yukihiro Matsumoto
a70c4e0c79
reduce calling of strlen(); #301
2012-06-21 16:22:29 +09:00
Yukihiro "Matz" Matsumoto
0f2b69642d
Merge pull request #302 from monaka/pr-remove-strlen-in-array
...
Remove strlen in array
2012-06-21 00:10:33 -07:00
Yukihiro "Matz" Matsumoto
178a1a63f9
Merge pull request #300 from monaka/pr-simplify-codegen
...
Simplify. Should not use strlen() as possible. It needs complexity.
2012-06-20 23:56:17 -07:00
Masaki Muranaka
0c5b704de3
Remove strlen(). We can use sizeof() of char array because sizeof(char) is always 1 (ISO C99).
2012-06-21 11:45:55 +09:00
Masaki Muranaka
aa1bbe67b6
Simplify. Should not use strlen() as possible. It needs complexity.
2012-06-21 11:17:16 +09:00
Yukihiro Matsumoto
396397bce1
move KHASH_DECLARE to header files
2012-06-21 11:04:36 +09:00
Yukihiro Matsumoto
8b8151a60e
remove khash.c; khash.h dependency to mruby.h; refactoring
2012-06-21 10:46:21 +09:00
Yukihiro Matsumoto
7842310573
Merge branch 'modify_khash' of https://github.com/crimsonwoods/mruby into crimsonwoods-modify_khash
2012-06-21 10:01:17 +09:00
Yukihiro Matsumoto
ef50e63a63
remove RuntimeError from mrb_state
2012-06-20 20:43:27 +09:00
Yukihiro Matsumoto
6f22a61135
__send__ added
2012-06-20 15:42:51 +09:00
Yukihiro Matsumoto
b11d4647e9
ISO conforming lambda
2012-06-20 15:41:22 +09:00
Yukihiro Matsumoto
e9231bca7a
allow lambda duplication
2012-06-20 15:26:10 +09:00
Yukihiro Matsumoto
88db589e7f
protect crash from empty irep
2012-06-20 15:12:35 +09:00
Yukihiro Matsumoto
ea81146a41
add Module#define_method
2012-06-20 13:43:26 +09:00
crimsonwoods
cd68190480
split declaration and definition for 'khash_xxx'.
2012-06-19 23:00:29 +09:00
Yukihiro Matsumoto
7744315d88
add Symbol#<=>
2012-06-19 16:50:02 +09:00
Yukihiro Matsumoto
e7034b57ff
range.c: typo fixed
2012-06-19 16:47:17 +09:00
Yukihiro Matsumoto
4aad9e88d6
remove unused mrb_rescue()
2012-06-19 15:40:54 +09:00
Yukihiro Matsumoto
41f7fdaf8e
remove dummy local_variables
2012-06-19 15:37:31 +09:00
Yukihiro Matsumoto
4d7bf31b97
remove dummy require/loop
2012-06-19 15:36:09 +09:00
Yukihiro Matsumoto
debea27224
remove obsolete comment
2012-06-19 15:31:56 +09:00
Yukihiro Matsumoto
97e94247fa
Kernel#raise: better argument check
2012-06-19 12:56:08 +09:00
Yukihiro Matsumoto
8f9b958f1e
raise should initialize Exception object
2012-06-19 12:54:49 +09:00