8000 iseq.h: rb_iseq_t · documenting-ruby/ruby@b026a71 · GitHub
[go: up one dir, main page]

Skip to content

Commit b026a71

Browse files
committed
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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 71ed163 commit b026a71

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

iseq.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
#ifndef RUBY_ISEQ_H
1313
#define RUBY_ISEQ_H 1
1414

15+
#ifndef rb_iseq_t
16+
8000 typedef struct rb_iseq_struct rb_iseq_t;
17+
#define rb_iseq_t rb_iseq_t
18+
#endif
19+
1520
static inline size_t
1621
rb_call_info_kw_arg_bytes(int keyword_len)
1722
{

method.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,10 @@ typedef enum {
118118
END_OF_ENUMERATION(VM_METHOD_TYPE)
119119
} rb_method_type_t;
120120

121+
#ifndef rb_iseq_t
121122
typedef struct rb_iseq_struct rb_iseq_t;
123+
#define rb_iseq_t rb_iseq_t
124+
#endif
122125

123126
typedef struct rb_method_iseq_struct {
124127
const rb_iseq_t * const iseqptr; /* should be separated from iseqval */

0 commit comments

Comments
 (0)
0