summaryrefslogtreecommitdiffhomepage
path: root/src/hash.c
AgeCommit message (Collapse)Author
2012-05-28Hash#keys stop duping keysYukihiro Matsumoto
2012-05-24made mrb_get_args() better (optinal args, type checks); close #173 #176Yukihiro Matsumoto
2012-05-23cast style consistencyYukihiro Matsumoto
2012-05-20More C++ compilability work: mrb_obj_alloc void* conversionsMitchell Blank Jr
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-20Merge pull request #169 from mitchblank/cplusplusYukihiro "Matz" Matsumoto
Part 1 of C++ compilability
2012-05-20use mrb_assoc_new to generate a key-value pairYukihiro Matsumoto
2012-05-19fix mrb_gc_mark_ht_size() and mrb_gc_free_ht() typesMitchell Blank Jr
mrb_gc_mark_ht_size() and mrb_gc_free_ht() were declared in gc.h as taking a "RHash *" argument, but then they were defined in hash.c as taking a "RClass *" Get these in sync.
2012-05-20Fix Hash#shift return value from Hash to ArrayDaniel Bovensiepen
2012-05-09remove __APPLE__Yukihiro Matsumoto
2012-05-09partial VC supportYukihiro Matsumoto
2012-05-06Time class available; based on code from @beoran; sorry for jumbo patchYukihiro Matsumoto
2012-05-05more hash refactoredYukihiro Matsumoto
2012-05-05hash refactoredYukihiro Matsumoto
2012-04-30rm whitespaceroco
2012-04-26Remove unused ret argument from kh_put.Patrick Hogan
It doesn't appear to serve any purpose and allows removing warning about various unused variables littered around. Signed-off-by: Patrick Hogan <[email protected]>
2012-04-26Remove a bunch of unused variables.Patrick Hogan
Removed or commented out to stop compiler whining about them. Signed-off-by: Patrick Hogan <[email protected]>
2012-04-24move header files {irep,dump,cdump,ritehash}.h to /include/mrubyYukihiro Matsumoto
2012-04-23add file headermimaki
2012-04-20add mruby sourcesmimaki