summaryrefslogtreecommitdiffhomepage
path: root/mrblib/init_mrblib.c
diff options
context:
space:
mode:
authorYukihiro Matz Matsumoto <[email protected]>2012-12-07 16:58:50 +0900
committerYukihiro Matz Matsumoto <[email protected]>2012-12-07 16:58:50 +0900
commitf1ed1436240a2d0d3d45a7061ade26cdc25be352 (patch)
treefc4b9e25b6e2cba27e982bab89bfbb2b3553d499 /mrblib/init_mrblib.c
parentf4867743524c37c14acdfb93caa874818cc6c101 (diff)
downloadmruby-f1ed1436240a2d0d3d45a7061ade26cdc25be352.tar.gz
mruby-f1ed1436240a2d0d3d45a7061ade26cdc25be352.zip
mange arena_idx smarter for smaller ARENA_SIZE; now default to 100 from 1024
Diffstat (limited to 'mrblib/init_mrblib.c')
-rw-r--r--mrblib/init_mrblib.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mrblib/init_mrblib.c b/mrblib/init_mrblib.c
index 72355e3eb..eb7156bf1 100644
--- a/mrblib/init_mrblib.c
+++ b/mrblib/init_mrblib.c
@@ -9,8 +9,6 @@ extern const char mrblib_irep[];
void
mrb_init_mrblib(mrb_state *mrb)
{
- int n = mrb_read_irep(mrb, mrblib_irep);
-
- mrb_run(mrb, mrb_proc_new(mrb, mrb->irep[n]), mrb_top_self(mrb));
+ mrb_load_irep(mrb, mrblib_irep);
}