From e0d6430f63c4cbe0c71ce82ee23284671389a818 Mon Sep 17 00:00:00 2001 From: mimaki Date: Fri, 20 Apr 2012 09:39:03 +0900 Subject: add mruby sources --- src/irep.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/irep.h (limited to 'src/irep.h') 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 */ -- cgit v1.2.3