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

ruby-changes:46147

From: nobu <ko1@a...>
Date: Thu, 6 Apr 2017 11:33:45 +0900 (JST)
Subject: [ruby-changes:46147] nobu:r58261 (trunk): Freeze RbConfig::SIZEOF and RbConfig::LIMITS

nobu	2017-04-06 11:33:40 +0900 (Thu, 06 Apr 2017)

  New Revision: 58261

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

  Log:
    Freeze RbConfig::SIZEOF and RbConfig::LIMITS

  Modified files:
    trunk/template/limits.c.tmpl
    trunk/template/sizes.c.tmpl
Index: template/sizes.c.tmpl
===================================================================
--- template/sizes.c.tmpl	(revision 58260)
+++ template/sizes.c.tmpl	(revision 58261)
@@ -47,7 +47,8 @@ Init_sizeof(void) https://github.com/ruby/ruby/blob/trunk/template/sizes.c.tmpl#L47
     DEFINE(<%= type %>, <%= type.tr_cpp %>);
 #endif
 % end
+    OBJ_FREEZE(s);
 
 #undef DEFINE
-      Init_limits();
+    Init_limits();
 }
Index: template/limits.c.tmpl
===================================================================
--- template/limits.c.tmpl	(revision 58260)
+++ template/limits.c.tmpl	(revision 58261)
@@ -93,4 +93,5 @@ Init_limits(void) https://github.com/ruby/ruby/blob/trunk/template/limits.c.tmpl#L93
 #undef DEFINE
 #undef MIN2NUM
 #undef MAX2NUM
+    OBJ_FREEZE(h);
 }

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

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