1. 23 May, 2012 12 commits
  2. 22 May, 2012 18 commits
  3. 21 May, 2012 6 commits
  4. 20 May, 2012 4 commits
    • Yukihiro "Matz" Matsumoto's avatar
      Merge pull request #171 from mitchblank/cplusplus · ebfebfc3
      Yukihiro "Matz" Matsumoto authored
      More C++ compilability work: mrb_obj_alloc void* conversions
      ebfebfc3
    • Mitchell Blank Jr's avatar
      More C++ compilability work: mrb_obj_alloc void* conversions · 9e336b00
      Mitchell Blank Jr authored
      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()
      9e336b00
    • Yukihiro Matsumoto's avatar
      add "all" to test dependency · ec8f97d2
      Yukihiro Matsumoto authored
      ec8f97d2
    • Yukihiro Matsumoto's avatar
      ANSIfy name2ctype.h · 54a921ba
      Yukihiro Matsumoto authored
      54a921ba