mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
move KHASH_DECLARE to header files
This commit is contained in:
+2
-4
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user