ruby-changes:28870
From: nobu <ko1@a...>
Date: Sat, 25 May 2013 11:27:45 +0900 (JST)
Subject: [ruby-changes:28870] nobu:r40922 (trunk): vm_method.c: quote method name
nobu 2013-05-25 11:27:34 +0900 (Sat, 25 May 2013) New Revision: 40922 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40922 Log: vm_method.c: quote method name * vm_method.c (set_method_visibility): quote unprintable method name. Modified files: trunk/ChangeLog trunk/vm_method.c Index: ChangeLog =================================================================== --- ChangeLog (revision 40921) +++ ChangeLog (revision 40922) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat May 25 11:27:32 2013 Nobuyoshi Nakada <nobu@r...> + + * vm_method.c (set_method_visibility): quote unprintable method name. + Sat May 25 11:24:24 2013 Nobuyoshi Nakada <nobu@r...> * eval.c (rb_frame_callee): returns the called name of the current Index: vm_method.c =================================================================== --- vm_method.c (revision 40921) +++ vm_method.c (revision 40922) @@ -1274,7 +1274,8 @@ set_method_visibility(VALUE self, int ar https://github.com/ruby/ruby/blob/trunk/vm_method.c#L1274 secure_visibility(self); if (argc == 0) { - rb_warning("%s with no argument is just ignored", rb_id2name(rb_frame_callee())); + rb_warning("%"PRIsVALUE" with no argument is just ignored", + QUOTE_ID(rb_frame_callee())); } for (i = 0; i < argc; i++) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/