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

ruby-changes:38981

From: nobu <ko1@a...>
Date: Mon, 29 Jun 2015 17:38:16 +0900 (JST)
Subject: [ruby-changes:38981] nobu:r51062 (trunk): insns.def: no quoting

nobu	2015-06-29 17:38:04 +0900 (Mon, 29 Jun 2015)

  New Revision: 51062

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

  Log:
    insns.def: no quoting
    
    * insns.def (defineclass): do not quote unprintable characters at
      raising an exception.

  Modified files:
    trunk/ChangeLog
    trunk/insns.def
Index: insns.def
===================================================================
--- insns.def	(revision 51061)
+++ insns.def	(revision 51062)
@@ -844,7 +844,7 @@ defineclass https://github.com/ruby/ruby/blob/trunk/insns.def#L844
 
 	if (VM_DEFINECLASS_HAS_SUPERCLASS_P(flags) &&
 	    !RB_TYPE_P(super, T_CLASS)) {
-	    rb_raise(rb_eTypeError, "superclass must be a Class (% "PRIsVALUE" given)",
+	    rb_raise(rb_eTypeError, "superclass must be a Class (%"PRIsVALUE" given)",
 		     rb_obj_class(super));
 	}
 
@@ -861,7 +861,7 @@ defineclass https://github.com/ruby/ruby/blob/trunk/insns.def#L861
 	    klass = VM_DEFINECLASS_SCOPED_P(flags) ?
 		rb_public_const_get_at(klass, id) : rb_const_get_at(klass, id);
 	    if (!RB_TYPE_P(klass, T_CLASS)) {
-		rb_raise(rb_eTypeError, "% "PRIsVALUE" is not a class", rb_id2str(id));
+		rb_raise(rb_eTypeError, "%"PRIsVALUE" is not a class", rb_id2str(id));
 	    }
 
 	    if (super != rb_cObject) {
@@ -869,7 +869,7 @@ defineclass https://github.com/ruby/ruby/blob/trunk/insns.def#L869
 		tmp = rb_class_real(RCLASS_SUPER(klass));
 
 		if (tmp != super) {
-		    rb_raise(rb_eTypeError, "superclass mismatch for class % "PRIsVALUE"",
+		    rb_raise(rb_eTypeError, "superclass mismatch for class %"PRIsVALUE"",
 			     rb_id2str(id));
 		}
 	    }
@@ -899,7 +899,7 @@ defineclass https://github.com/ruby/ruby/blob/trunk/insns.def#L899
 		rb_public_const_get_at(klass, id) : rb_const_get_at(klass, id);
 	    /* already exist */
 	    if (!RB_TYPE_P(klass, T_MODULE)) {
-		rb_raise(rb_eTypeError, "% "PRIsVALUE" is not a module", rb_id2str(id));
+		rb_raise(rb_eTypeError, "%"PRIsVALUE" is not a module", rb_id2str(id));
 	    }
 	}
 	else {
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 51061)
+++ ChangeLog	(revision 51062)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Jun 29 17:38:01 2015  Nobuyoshi Nakada  <nobu@r...>
+
+	* insns.def (defineclass): do not quote unprintable characters at
+	  raising an exception.
+
 Mon Jun 29 16:01:24 2015  NARUSE, Yui  <naruse@r...>
 
 	* lib/net/http/response.rb (inflater): CONTENT_ENCODING can be upper

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

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