move KHASH_DECLARE to header files

This commit is contained in:
Yukihiro Matsumoto
2012-06-21 11:04:36 +09:00
parent 8b8151a60e
commit 396397bce1
6 changed files with 60 additions and 46 deletions
+2 -4
View File
@@ -15,7 +15,8 @@
#include "mruby/array.h"
#include "error.h"
#include "mruby/khash.h"
KHASH_DEFINE(iv, mrb_sym, mrb_value, 1, kh_int_hash_func, kh_int_hash_equal);
KHASH_DEFINE(mt, mrb_sym, struct RProc*, 1, kh_int_hash_func, kh_int_hash_equal);
typedef struct fc_result {
mrb_sym name;
@@ -25,9 +26,6 @@ typedef struct fc_result {
struct fc_result *prev;
} fcresult_t;
int kiv_lookup(khash_t(iv) *table, mrb_sym key, mrb_value *value);
extern struct kh_iv *mrb_class_tbl;
void
mrb_gc_mark_mt(mrb_state *mrb, struct RClass *c)
{