diff options
| author | mimaki <[email protected]> | 2012-04-20 09:39:03 +0900 |
|---|---|---|
| committer | mimaki <[email protected]> | 2012-04-20 09:39:03 +0900 |
| commit | e0d6430f63c4cbe0c71ce82ee23284671389a818 (patch) | |
| tree | 41abad7f12eced98d9ac14d141cea62464c3332f /src/irep.h | |
| parent | 54ad561098ed353ada70205c39b2c42a2a2eb9e5 (diff) | |
| download | mruby-e0d6430f63c4cbe0c71ce82ee23284671389a818.tar.gz mruby-e0d6430f63c4cbe0c71ce82ee23284671389a818.zip | |
add mruby sources
Diffstat (limited to 'src/irep.h')
| -rw-r--r-- | src/irep.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/irep.h b/src/irep.h new file mode 100644 index 000000000..5ec6cc6f1 --- /dev/null +++ b/src/irep.h @@ -0,0 +1,23 @@ +#ifndef MRUBY_IREP_H +#define MRUBY_IREP_H + +typedef struct mrb_irep { + int idx; + + int flags; + int nlocals; + int nregs; + + mrb_code *iseq; + mrb_value *pool; + int *syms; + + int ilen, plen, slen; +} mrb_irep; + +#define MRB_IREP_NOFREE 3 +#define MRB_ISEQ_NOFREE 1 + +void mrb_add_irep(mrb_state *mrb, int n); + +#endif /* MRUBY_IREP_H */ |
