Commit Graph

57 Commits

Author SHA1 Message Date
Yukihiro Matsumoto 48c73ac630 less <stdio.h> 2012-07-13 10:13:47 +09:00
Yukihiro Matsumoto ff42f8f485 move RDoc comments 2012-07-05 22:56:51 +09:00
Yukihiro Matsumoto 6410cdf3bf do not undef config macros 2012-06-27 01:13:21 +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
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 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 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
crimsonwoods cd68190480 split declaration and definition for 'khash_xxx'. 2012-06-19 23:00:29 +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 d8e0fbab51 forgot to replace INLCUDE_KERNEL_SPRINTF by ENABLE_KERNEL_SPRINTF 2012-06-19 09:45:58 +09:00
Masaki Muranaka f564ec7e82 Remove some redundant code. 2012-06-15 00:56:00 +09:00
Yukihiro Matsumoto c7b1622f40 remove get_errorinfo; close #275 2012-06-14 23:19:15 +09:00
Masaki Muranaka 0436596ba3 Remove as err is already unused since applied 54bc7e0721 2012-06-14 11:00:18 +09:00
Yukihiro Matsumoto 3b2ff6145e != should call == inside; close #268 2012-06-14 01:22:18 +09:00
Yukihiro Matsumoto 54bc7e0721 avoid accessing non-allocated memory; close #271 2012-06-14 01:19:19 +09:00
Yukihiro Matsumoto 1156b0cc32 update RDoc for #raise 2012-06-14 01:18:49 +09:00
Yukihiro Matsumoto a58761787b mrb_f_send to use mrb_get_args(n) 2012-06-13 23:54:19 +09:00
Yukihiro Matsumoto b3d83a79ea remove unused variable from mrb_f_block_given_p_m 2012-06-13 23:53:09 +09:00
Yukihiro "Matz" Matsumoto db1244cef5 Merge pull request #263 from monaka/pr-make-sprintf-optional
Make sprintf/format optional.
2012-06-12 03:10:37 -07:00
Yukihiro Matsumoto f537e2bb96 block_given? should work; close #262 2012-06-12 19:09:11 +09:00
Yukihiro Matsumoto 4348639e1c raise error if string arg is given to Kernel#instance_eval 2012-06-12 18:33:17 +09:00
Yukihiro Matsumoto 324de1a002 remove Kernel#eval from the core; close #261 2012-06-12 18:05:36 +09:00
Masaki Muranaka e1e4ceb3e4 Make sprintf/format optional. 2012-06-12 17:46:38 +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 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
Yuichiro MASUI 481d2874f1 add Kernel#send 2012-06-01 04:39:48 +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
Yukihiro Matsumoto 74d29edf5c remove unused method.h from kernel.c 2012-05-18 02:05:52 +09:00
Yukihiro Matsumoto 96168852c3 move declaration in the middle 2012-05-09 11:04:36 +09:00
Yukihiro Matsumoto f4cf8ea423 partial VC support 2012-05-09 08:49:38 +09:00
Yukihiro Matsumoto aac2c1c1a6 move declaration in the middle 2012-05-08 22:52:34 +09:00
Yukihiro Matsumoto c401b753eb remove unused code 2012-05-07 17:00:03 +09:00
Yukihiro Matsumoto eac8e4a303 move mrb_obj_is_instance_of from range.c to kernel.c 2012-05-05 00:21:23 +09:00
roco 4ec6d41f16 rm whitespace 2012-04-30 14:29:19 -07:00
Yukihiro "Matz" Matsumoto 2b6be16308 Merge pull request #61 from pbhogan/fix-warnings
Fix various warnings
2012-04-27 08:56:39 -07:00
Yukihiro Matsumoto 9e45eb185b object iv table can be NULL; close #66 2012-04-27 19:15:19 +09:00
Patrick Hogan a4c9853813 More switch statement cleanup.
Signed-off-by: Patrick Hogan <pbhogan@gmail.com>
2012-04-26 08:36:32 -05:00
Patrick Hogan 132dd25528 Remove a bunch of unused variables.
Removed or commented out to stop compiler whining about them.

Signed-off-by: Patrick Hogan <pbhogan@gmail.com>
2012-04-26 08:36:32 -05:00
Yukihiro Matsumoto 8b367098ac move header files {irep,dump,cdump,ritehash}.h to /include/mruby 2012-04-24 17:41:28 +09:00