Skip to content

Commit 75326e2

Browse files
peterzhu2118ko1
authored andcommitted
Fix name of rb_iseq_t struct
Only `struct rb_iseq_struct`` and `rb_iseq_t`` are valid names, `struct rb_iseq` is not a valid name.
1 parent 6e9a127 commit 75326e2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

ext/debug/debug.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,26 +121,26 @@ frame_depth(VALUE self)
121121

122122
// iseq
123123

124-
const struct rb_iseq *rb_iseqw_to_iseq(VALUE iseqw);
124+
const rb_iseq_t *rb_iseqw_to_iseq(VALUE iseqw);
125125

126126
#ifdef HAVE_RB_ISEQ_TYPE
127-
VALUE rb_iseq_type(const struct rb_iseq *);
127+
VALUE rb_iseq_type(const rb_iseq_t *);
128128

129129
static VALUE
130130
iseq_type(VALUE iseqw)
131131
{
132-
const struct rb_iseq *iseq = rb_iseqw_to_iseq(iseqw);
132+
const rb_iseq_t *iseq = rb_iseqw_to_iseq(iseqw);
133133
return rb_iseq_type(iseq);
134134
}
135135
#endif
136136

137137
#ifdef HAVE_RB_ISEQ_PARAMETERS
138-
VALUE rb_iseq_parameters(const struct rb_iseq *, int is_proc);
138+
VALUE rb_iseq_parameters(const rb_iseq_t *, int is_proc);
139139

140140
static VALUE
141141
iseq_parameters_symbols(VALUE iseqw)
142142
{
143-
const struct rb_iseq *iseq = rb_iseqw_to_iseq(iseqw);
143+
const rb_iseq_t *iseq = rb_iseqw_to_iseq(iseqw);
144144
VALUE params = rb_iseq_parameters(iseq, 0);
145145
VALUE ary = rb_ary_new();
146146

@@ -167,12 +167,12 @@ iseq_parameters_symbols(VALUE iseqw)
167167
#endif
168168

169169
#ifdef HAVE_RB_ISEQ_CODE_LOCATION
170-
void rb_iseq_code_location(const struct rb_iseq *, int *first_lineno, int *first_column, int *last_lineno, int *last_column);
170+
void rb_iseq_code_location(const rb_iseq_t *, int *first_lineno, int *first_column, int *last_lineno, int *last_column);
171171

172172
static VALUE
173173
iseq_first_line(VALUE iseqw)
174174
{
175-
const struct rb_iseq *iseq = rb_iseqw_to_iseq(iseqw);
175+
const rb_iseq_t *iseq = rb_iseqw_to_iseq(iseqw);
176176
int line;
177177
rb_iseq_code_location(iseq, &line, NULL, NULL, NULL);
178178
return INT2NUM(line);
@@ -181,7 +181,7 @@ iseq_first_line(VALUE iseqw)
181181
static VALUE
182182
iseq_last_line(VALUE iseqw)
183183
{
184-
const struct rb_iseq *iseq = rb_iseqw_to_iseq(iseqw);
184+
const rb_iseq_t *iseq = rb_iseqw_to_iseq(iseqw);
185185
int line;
186186
rb_iseq_code_location(iseq, NULL, NULL, &line, NULL);
187187
return INT2NUM(line);

0 commit comments

Comments
 (0)