diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-09-04 17:38:27 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-09-04 17:38:27 +0900 |
| commit | bf7f9f83c72bb5baf0fe67c3b411239b17fa9eb5 (patch) | |
| tree | 5e90ea35758e408939c3a37308cddb0f1dd22bc3 | |
| parent | eb080397fa0c3a9bc680f511a563be87920bcc37 (diff) | |
| download | mruby-bf7f9f83c72bb5baf0fe67c3b411239b17fa9eb5.tar.gz mruby-bf7f9f83c72bb5baf0fe67c3b411239b17fa9eb5.zip | |
rename config macro name IV_INITIAL_SIZE -> IVHASH_INIT_SIZE
| -rw-r--r-- | include/mrbconf.h | 2 | ||||
| -rw-r--r-- | src/variable.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/mrbconf.h b/include/mrbconf.h index e308e8f82..b4332adcd 100644 --- a/include/mrbconf.h +++ b/include/mrbconf.h @@ -29,7 +29,7 @@ //#define MRB_USE_IV_SEGLIST /* initial size for IV khash; ignored when MRB_USE_IV_SEGLIST is set */ -//#define MRB_IV_INITIAL_SIZE 8 +//#define MRB_IVHASH_INIT_SIZE 8 /* default size of khash table bucket */ //#define KHASH_DEFAULT_SIZE 32 diff --git a/src/variable.c b/src/variable.c index e5ab73d6c..effdf51d4 100644 --- a/src/variable.c +++ b/src/variable.c @@ -251,8 +251,8 @@ iv_free(mrb_state *mrb, iv_tbl *t) #include "mruby/khash.h" -#ifndef MRB_IV_INITIAL_SIZE -#define MRB_IV_INITIAL_SIZE 8 +#ifndef MRB_IVHASH_INIT_SIZE +#define MRB_IVHASH_INIT_SIZE 8 #endif KHASH_DECLARE(iv, mrb_sym, mrb_value, 1) @@ -265,7 +265,7 @@ typedef struct iv_tbl { static iv_tbl* iv_new(mrb_state *mrb) { - return (iv_tbl*)kh_init_size(iv, mrb, MRB_IV_INITIAL_SIZE); + return (iv_tbl*)kh_init_size(iv, mrb, MRB_IVHASH_INIT_SIZE); } static void |
