From 75326e28e1b130b61fb8cd138e134641768de607 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Wed, 27 Mar 2024 11:31:47 -0400 Subject: [PATCH] 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. --- ext/debug/debug.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ext/debug/debug.c b/ext/debug/debug.c index ad8431cef..5404c92d2 100644 --- a/ext/debug/debug.c +++ b/ext/debug/debug.c @@ -121,26 +121,26 @@ frame_depth(VALUE self) // iseq -const struct rb_iseq *rb_iseqw_to_iseq(VALUE iseqw); +const rb_iseq_t *rb_iseqw_to_iseq(VALUE iseqw); #ifdef HAVE_RB_ISEQ_TYPE -VALUE rb_iseq_type(const struct rb_iseq *); +VALUE rb_iseq_type(const rb_iseq_t *); static VALUE iseq_type(VALUE iseqw) { - const struct rb_iseq *iseq = rb_iseqw_to_iseq(iseqw); + const rb_iseq_t *iseq = rb_iseqw_to_iseq(iseqw); return rb_iseq_type(iseq); } #endif #ifdef HAVE_RB_ISEQ_PARAMETERS -VALUE rb_iseq_parameters(const struct rb_iseq *, int is_proc); +VALUE rb_iseq_parameters(const rb_iseq_t *, int is_proc); static VALUE iseq_parameters_symbols(VALUE iseqw) { - const struct rb_iseq *iseq = rb_iseqw_to_iseq(iseqw); + const rb_iseq_t *iseq = rb_iseqw_to_iseq(iseqw); VALUE params = rb_iseq_parameters(iseq, 0); VALUE ary = rb_ary_new(); @@ -167,12 +167,12 @@ iseq_parameters_symbols(VALUE iseqw) #endif #ifdef HAVE_RB_ISEQ_CODE_LOCATION -void rb_iseq_code_location(const struct rb_iseq *, int *first_lineno, int *first_column, int *last_lineno, int *last_column); +void rb_iseq_code_location(const rb_iseq_t *, int *first_lineno, int *first_column, int *last_lineno, int *last_column); static VALUE iseq_first_line(VALUE iseqw) { - const struct rb_iseq *iseq = rb_iseqw_to_iseq(iseqw); + const rb_iseq_t *iseq = rb_iseqw_to_iseq(iseqw); int line; rb_iseq_code_location(iseq, &line, NULL, NULL, NULL); return INT2NUM(line); @@ -181,7 +181,7 @@ iseq_first_line(VALUE iseqw) static VALUE iseq_last_line(VALUE iseqw) { - const struct rb_iseq *iseq = rb_iseqw_to_iseq(iseqw); + const rb_iseq_t *iseq = rb_iseqw_to_iseq(iseqw); int line; rb_iseq_code_location(iseq, NULL, NULL, &line, NULL); return INT2NUM(line);