Yukihiro Matsumoto
fbfef55152
Module#include should also include included modules; close #340
2012-07-05 17:57:23 +09:00
Masamitsu MURASE
8746cb2ac1
Initialize mt of module with khash.
2012-07-01 18:34:22 +09:00
Yukihiro Matsumoto
3de0a62522
resolve conflict in class.c
2012-06-27 15:22:08 +09:00
Yukihiro Matsumoto
6f9ed1c5b2
use return value from sprintf/snprintf
2012-06-27 15:14:56 +09:00
Masaki Muranaka
d534f26f16
Use sizeof to get char array sizes.
2012-06-27 10:36:39 +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 Matsumoto
8121e0d354
should mark child env from method (proc) objects
2012-06-24 21:46:24 +09:00
Masamitsu MURASE
1deb31320a
Modify instance tt.
2012-06-24 15:15:55 +09:00
Yukihiro Matsumoto
d657e26d35
pacify const assignment warning
2012-06-24 01:12:05 +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
396397bce1
move KHASH_DECLARE to header files
2012-06-21 11:04:36 +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
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
b023acb629
add ISO reference numbers
2012-06-19 09:54:05 +09:00
Yukihiro Matsumoto
90735a242f
mrb_define_{singleton,class}_method should prepare singleton class for the obejct
2012-06-14 01:00:34 +09:00
Yukihiro Matsumoto
6f670785c5
mrb_get_args(i) should check range of float values
2012-06-14 00:03:36 +09:00
Yukihiro Matsumoto
6bf6370781
new mrb_get_args specifier "n" to retrieve a symbol (stands for "name")
2012-06-13 23:53:57 +09:00
Yukihiro Matsumoto
216a846bd9
mrb_get_args should honor optinal arguments
2012-06-12 18:32:05 +09:00
Yukihiro Matsumoto
4c01f002fd
mruby/array.h: rename buf to ptr
2012-06-05 23:20:36 +09:00
Yukihiro Matsumoto
e3d17e54f8
mruby/string.h: rename buf to ptr
2012-06-05 23:17:09 +09:00
Daniel Bovensiepen
5612d195ec
Improve Class#superclass to ISO
2012-06-03 23:29:40 +08:00
Yukihiro Matsumoto
7009a1d8f5
should not disclose metaclass; close #238
2012-06-03 23:26: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 Matsumoto
5fcd520514
small refactoring after mruby coding convention
2012-06-03 02:19:12 +09:00
Yuichiro MASUI
8a41d646f1
support Class.new()
2012-06-03 00:05:39 +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
Yukihiro Matsumoto
48d5df9987
Merge branch 'master' of github.com:mruby/mruby
2012-06-01 08:15:07 +09:00
Yuichiro MASUI
b174e9c3ea
Add Module.const_defined? && _get && _set methods
2012-05-31 23:35:45 +09:00
Yukihiro Matsumoto
64fc4ac332
resolve conflict
2012-05-31 15:32:38 +09:00
Yukihiro Matsumoto
e3c1b48ba2
mrb_gets_args strict argc check; now returns argc
2012-05-31 11:14:33 +09:00
Yukihiro Matsumoto
3e8d330c2c
remove #new from immediate classes
2012-05-31 11:11:55 +09:00
Yukihiro Matsumoto
14e28a8a4d
raise error on too many arguments
2012-05-24 01:24:45 +09:00
Yukihiro Matsumoto
ad9e841c53
made mrb_get_args() better (optinal args, type checks); close #173 #176
2012-05-24 01:09:36 +09:00
Yukihiro Matsumoto
4523bee953
cast style consistency
2012-05-23 03:31:55 +09:00
Mitchell Blank Jr
9e336b00e5
More C++ compilability work: mrb_obj_alloc void* conversions
...
One of the biggest set of changes needed to make C++ compile, is that you
can't autoconvert "void*" to a different pointer type without a cast (you
can of course, convert pointers *to* "void*"!)
For the first part, convert the users of "mrb_obj_alloc". Since it has
to return something, make it RBasic* (that's what mrb_obj_alloc() is
operating on anyway). This way, even in C you'll get a warning if you
don't cast it.
For places where there are a lot of similar calls to mrb_obj_alloc(),
this can be easily hidden through a macro. I did this in string.c:
#define mrb_obj_alloc_string(mrb) ((struct RString *) mrb_obj_alloc((mrb), MRB_TT_STRING, (mrb)->string_class))
I also updated the mrb_object() macro to also return a RBasic* -- my
previous commit changed that from "void*" -> "RObject*", but I figure
it should be consistent with mrb_obj_alloc()
2012-05-20 09:43:14 -07:00
Mitchell Blank Jr
365cc40ac5
C++ compilabilty -- "new" is a C++ keyword, avoid it
2012-05-19 23:20:44 -07:00
Yukihiro Matsumoto
b68e69aa32
remove unused assignments
2012-05-17 12:57:08 +09:00
Yukihiro Matsumoto
2541530239
add mrb_define_singleton_method/mrb_define_module_function
2012-05-17 02:44:41 +09:00
Masaki Muranaka
c6f0e296bd
Remove some redundant function declarations.
2012-05-16 14:31:48 +09:00
Yukihiro Matsumoto
f4cf8ea423
partial VC support
2012-05-09 08:49:38 +09:00
Yukihiro Matsumoto
8a6d4a8b82
add Class#inherited hook
2012-05-08 23:25:13 +09:00
Yukihiro Matsumoto
56817a91a7
mrb_get_arg(i/f) should set zero from nil
2012-05-06 02:14:51 +09:00
Yukihiro Matsumoto
55da4cdc86
Merge branch 'master' of github.com:mruby/mruby
2012-05-06 00:18:46 +09:00
Yukihiro Matsumoto
53d8339a71
remove unused argc check
2012-05-05 07:49:10 +09:00
Yukihiro Matsumoto
bf6652886d
typo fixed
2012-05-05 07:48:36 +09:00
Yukihiro Matsumoto
a18ab06a23
mrb_get_args(i) should convert using to_int
2012-05-05 07:46:33 +09:00
Yukihiro Matsumoto
b780e63000
mrb_get_args(f) should convert using to_f
2012-05-05 07:41:02 +09:00