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

ruby-changes:39819

From: nobu <ko1@a...>
Date: Sat, 19 Sep 2015 10:53:45 +0900 (JST)
Subject: [ruby-changes:39819] nobu:r51900 (trunk): iseq.h: rb_iseq_t

nobu	2015-09-19 10:53:34 +0900 (Sat, 19 Sep 2015)

  New Revision: 51900

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

  Log:
    iseq.h: rb_iseq_t
    
    * iseq.h (rb_iseq_t): also should be defined here for prototype
      declarations arguments.
    
    * method.h (rb_iseq_t): get rid of redefinition.

  Modified files:
    trunk/iseq.h
    trunk/method.h
Index: method.h
===================================================================
--- method.h	(revision 51899)
+++ method.h	(revision 51900)
@@ -118,7 +118,10 @@ typedef enum { https://github.com/ruby/ruby/blob/trunk/method.h#L118
     END_OF_ENUMERATION(VM_METHOD_TYPE)
 } rb_method_type_t;
 
+#ifndef rb_iseq_t
 typedef struct rb_iseq_struct rb_iseq_t;
+#define rb_iseq_t rb_iseq_t
+#endif
 
 typedef struct rb_method_iseq_struct {
     const rb_iseq_t * const iseqptr;              /* should be separated from iseqval */
Index: iseq.h
===================================================================
--- iseq.h	(revision 51899)
+++ iseq.h	(revision 51900)
@@ -12,6 +12,11 @@ https://github.com/ruby/ruby/blob/trunk/iseq.h#L12
 #ifndef RUBY_ISEQ_H
 #define RUBY_ISEQ_H 1
 
+#ifndef rb_iseq_t
+typedef struct rb_iseq_struct rb_iseq_t;
+#define rb_iseq_t rb_iseq_t
+#endif
+
 static inline size_t
 rb_call_info_kw_arg_bytes(int keyword_len)
 {

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

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