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

ruby-changes:34811

From: normal <ko1@a...>
Date: Tue, 22 Jul 2014 01:56:27 +0900 (JST)
Subject: [ruby-changes:34811] normal:r46894 (trunk): rb_io_buffer_t: fix packing on gcc

normal	2014-07-22 01:56:13 +0900 (Tue, 22 Jul 2014)

  New Revision: 46894

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

  Log:
    rb_io_buffer_t: fix packing on gcc
    
    * include/ruby/io.h (rb_io_buffer_t): fix packing on gcc
      r46892 caused packing to be a no-op on gcc (4.7.2-5, Debian)
      [Bug #10079][ruby-core:63912]

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/io.h
Index: include/ruby/io.h
===================================================================
--- include/ruby/io.h	(revision 46893)
+++ include/ruby/io.h	(revision 46894)
@@ -51,12 +51,13 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/include/ruby/io.h#L51
 
 RUBY_SYMBOL_EXPORT_BEGIN
 
-PACKED_STRUCT(typedef struct {
+PACKED_STRUCT(struct rb_io_buffer_t {
     char *ptr;                  /* off + len <= capa */
     int off;
     int len;
     int capa;
-} rb_io_buffer_t);
+});
+typedef struct rb_io_buffer_t rb_io_buffer_t;
 
 typedef struct rb_io_t {
     FILE *stdio_file;		/* stdio ptr for read/write if available */
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46893)
+++ ChangeLog	(revision 46894)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Jul 22 01:48:38 2014  Eric Wong  <e@8...>
+
+	* include/ruby/io.h (rb_io_buffer_t): fix packing on gcc
+	  r46892 caused packing to be a no-op on gcc (4.7.2-5, Debian)
+	  [Bug #10079][ruby-core:63912]
+
 Mon Jul 21 15:55:42 2014  fuji70  <fujifuji70@g...>
 
 	* lib/optparse.rb (getopts): print default values and descriptions

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

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