FFI: Add C data handling and C type conversions.

This commit is contained in:
Mike Pall
2010-12-05 00:18:07 +01:00
parent 05973ee440
commit 526e087e63
9 changed files with 1149 additions and 17 deletions

View File

@@ -19,6 +19,9 @@
#include "lj_meta.h"
#include "lj_state.h"
#include "lj_frame.h"
#if LJ_HASFFI
#include "lj_cdata.h"
#endif
#include "lj_trace.h"
#include "lj_vm.h"
@@ -373,7 +376,11 @@ static const GCFreeFunc gc_freefunc[] = {
#else
(GCFreeFunc)0,
#endif
(GCFreeFunc)0, /* Placeholder for C data. */
#if LJ_HASFFI
(GCFreeFunc)lj_cdata_free,
#else
(GCFreeFunc)0,
#endif
(GCFreeFunc)lj_tab_free,
(GCFreeFunc)lj_udata_free
};