mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
rename config macro name IV_INITIAL_SIZE -> IVHASH_INIT_SIZE
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user