[前][次][番号順一覧][スレッド一覧]

ruby-changes:22936

From: nobu <ko1@a...>
Date: Mon, 12 Mar 2012 19:03:53 +0900 (JST)
Subject: [ruby-changes:22936] nobu:r34985 (trunk): * vm_method.c (Init_eval_method): respond_to? and

nobu	2012-03-12 19:03:36 +0900 (Mon, 12 Mar 2012)

  New Revision: 34985

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34985

  Log:
    * vm_method.c (Init_eval_method): respond_to? and
      respond_to_missing? are public.

  Modified files:
    trunk/ChangeLog
    trunk/vm_method.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 34984)
+++ ChangeLog	(revision 34985)
@@ -1,3 +1,8 @@
+Mon Mar 12 19:03:32 2012  Nobuyoshi Nakada  <nobu@r...>
+
+	* vm_method.c (Init_eval_method): respond_to? and
+	  respond_to_missing? are public.
+
 Mon Mar 12 14:56:52 2012  Nobuyoshi Nakada  <nobu@r...>
 
 	* node.h (NEW_YIELD), parse.y (new_yield_gen): array-values flags
Index: vm_method.c
===================================================================
--- vm_method.c	(revision 34984)
+++ vm_method.c	(revision 34985)
@@ -1394,12 +1394,12 @@
     respond_to_missing = rb_intern("respond_to_missing?");
 
     {
-#define REPLICATE_METHOD(klass, id) \
+#define REPLICATE_METHOD(klass, id, noex) \
 	rb_method_entry_set((klass), (id), rb_method_entry((klass), (id)), \
-			    (rb_method_flag_t)(NOEX_PRIVATE | NOEX_BASIC | NOEX_NOREDEF))
-	REPLICATE_METHOD(rb_eException, idMethodMissing);
-	REPLICATE_METHOD(rb_eException, idRespond_to);
-	REPLICATE_METHOD(rb_eException, respond_to_missing);
+			    (rb_method_flag_t)(noex | NOEX_BASIC | NOEX_NOREDEF))
+	REPLICATE_METHOD(rb_eException, idMethodMissing, NOEX_PRIVATE);
+	REPLICATE_METHOD(rb_eException, idRespond_to, NOEX_PUBLIC);
+	REPLICATE_METHOD(rb_eException, respond_to_missing, NOEX_PUBLIC);
     }
 }
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]