summaryrefslogtreecommitdiffhomepage
path: root/src/object.c
AgeCommit message (Collapse)Author
2014-03-06make embed string when create literalsksss
2014-03-06embed small stringksss
use flags 4 for *this object is embed* use flags 8~64 for *embed string length*
2014-03-01use C style comments instead of C++ style commentscubicdaiya
According to CONTRIBUTING.md, Don't use C++ style comments /* This is the prefered comment style */ Use C++ style comments only for temporary comment e.g. commenting out some code lines.
2014-02-27use mrb_str_cat_lit() intead of mrb_str_catcubicdaiya
2014-02-13mrb_str_cat2: deprecated since 0cedf8fcremno
2014-02-09Merge pull request #1674 from cremno/mrb_bool-FALSE-TRUEYukihiro "Matz" Matsumoto
use mrb_bool, FALSE and TRUE more
2014-02-06use mrb_str_new_lit() more widelyYukihiro "Matz" Matsumoto
2014-01-31use mrb_bool, FALSE and TRUE morecremno
It doesn't matter to me if one is using FALSE/TRUE instead of 1/0 but I prefer a type (alias) which emphasizes boolean vars to int. I changed 1/0 to FALSE/TRUE anyway.
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)
2014-01-02tiny word boxing optimizationcremno
2013-12-19fix TypeError messageh2so5
2013-10-26mrb_Integer() should not convert strings to integersYukihiro "Matz" Matsumoto
2013-09-21rename voidp to cptrYukihiro "Matz" Matsumoto
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-07-15Repalace int with mrb_bool because a return value is boolean.Jun Hiroe
2013-07-12Replace mrb_intern() func with mrb_intern2() func or mrb_intern_cstr() func.Jun Hiroe
2013-07-08Refactor true_or() and false_and() in object.c.Jun Hiroe
2013-07-07Change parameter type to suppress -Wsign-compare warningsKazuki Tsujimoto
2013-07-05Fix indents in object.c.Jun Hiroe
2013-06-30Refactor mrb_obj_eq() func in object.c.Jun Hiroe
2013-06-28add nil.to_a, nil.to_f, nil.to_i methodsAkira Yumiyama
2013-05-26Add MRB_WORD_BOXING mode (represent mrb_value as a word)kimu_shu
2013-04-25rename every ARGS_XXX to MRB_ARGS_XXX; ref #1206Yukihiro "Matz" Matsumoto
2013-04-22Use mrb_bool for the 'b' format specifier of mrb_get_argsh2so5
2013-04-11string interpolation (#{foo}) does stringify implicitly; no need to call #to_sYukihiro "Matz" Matsumoto
2013-04-11Fix TypeError messagesh2so5
2013-04-01mrb_any_to_s: add separatorYukihiro "Matz" Matsumoto
2013-03-29Remove mrb_flt2big() as there is no bignum in the core.Masaki Muranaka
Add new API mrb_flo_to_fixnum(). You can replace mrb_flt2big() to mrb_flo_to_fixnum() with few modifications.
2013-03-29Sort include files. Some redundant includes are removed.Masaki Muranaka
2013-03-28Fix %s to %S.Masaki Muranaka
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-24Adjusted indent, space and tabMATSUMOTO Ryosuke
2013-03-23rename mrb_ptr_as_string() to mrb_ptr_to_str()Yukihiro Matz Matsumoto
2013-03-23Remove *printf() that have "%p" format as possible. Use ↵Masaki Muranaka
tomrb_ptr_as_string() instead.
2013-03-19rename mrb_true_or_false_value() to mrb_bool_value()Yukihiro Matz Matsumoto
2013-03-19Use mrb_true_or_false_value() / in false_or().Masaki Muranaka
2013-03-19Use mrb_true_or_false_value() / in false_xor().Masaki Muranaka
2013-03-19Use mrb_true_or_false_value() / in true_xor().Masaki Muranaka
2013-03-19Use mrb_true_or_false_value() / in true_and().Masaki Muranaka
2013-03-16Remove unused string.h.Masaki Muranaka
2013-03-05Include stdio.h in mrbconf.h instead of C extension sources.Masaki Muranaka
2013-03-01Pluggable Structmattn
2013-02-18remove TT_REGEX and TT_MATCHYukihiro Matz Matsumoto
2013-02-06rewrote mrb_any_to_sCremno
use %p instead of %lx to prevent truncation and for consistency
2013-01-27Fixes a number of "comparison between signed and unsigned" warnings.Carson McDonald
2013-01-15use the new specifier b instead of oCremno
2012-11-04replace RTEST() by mrb_test_p()Yukihiro Matz Matsumoto
2012-11-04replace FIXNUM_P() by mrb_fixnum_p()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.