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

ruby-changes:49581

From: nobu <ko1@a...>
Date: Tue, 9 Jan 2018 09:06:05 +0900 (JST)
Subject: [ruby-changes:49581] nobu:r61696 (trunk): constified

nobu	2018-01-09 09:06:00 +0900 (Tue, 09 Jan 2018)

  New Revision: 61696

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

  Log:
    constified

  Modified files:
    trunk/dln.c
Index: dln.c
===================================================================
--- dln.c	(revision 61695)
+++ dln.c	(revision 61696)
@@ -232,13 +232,13 @@ load_header(int fd, struct exec *hdrp, l https://github.com/ruby/ruby/blob/trunk/dln.c#L232
 #  define R_RIGHTSHIFT(r)	(reloc_r_rightshift[(r)->r_type])
 #  define R_BITSIZE(r) 		(reloc_r_bitsize[(r)->r_type])
 #  define R_LENGTH(r)		(reloc_r_length[(r)->r_type])
-static int reloc_r_rightshift[] = {
+static const int reloc_r_rightshift[] = {
   0, 0, 0, 0, 0, 0, 2, 2, 10, 0, 0, 0, 0, 0, 0,
 };
-static int reloc_r_bitsize[] = {
+static const int reloc_r_bitsize[] = {
   8, 16, 32, 8, 16, 32, 30, 22, 22, 22, 13, 10, 32, 32, 16,
 };
-static int reloc_r_length[] = {
+static const int reloc_r_length[] = {
   0, 1, 2, 0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
 };
 #  define R_PCREL(r) \

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

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