summaryrefslogtreecommitdiffhomepage
path: root/src/class.c
AgeCommit message (Collapse)Author
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
2013-09-23eliminate use of traditional intern API (mrb_intern()) completelyYuichi Nishiwaki
2013-09-21rename voidp to cptrYukihiro "Matz" Matsumoto
2013-09-02add verbose_backtracetake_cheeze
2013-08-26Merge pull request #1487 from h2so5/z-option-with-shared-stringYukihiro "Matz" Matsumoto
Fix a problem of 'z' option and shared string
2013-08-24Fix a problem of 'z' option and shared stringh2so5
2013-08-15remove Class#alloc methodYukihiro "Matz" Matsumoto
2013-08-15implement Class.new in C againYukihiro "Matz" Matsumoto
2013-08-13define Class#new in ruby to call #initializeYukihiro "Matz" Matsumoto
2013-08-09def statement and define_method now return symbol a la Ruby2.1Yukihiro "Matz" Matsumoto
2013-08-07class.c and numeric.c: fixed MSVC warningsCremno
2013-08-07return statement should terminate execution of a method defined by define_methodYukihiro "Matz" Matsumoto
2013-07-31stop storing target_class info for C defined methodsYukihiro "Matz" Matsumoto
2013-07-22change else formattingYukihiro "Matz" Matsumoto
2013-07-15Repalace int with mrb_bool because a return value is boolean.Jun Hiroe
2013-07-13singleton class super initialize failedYukihiro "Matz" Matsumoto
2013-07-13make_metaclass should skip MRB_TT_ICLASS; close #1369Yukihiro "Matz" Matsumoto
2013-07-13make_metaclass should skip MRB_TT_ICLASS; close #1369Yukihiro "Matz" Matsumoto
2013-07-11Replace mrb_intern() with mrb_intern_cstr().Jun Hiroe
2013-07-11add dummy visibility methods (public/protected/private) that do nothing; ref ↵Yukihiro "Matz" Matsumoto
#1357
2013-07-10mrb_bob_missing to use mrb_get_args("n")Yukihiro "Matz" Matsumoto
2013-07-10mrb_mod_alias to use mrb_get_args("nn")Yukihiro "Matz" Matsumoto
2013-07-07call Class#inherited when Class.new(klass)hoge