summaryrefslogtreecommitdiffhomepage
path: root/src/class.c
AgeCommit message (Collapse)Author
2015-06-24Remove unnecessary backticks.Franck Verrot
Dr Markus Kuhn published in 1999 an article [1] explaining in details why we shouldn't use the ASCII grave accent (0x60) as a left quotation. Backticks have been used most notably to produce nice-looking LaTeX documents but it doesn't seem to be an issue on modern platforms and for the oldest ones, there are workarounds as mentioned by Dr Kuhn. [1]: https://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
2015-06-22Fixes #912Jared Breeden
2015-05-29check if outer is a class or modulecremno
For modules this check didn't exist yet. Also call #inspect.
2015-05-28remove unnecessary including of <ctype.h>cremno
Not needed anymore since 85075bef7583edd0a48cfbdfaa632cbdacf78f2c
2015-05-15remove mrb_define_method_vm() functioncremno
It isn't needed as it's very similar to mrb_define_method_raw() and also there's only one place where mrb_proc_ptr() actually has to be called. Inspired by @furunkel's method cache patch (#2764).
2014-12-12Fix crash if #inspect does not return a string valuesdottaka
case 1 ~~~ class A; def inspect; 1; end; end A.new.a ~~~ case 2 ~~~ class A def self.inspect 1 end alias_method :a, :b end ~~~
2014-11-19separate mrb_notimplement() and mrb_notimplement_m(); ref #2636Yukihiro "Matz" Matsumoto
2014-11-17fix mrb_notimplement typoRobert Mosolgo
2014-11-17Implement C API mrb_notimplementksss
2014-09-21Fix `mrb_get_args` arguments types found by mruby-clang-plugin.take_cheeze
2014-09-19code reduce by using mrb_get_args("n")Yukihiro "Matz" Matsumoto
2014-09-19`Module#const_defined?` to take second optional argument as CRuby; fix #2593Yukihiro "Matz" Matsumoto
2014-09-19change class argument of mrb_const_defined_at from `struct RClass*` to ↵Yukihiro "Matz" Matsumoto
`mrb_value` to make it consistent with mrb_const_defined; ref #2593
2014-09-03Merge pull request #2582 from iij/pr-attr-accessor-save-arenaYukihiro "Matz" Matsumoto
save and restore arena index to prevent arena overflow.
2014-09-03save and restore arena index to prevent arena overflow.Tomoyuki Sahara
2014-09-03Use mrb_str_cat_lit() instead of mrb_str_cat_cstr() for string-literals.Tatsuhiko Kubo
2014-09-02implement attr_reader and attr_writer in C; use cfunc closure to speed-upYukihiro "Matz" Matsumoto
2014-08-29Fix mismatches for MRB_API declarations.Tatsuhiko Kubo
2014-08-21changed to call check_cv_name_str in check_cv_name_sym and adjust indentkkkkkt
2014-08-20Remove empty lines.Tatsuhiko Kubo
2014-08-20Use specified macro(NULL) instead of magic-number.Tatsuhiko Kubo
2014-08-16use mrb_false_value instead of mrb_bool_valuego kikuta
2014-08-16refactor class.c methods (fix indent, remove unneed temp value. )go kikuta
2014-08-04add MRB_API modifiers to mruby API functionsYukihiro "Matz" Matsumoto
2014-07-18add Module#module_functiondreamedge
2014-07-17avoid infinite recursion when error was happened in #inspect; fix #2474Yukihiro "Matz" Matsumoto
2014-07-09Clean up value.h and mrb_value boxingDavid Turnbull
2014-06-15Proc class define before a first methodksss
mrb_define_method setting mrb->proc_class for method proc
2014-06-02Implement `NoMethodError#args`.take_cheeze
2014-05-23Should not call inherited methodksss
when class nothing
2014-05-22call Class#initialize from Class.new; ref ISO 15.2.3.3.1Yukihiro "Matz" Matsumoto
2014-05-22allocate object after mrb_get_args()Yukihiro "Matz" Matsumoto
2014-05-22Merge pull request #2304 from ksss/class-newYukihiro "Matz" Matsumoto
Class.new do not call `class_eval'
2014-05-22Class.new do not call `class_eval'ksss
and set self for block argument
2014-05-21Module#initialize set created objectksss
for block argument
2014-05-21direct invocation of module_eval; ref #2298Yukihiro "Matz" Matsumoto
2014-05-19mrb_include_module support class and moduleksss
that not have methods each other
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