summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-10-17 02:57:40 +0900
committerYukihiro Matsumoto <[email protected]>2012-10-17 02:57:40 +0900
commit70abbb423a1b215563e6e4e58bfb76c02e59125d (patch)
tree06e8d2c83e06f12a8c7fbfe0356257578b666a5a /include
parent265fa03d2c6863bf3425bfe00738ad15d62ba587 (diff)
downloadmruby-70abbb423a1b215563e6e4e58bfb76c02e59125d.tar.gz
mruby-70abbb423a1b215563e6e4e58bfb76c02e59125d.zip
should not free() static iseq from cdump
Diffstat (limited to 'include')
-rw-r--r--include/mruby/irep.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/mruby/irep.h b/include/mruby/irep.h
index 0d8a05dbe..534590849 100644
--- a/include/mruby/irep.h
+++ b/include/mruby/irep.h
@@ -12,10 +12,10 @@ extern "C" {
#endif
typedef struct mrb_irep {
- int idx;
-
- int nlocals;
- int nregs;
+ int idx:16;
+ int nlocals:16;
+ int nregs:16;
+ int flags:8;
mrb_code *iseq;
mrb_value *pool;
@@ -28,6 +28,8 @@ typedef struct mrb_irep {
int ilen, plen, slen;
} mrb_irep;
+#define MRB_ISEQ_NO_FREE 1
+
void mrb_add_irep(mrb_state *mrb, int n);
#if defined(__cplusplus)