mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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:
+1
-1
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user