Commit Graph

29 Commits

Author SHA1 Message Date
Yukihiro Matz Matsumoto 8d2880bbfe Merge branch 'pluggable_struct' of https://github.com/mattn/mruby into mattn-pluggable_struct 2013-03-01 21:38:02 +09:00
Masaki Muranaka e4231a0a33 Add typedef to structures that have mrb_ prefix. Use typedef-ed type instead of struct directly. 2013-03-01 14:28:22 +09:00
mattn 138ecf4723 Pluggable Struct 2013-03-01 13:37:46 +09:00
Masaki Muranaka b833df3d37 Remove commented out code. Remove redundant function calls. 2013-02-24 00:11:48 +09:00
Yukihiro Matz Matsumoto 59a6d1b514 remove TT_REGEX and TT_MATCH 2013-02-18 16:18:19 +09:00
mattn b1a5146ea8 Pluggable Regexp 2013-02-15 04:38:27 +09:00
Yukihiro Matz Matsumoto 902dd63803 remove FL_XXX macros 2012-11-04 05:15:22 +09:00
Yukihiro Matz Matsumoto e429905597 replace SYM2ID() by mrb_symbol() 2012-11-04 05:11:39 +09:00
Masaki Muranaka 6069a33089 mrb_raisef(): new function. Same as previou version of mrb_raise().
mrb_raise(): API modified. It cannot treat variable arguments.
2012-10-23 09:42:22 +09:00
Yukihiro Matsumoto 7d02df3016 NaN boxing 2012-08-14 13:16:34 +09:00
Masaki Muranaka b2fc62f3a9 Remove commented out code. 2012-07-29 15:25:14 +09:00
Yukihiro Matsumoto 48c73ac630 less <stdio.h> 2012-07-13 10:13:47 +09:00
Yukihiro Matsumoto 8268ba2755 remove MRB_TT_THREAD,MRB_TT_THREADGRP 2012-07-06 19:52:50 +09:00
Yukihiro Matsumoto 5b3cc4a068 better object_id calculation 2012-07-05 23:19:09 +09:00
Yukihiro Matsumoto ff42f8f485 move RDoc comments 2012-07-05 22:56:51 +09:00
Yukihiro Matsumoto 4aad9e88d6 remove unused mrb_rescue() 2012-06-19 15:40:54 +09:00
Masaki Muranaka f564ec7e82 Remove some redundant code. 2012-06-15 00:56:00 +09:00
Yukihiro Matsumoto 4e46abb869 remove unused mrb_exec_recursive 2012-06-03 17:52:04 +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 e0460c1157 hash refactored 2012-05-05 08:55:58 +09:00
Yukihiro Matsumoto 0248ea5ddb remove unused ruby_xfree 2012-05-04 23:18:02 +09:00
takahashim 514e2717c5 add header "mruby/data.h"
etc.c use DATA_TYPE()
2012-05-02 21:12:05 +09:00
roco 4ec6d41f16 rm whitespace 2012-04-30 14:29:19 -07:00
Patrick Hogan ec27c18dae Fix a few casting warnings.
Signed-off-by: Patrick Hogan <pbhogan@gmail.com>
2012-04-26 08:36:32 -05:00
mimaki 835443614d add file header 2012-04-23 11:46:16 +09:00
Yukihiro Matsumoto d1144220cb move src/mdata.h to include/mruby/data.h 2012-04-20 17:18:30 +09:00
mimaki e0d6430f63 add mruby sources 2012-04-20 09:39:03 +09:00