diff --git a/include/mruby.h b/include/mruby.h index f45e93e80..8904ae334 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -154,7 +154,7 @@ typedef uint8_t mrb_code; */ typedef uint32_t mrb_aspec; -struct mrb_irep; +typedef struct mrb_irep mrb_irep; struct mrb_state; /** diff --git a/include/mruby/irep.h b/include/mruby/irep.h index 80247d7cc..ba390a05d 100644 --- a/include/mruby/irep.h +++ b/include/mruby/irep.h @@ -52,7 +52,7 @@ struct mrb_irep_catch_handler { }; /* Program data array struct */ -typedef struct mrb_irep { +struct mrb_irep { uint16_t nlocals; /* Number of local variables */ uint16_t nregs; /* Number of register variables */ uint16_t clen; /* Number of catch handlers */ @@ -76,7 +76,7 @@ typedef struct mrb_irep { uint16_t plen, slen; uint16_t rlen; uint16_t refcnt; -} mrb_irep; +}; #define MRB_ISEQ_NO_FREE 1 #define MRB_IREP_NO_FREE 2