summaryrefslogtreecommitdiffhomepage
path: root/src/class.c
AgeCommit message (Collapse)Author
2014-05-19Implement Module#initialize (15.2.2.4.31)ksss
2014-05-18support class define in singleton classksss
2014-05-18Add a space aftre bracket.yui-knk
2014-05-17Use boolean macroJun Hiroe
2014-05-16const_missing error message more detailksss
2014-04-26Class.constants to take optional argument; close #2133Yukihiro "Matz" Matsumoto
2014-04-25eliminate plain int except for a few cases like arena_indexYukihiro "Matz" Matsumoto
2014-04-16various functions should have internal linkagecremno
2014-04-15resolve conflictYukihiro "Matz" Matsumoto
2014-04-11Qualify argv argument of API `const`.Takeshi Watanabe
2014-04-10revert b45e99 since a bug in khash.h was fixedYukihiro "Matz" Matsumoto
2014-04-09call kh_get before kh_put to avoid potential key lost; reported by @mirichiYukihiro "Matz" Matsumoto
2014-04-02Use bool macro KHASH_DEFINE and KHASH_DECLAREksss
2014-03-31singleton class needs to set __outer__; fixed #1983Yukihiro "Matz" Matsumoto
2014-03-28do not use "to_f" to retrieve floats in mrb_get_args(); close #1965Yukihiro "Matz" Matsumoto
2014-03-27Adapt for Float and IntegerDaniel Bovensiepen
2014-03-27Adapt TypeError Message for String to Integer Conversion.Daniel Bovensiepen
MRI: "str" * "3" => TypeError: no implicit conversion of String into Integer mruby: "str" * "3" => TypeError: String can't be coerced into int
2014-03-21Prevent accepting String value for mrb_get_args("i")Keita Obo
Accepting String value for mrb_get_args("i") causes unintentional expression. * `"str" * "3"` => `"strstrstr"` This change prevents String->Integer conversion for mrb_get_args("i") and fixes above problem. See also: https://github.com/mruby/mruby/issues/1903
2014-03-19rename mrb_yield_internal to mrb_yield_with_class since it's no longer internalYukihiro "Matz" Matsumoto
2014-03-19export mrb_yield_internal.Tomoyuki Sahara
2014-03-15symbol length type to be mrb_intYukihiro "Matz" Matsumoto
2014-03-09remove invocation of strlen() on buffer of strings; with refactoringYukihiro "Matz" Matsumoto
2014-03-09Merge pull request #1831 from monaka/pr-make-type-casts-saferYukihiro "Matz" Matsumoto
Make type casts safer
2014-03-09add "?" specifier to check if preceding optional argument is givenYukihiro "Matz" Matsumoto
2014-03-08Make type casts safer.Masaki Muranaka
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-27boot_defclass: super may be NULLYukihiro "Matz" Matsumoto
2014-02-27avoid recursion when method_missing happened in inspect; fix #1746Yukihiro "Matz" Matsumoto
2014-02-26use mrb_intern_lit instead of mrb_intern_cstr for C string literalscubicdaiya
2014-02-21add 'd' format specifier to get data pointer directly from mrb_get_argstake_cheeze
2014-02-20move src/error.h to include/mruby/error.htake_cheeze
2014-02-08made mrb_define_class to return existing class, with heavy refactoringYukihiro "Matz" Matsumoto
2014-02-08rename mrb_name_class and make it staticYukihiro "Matz" Matsumoto
2014-02-06use mrb_str_new_lit() more widelyYukihiro "Matz" Matsumoto
2014-01-31clean up external symbolscremno
remove unused and unneeded: - sysexit_status - type (a global variable) add mrb_ prefix to: - codedump_all - class_instance_method_list - parser_dump make various functions static, incl.: - yyparse - make_exception
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-02use the same error msg as mrb_str_to_cstr/CRubycremno
It's better to have one message for the same error than two different (although similar worded) ones.
2013-12-23Remove 'mrb_state' field from 'kh_xxx_t' structure.crimsonwoods
'kh_xxx_t' requires 'mrb_state' to allocate, free, and compute hash value. But 'mrb_state' should not be held by 'kh_xxx_t' and 'mrb_state' should be supplied from outside.
2013-12-01add mrb_intern_lit for creating symbol from string literaltake_cheeze
2013-11-29rename mrb_intern2() to mrb_intern(); huge API incompatibility; close #1513Yukihiro "Matz" Matsumoto
2013-10-30resolve conflict #1552Yukihiro "Matz" Matsumoto
2013-10-30type check class/module in mrb_get_args(); close #1477Yukihiro "Matz" Matsumoto
2013-10-30implement Class.new with blockh2so5
2013-10-26nil/false should not be implicitly converted to integers in mrb_get_args(); ↵Yukihiro "Matz" Matsumoto
close #1529
2013-10-26Merge pull request #1530 from h2so5/args-explicit-conversionYukihiro "Matz" Matsumoto
Disable implicit integer conversion in mrb_get_args
2013-10-15define Module#const_missingYukihiro "Matz" Matsumoto
2013-10-05Disable implicit integer conversion in mrb_get_argsh2so5