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

ruby-changes:55739

From: Nobuyoshi <ko1@a...>
Date: Thu, 16 May 2019 18:25:41 +0900 (JST)
Subject: [ruby-changes:55739] Nobuyoshi Nakada: 0ed9bdfc13 (trunk): Pack struct rb_strterm_heredoc_struct on 32-bit platforms

https://git.ruby-lang.org/ruby.git/commit/?id=0ed9bdfc13

From 0ed9bdfc13082b6d19712738ca69fbbe2a36f106 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 16 May 2019 18:24:12 +0900
Subject: Pack struct rb_strterm_heredoc_struct on 32-bit platforms


diff --git a/parse.y b/parse.y
index e9f0a0f..324ad6b 100644
--- a/parse.y
+++ b/parse.y
@@ -622,8 +622,13 @@ struct rb_strterm_heredoc_struct { https://github.com/ruby/ruby/blob/trunk/parse.y#L622
 # define HERETERM_LENGTH_MAX UINT_MAX
 #endif
     ;
+#if HERETERM_LENGTH_BITS < SIZEOF_INT * CHAR_BIT
     unsigned quote: 1;
+    unsigned func: 8;
+#else
+    uint8_t quote;
     uint8_t func;
+#endif
 };
 STATIC_ASSERT(rb_strterm_heredoc_t, sizeof(rb_strterm_heredoc_t) <= 4 * SIZEOF_VALUE);
 
-- 
cgit v0.10.2


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

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