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

ruby-changes:48920

From: mame <ko1@a...>
Date: Wed, 6 Dec 2017 10:41:09 +0900 (JST)
Subject: [ruby-changes:48920] mame:r61038 (trunk): parse.y: remove redefined typedef

mame	2017-12-06 10:41:05 +0900 (Wed, 06 Dec 2017)

  New Revision: 61038

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

  Log:
    parse.y: remove redefined typedef
    
    Clang told me that this is C11 feature.

  Modified files:
    trunk/parse.y
Index: parse.y
===================================================================
--- parse.y	(revision 61037)
+++ parse.y	(revision 61038)
@@ -766,7 +766,7 @@ typedef struct rb_strterm_literal_struct https://github.com/ruby/ruby/blob/trunk/parse.y#L766
     } u3;
 } rb_strterm_literal_t;
 
-typedef struct rb_strterm_heredoc_struct {
+struct rb_strterm_heredoc_struct {
     SIGNED_VALUE sourceline;
     VALUE term;		/* `"END"` of `<<"END"` */
     VALUE lastline;	/* the string of line that contains `<<"END"` */
@@ -774,7 +774,7 @@ typedef struct rb_strterm_heredoc_struct https://github.com/ruby/ruby/blob/trunk/parse.y#L774
 	VALUE dummy;
 	long lastidx;	/* the column of `<<"END"` */
     } u3;
-} rb_strterm_heredoc_t;
+};
 
 #define STRTERM_HEREDOC IMEMO_FL_USER0
 

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

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