Commit Graph

318 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto e861ecf514 small consmetic fix 2013-04-20 23:01:31 +09:00
Carson McDonald 93b23357fe Add implementation for respond_to_missing? 2013-04-20 07:48:26 -04:00
h2so5 359b5ee7af Refactor kernel.c and class.c 2013-04-20 01:25:15 +09:00
Yukihiro "Matz" Matsumoto 09eae5ceb2 move no block check to mrb_yield_internal 2013-04-13 10:03:34 +09:00
Yukihiro "Matz" Matsumoto c3b79e11f3 add no block check; based on patch from h2so5; close #1174 2013-04-13 01:16:37 +09:00
Kouki Ooyatsu 7e163c0567 bugfix: Kernel#!=, and add #!= testcase. 2013-04-01 12:18:19 +09:00
Masaki Muranaka 2b5b161f8b Sort include files. Some redundant includes are removed. 2013-03-29 10:22:31 +09:00
Masaki Muranaka c0b5220418 Modify mrb_name_error() to use mrb_format(). 2013-03-28 17:35:04 +09:00
Yukihiro Matz Matsumoto 18b2683b97 use new mrb_format API from mrb_raisef; its only format specifier is "%S" (stringify) and takes mrb_value; close #1062 2013-03-27 23:41:23 +09:00
Yukihiro Matz Matsumoto b1bd62e047 remove all MRB_TT_MAIN from source 2013-03-26 21:25:00 +09:00
Carson McDonald 930e4c71c0 Make mrb_top_self return a real instance. 2013-03-25 00:23:22 -04:00
mattn a8abbaed1a Remove needless prototype 2013-03-24 00:34:10 +09:00
Masaki Muranaka f8fa56d8c3 Use mrb_intern2() instead of mrb_intern(). This is for avoiding overhead by strlen(). 2013-03-22 14:22:45 +09:00
Yukihiro Matz Matsumoto d0d920e909 rename mrb_true_or_false_value() to mrb_bool_value() 2013-03-19 12:03:54 +09:00
Masaki Muranaka 872536a800 Use mrb_true_or_false_value() / in obj_respond_to(). 2013-03-19 11:04:21 +09:00
Masaki Muranaka 447f110e86 Use mrb_true_or_false_value() / in mrb_obj_is_kind_of_m(). 2013-03-19 11:04:21 +09:00
Masaki Muranaka 739338b86f Use mrb_true_or_false_value() / in mrb_obj_ivar_defined(). 2013-03-19 11:04:21 +09:00
Masaki Muranaka af1ead1ef9 Use mrb_true_or_false_value() / in obj_is_instance_of(). 2013-03-19 11:04:21 +09:00
Masaki Muranaka 57e345c767 Use mrb_true_or_false_value() / in mrb_f_block_given_p_m(). 2013-03-19 11:04:21 +09:00
Masaki Muranaka 70baae2573 Use mrb_true_or_false_value() / in mrb_equal_m(). 2013-03-19 11:04:21 +09:00
Masaki Muranaka 713c4f9c75 Use mrb_true_or_false_value() / in mrb_obj_not_equal_m(). 2013-03-19 11:04:21 +09:00
Masaki Muranaka 7a840e321a Use mrb_true_or_false_value() / in mrb_obj_equal_m(). 2013-03-19 11:04:21 +09:00
Yukihiro Matz Matsumoto 88483fad00 rename mrb_basic to mrb_basic_ptr; close #1011 2013-03-15 23:21:13 +09:00
kano4 60df77788b Add break to default case in switch statement 2013-03-14 23:18:12 +09:00
Yukihiro Matz Matsumoto 93e9174c57 symbol length make size_t from mrb_int; cancel #993 monaka/pr-cleanup-symbol.c-20130312 2013-03-14 19:09:55 +09:00
Masaki Muranaka 97136825e2 Separate Kernel#sprintf support from mruby core. It's moved to mrbgems. 2013-03-04 23:04:39 +09:00
Yukihiro "Matz" Matsumoto afa5b26826 Merge pull request #931 from matsumoto-r/fix_some_indents
Adjust some indents
2013-03-03 04:32:37 -08:00
Masaki Muranaka 6cd7017ec1 Remove trailing whitespaces. This is just a cosmetic change. 2013-03-03 10:54:00 +09:00
MATSUMOTO Ryosuke 809732ab40 Adjust some indents 2013-03-02 10:26:54 -08:00
Masaki Muranaka da9b9c549a Remove unused structures. 2013-03-01 13:18:57 +09:00
brainopia db6e6dc5b8 Remove freeze leftovers 2013-02-27 09:47:05 +04:00
Cremno 0a22c59938 use the new specifier b instead of o 2013-01-15 09:15:10 +01:00
Yukihiro Matz Matsumoto fd12f87712 save lastpc on exception and use it in mruby stack trace 2012-12-12 18:23:20 +09:00
skandhas 0303faf696 fix incorrect checkups in check_iv_name 2012-12-09 21:16:58 +08:00
skandhas f6c44d0dff make 'class_instance_method_list' into a non-static funcion 2012-11-26 11:20:48 +08:00
skandhas c6574ddc4c delete redundant '__send__' definition 2012-11-18 13:41:15 +08:00
Yukihiro Matz Matsumoto a5d7ebbad0 prepare metaclass of metaclass when retrieving by singleton_class(); close #540 2012-11-16 11:34:16 +09:00
Yukihiro Matz Matsumoto 78be24c87b init_copy should copy IV of SCLASS, HASH, DATA as well 2012-11-14 17:19:01 +09:00
Yukihiro Matz Matsumoto c903910c6b replace RBASIC by mrb_basic 2012-11-04 13:56:08 +09:00
Yukihiro Matz Matsumoto 15304c194d replace RTEST() by mrb_test_p() 2012-11-04 05:05:53 +09:00
Yukihiro Matz Matsumoto 52f7e83726 Module#dup should copy class methods as well 2012-11-03 08:28:48 +09:00
Yukihiro Matz Matsumoto 2e0aa29296 cosmetic changes in mrb_obj_clone() 2012-11-03 08:28:26 +09:00
Masaki Muranaka 6069a33089 mrb_raisef(): new function. Same as previou version of mrb_raise().
mrb_raise(): API modified. It cannot treat variable arguments.
2012-10-23 09:42:22 +09:00
Yukihiro Matsumoto 8271863fe5 Kernel#block_given? always gave false 2012-10-16 23:46:34 +09:00
Yukihiro Matsumoto 27f002496f true/false should print proper inspect string 2012-10-16 22:33:34 +09:00
Yukihiro Matsumoto 26ac77af9b make Kernel#inspect not to call #to_s 2012-09-03 00:49:34 +09:00
Yukihiro Matsumoto fd3af6aec8 introduce toplevel object main; close #327 2012-09-03 00:41:09 +09:00
Yukihiro Matsumoto d1a453a89b wrong condition for iv name check 2012-08-31 15:59:48 +09:00
Yukihiro Matsumoto 7d02df3016 NaN boxing 2012-08-14 13:16:34 +09:00
Yukihiro Matsumoto 1ed39d5c05 use TRUE/FALSE instead of 1/0 2012-08-13 04:19:24 +09:00