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

ruby-changes:64453

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Tue, 22 Dec 2020 16:26:50 +0900 (JST)
Subject: [ruby-changes:64453] 7fbad92241 (master): rb_cData: no longer exists

https://git.ruby-lang.org/ruby.git/commit/?id=7fbad92241

From 7fbad9224188905a6d96dee5aad5b1e1564e4461 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?=
 <shyouhei@r...>
Date: Tue, 22 Dec 2020 16:15:35 +0900
Subject: rb_cData: no longer exists

Commit 8918a9cf6c65409ae1ffcdea324a1b97c6e5bb70 introduced macro
`#define rb_cData rb_cData()`.  This deleting `VALUE rb_cData;`
declaration was then macro-expanded into `VALUE rb_cData();`.  This
worked by accident because the expanded expression happen to be a K&R
style function declaration.

This is rather complicated and I guess unintended.  Just delete the line
to keep things simple straight forward.

diff --git a/object.c b/object.c
index 6d45e25..9cbc251 100644
--- a/object.c
+++ b/object.c
@@ -49,7 +49,6 @@ VALUE rb_mKernel; /*!< Kernel module */ https://github.com/ruby/ruby/blob/trunk/object.c#L49
 VALUE rb_cObject; /*!< Object class */
 VALUE rb_cModule; /*!< Module class */
 VALUE rb_cClass; /*!< Class class */
-VALUE rb_cData; /*!< Data class */
 
 VALUE rb_cNilClass; /*!< NilClass class */
 VALUE rb_cTrueClass; /*!< TrueClass class */
-- 
cgit v0.10.2


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

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