summaryrefslogtreecommitdiffhomepage
path: root/src/etc.c
AgeCommit message (Collapse)Author
2014-01-07remove superfluous includescremno
- reduce compile time by a little bit (full-core: ~0.7s for me) - thanks to 'include-what-you-use' for some help - include Standard C header files before any other (coding style)
2013-11-27float objects in pool are objects when MRB_WORD_BOXING is setYukihiro "Matz" Matsumoto
2013-09-21rename voidp to cptrYukihiro "Matz" Matsumoto
2013-08-15redesign mruby/data.h API; use DATA_PTR() for raw data pointer, ↵Yukihiro "Matz" Matsumoto
DATA_GET_PTR() to type safe retrieval (TypeError will be raised), DATA_CHECK_GET_PTR() to get nil if type mismatched
2013-08-07rename mrb_value_p() to mrb_ptr() since _p means predicate in mruby sourceYukihiro "Matz" Matsumoto
2013-08-03add read barrier to value.pYuichi Nishiwaki
API changes: - value.p must be accessed via mrb_value_p macro - value.p must be mutated via MRB_SET_VALUE_P macro
2013-05-26Add MRB_WORD_BOXING mode (represent mrb_value as a word)kimu_shu
2013-04-29rename mrb_to_id to mrb_obj_to_sym since symbol is nothing to do with ↵Yukihiro "Matz" Matsumoto
identifier in mruby
2013-04-04rename DATA API: mrb_get_datatype -> mrb_data_get_ptr; mrb_check_datatype -> ↵Yukihiro "Matz" Matsumoto
mrb_data_check_and_get
2013-03-27use new mrb_format API from mrb_raisef; its only format specifier is "%S" ↵Yukihiro Matz Matsumoto
(stringify) and takes mrb_value; close #1062
2013-03-01Merge branch 'pluggable_struct' of https://github.com/mattn/mruby into ↵Yukihiro Matz Matsumoto
mattn-pluggable_struct
2013-03-01Add typedef to structures that have mrb_ prefix. Use typedef-ed type instead ↵Masaki Muranaka
of struct directly.
2013-03-01Pluggable Structmattn
2013-02-24Remove commented out code. Remove redundant function calls.Masaki Muranaka
2013-02-18remove TT_REGEX and TT_MATCHYukihiro Matz Matsumoto
2013-02-15Pluggable Regexpmattn
2012-11-04remove FL_XXX macrosYukihiro Matz Matsumoto
2012-11-04replace SYM2ID() by mrb_symbol()Yukihiro Matz Matsumoto
2012-10-23mrb_raisef(): new function. Same as previou version of mrb_raise().Masaki Muranaka
mrb_raise(): API modified. It cannot treat variable arguments.
2012-08-14NaN boxingYukihiro Matsumoto
2012-07-29Remove commented out code.Masaki Muranaka
2012-07-13less <stdio.h>Yukihiro Matsumoto
2012-07-06remove MRB_TT_THREAD,MRB_TT_THREADGRPYukihiro Matsumoto
2012-07-05better object_id calculationYukihiro Matsumoto
2012-07-05move RDoc commentsYukihiro Matsumoto
2012-06-19remove unused mrb_rescue()Yukihiro Matsumoto
2012-06-15Remove some redundant code.Masaki Muranaka
2012-06-03remove unused mrb_exec_recursiveYukihiro 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-05hash refactoredYukihiro Matsumoto
2012-05-04remove unused ruby_xfreeYukihiro Matsumoto
2012-05-02add header "mruby/data.h"takahashim
etc.c use DATA_TYPE()
2012-04-30rm whitespaceroco
2012-04-26Fix a few casting warnings.Patrick Hogan
Signed-off-by: Patrick Hogan <[email protected]>
2012-04-23add file headermimaki
2012-04-20move src/mdata.h to include/mruby/data.hYukihiro Matsumoto
2012-04-20add mruby sourcesmimaki