X-Git-Url: http://nitlanguage.org diff --git a/c_src/kernel._nitni.h b/c_src/kernel._nitni.h index 822724c..c1691d9 100644 --- a/c_src/kernel._nitni.h +++ b/c_src/kernel._nitni.h @@ -1,10 +1,32 @@ -#include -#include "kernel._sep.h" -#ifndef KERNEL_NITNI_H -#define KERNEL_NITNI_H +/* + Extern implementation of Nit module kernel +*/ +#ifndef KERNEL_NITG_NITNI_H +#define KERNEL_NITG_NITNI_H -#ifndef Pointer - typedef void* Pointer; +#ifndef NIT_TYPE_Sys +#define NIT_TYPE_Sys 1 +typedef struct nitni_instance *Sys; +#endif +#ifndef NIT_TYPE_Sys +#define NIT_TYPE_Sys 1 +typedef struct nitni_instance *Sys; +#endif +#ifndef NIT_TYPE_Sys +#define NIT_TYPE_Sys 1 +typedef struct nitni_instance *Sys; +#endif +#ifndef NIT_TYPE_Sys +#define NIT_TYPE_Sys 1 +typedef struct nitni_instance *Sys; +#endif +#include "kernel._ffi.h" +extern void nitni_global_ref_incr(void*); +extern void nitni_global_ref_decr(void*); +#ifndef Sys_incr_ref + #define Sys_incr_ref(from) nitni_global_ref_incr((Sys)(from)) +#endif +#ifndef Sys_decr_ref + #define Sys_decr_ref(from) nitni_global_ref_decr((Sys)(from)) #endif - #endif