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

ruby-changes:29086

From: charliesome <ko1@a...>
Date: Fri, 7 Jun 2013 17:31:59 +0900 (JST)
Subject: [ruby-changes:29086] charliesome:r41138 (trunk): * internal.h (RCLASS_SUPER): use descriptive variable name

charliesome	2013-06-07 17:31:48 +0900 (Fri, 07 Jun 2013)

  New Revision: 41138

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

  Log:
    * internal.h (RCLASS_SUPER): use descriptive variable name
    * internal.h (RCLASS_SET_SUPER): ditto

  Modified files:
    trunk/ChangeLog
    trunk/internal.h

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41137)
+++ ChangeLog	(revision 41138)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Jun  7 17:31:00 2013  Charlie Somerville  <charliesome@r...>
+
+	* internal.h (RCLASS_SUPER): use descriptive variable name
+	* internal.h (RCLASS_SET_SUPER): ditto
+
 Fri Jun  7 13:25:27 2013  NARUSE, Yui  <naruse@r...>
 
 	* ext/json/fbuffer/fbuffer.h (fbuffer_append_str): change the place of
Index: internal.h
===================================================================
--- internal.h	(revision 41137)
+++ internal.h	(revision 41138)
@@ -74,16 +74,16 @@ struct rb_classext_struct { https://github.com/ruby/ruby/blob/trunk/internal.h#L74
 
 #undef RCLASS_SUPER
 static inline VALUE
-RCLASS_SUPER(VALUE c)
+RCLASS_SUPER(VALUE klass)
 {
-    return RCLASS_EXT(c)->super;
+    return RCLASS_EXT(klass)->super;
 }
 
 static inline VALUE
-RCLASS_SET_SUPER(VALUE a, VALUE b)
+RCLASS_SET_SUPER(VALUE klass, VALUE super)
 {
-    OBJ_WRITE(a, &RCLASS_EXT(a)->super, b);
-    return b;
+    OBJ_WRITE(klass, &RCLASS_EXT(klass)->super, super);
+    return super;
 }
 
 struct vtm; /* defined by timev.h */

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

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