Commit Graph

26 Commits

Author SHA1 Message Date
Yukihiro Matsumoto 0ac2d7ac97 remove debug print 2012-07-17 23:38:43 +09:00
Masaki Muranaka 0339317bd6 Supress using switches with fallthru or a empty default label. 2012-07-16 13:36:36 +09:00
Junji Sawada 96366117ea Remove unnecessary header inclusion 2012-07-14 11:39:25 +09:00
Yukihiro Matsumoto bbec03bb7a add missing (empty) default for swtch; close #364 2012-07-13 14:35:18 +09:00
Yukihiro Matsumoto 48c73ac630 less <stdio.h> 2012-07-13 10:13:47 +09:00
Yukihiro Matsumoto 3b8ad4c30c small cosmetic change 2012-07-08 00:24:07 +09:00
Yukihiro Matsumoto 0d99856b57 proper type check when creating a range; #345 2012-07-08 00:20:56 +09:00
Masaki Muranaka e896c1cee3 Range optimization. similar to #348 2012-07-07 09:23:00 +09:00
Yukihiro Matsumoto 84ec555ecd range optimization from @monaka; close #348 2012-07-06 19:50:44 +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 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
Masaki Muranaka f564ec7e82 Remove some redundant code. 2012-06-15 00:56:00 +09:00
Masaki Muranaka b43e790b71 Remove unused functions. 2012-06-14 18:03:20 +09:00
Yukihiro Matsumoto 80c8908c4e remove mrb_exec_recursive 2012-06-03 17:59:59 +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
Masaki Muranaka c6f0e296bd Remove some redundant function declarations. 2012-05-16 14:31:48 +09:00
Yukihiro Matsumoto 4d3ed8c4f9 remove mrb->range_class 2012-05-10 23:07:54 +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 Matsumoto 2fc1b8af2d mv variable.h to mruby/variable.h 2012-04-24 15:59:50 +09:00
Yukihiro Matsumoto d4ef3baca8 remove code for unsupported taint-mode 2012-04-23 18:30:49 +09:00
mimaki 835443614d add file header 2012-04-23 11:46:16 +09:00
mimaki e0d6430f63 add mruby sources 2012-04-20 09:39:03 +09:00