Make definition of mrb_irep by typedef in mruby.h

Eliminated invisible dependencies from `mruby/debug.h` to `mruby/irep.h`.
This commit is contained in:
dearblue
2022-08-12 22:25:27 +09:00
parent 15184c50f7
commit 1e72c61b0f
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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;
/**
+2 -2
View File
@@ -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