summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-04-28 07:29:37 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-04-28 07:29:37 +0900
commit3244ddf0c396cc1878579d12eb69e2fdc3c4ffa2 (patch)
tree2f521833ea5c9570983cc2877ea07e3b7e854ee3 /include
parentc235d8f08d4cda1b7e49e0c984c76cfdbf409dd0 (diff)
downloadmruby-3244ddf0c396cc1878579d12eb69e2fdc3c4ffa2.tar.gz
mruby-3244ddf0c396cc1878579d12eb69e2fdc3c4ffa2.zip
presreve local variables names in irep->lv
Diffstat (limited to 'include')
-rw-r--r--include/mruby/irep.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/mruby/irep.h b/include/mruby/irep.h
index 480cb052f..13298f17f 100644
--- a/include/mruby/irep.h
+++ b/include/mruby/irep.h
@@ -19,6 +19,11 @@ enum irep_pool_type {
IREP_TT_FLOAT,
};
+struct mrb_locals {
+ mrb_sym name;
+ size_t r;
+};
+
/* Program data array struct */
typedef struct mrb_irep {
uint16_t nlocals; /* Number of local variables */
@@ -30,6 +35,7 @@ typedef struct mrb_irep {
mrb_sym *syms;
struct mrb_irep **reps;
+ struct mrb_locals *lv;
/* debug info */
const char *filename;
uint16_t *lines;