c_src: update with new intern methods
[nit.git] / c_src / string._nitni.h
index c84f763..f8c9419 100644 (file)
@@ -1,20 +1,15 @@
-#include <nit_common.h>
-#include "string._sep.h"
-#ifndef STRING_NITNI_H
-#define STRING_NITNI_H
-
-#ifndef SYS_TYPE
-#define SYS_TYPE
-typedef struct s_Sys{
-       val_t v;
-} Sys;
+/*
+       Extern implementation of Nit module string
+*/
+#ifndef STRING_NITG_NITNI_H
+#define STRING_NITG_NITNI_H
+
+#ifndef NIT_TYPE_String
+#define NIT_TYPE_String 1
+typedef struct nitni_instance *String;
 #endif
-
-#include "string_nit.h"
-
-/* out/indirect function for string::Sys::native_argc */
-val_t Sys_native_argc___out( val_t recv );
-
-/* out/indirect function for string::Sys::native_argv */
-val_t Sys_native_argv___out( val_t recv, val_t i );
+#include "string._ffi.h"
+#define String_incr_ref(from) while(0){}
+#define String_decr_ref(from) while(0){}
+extern struct nitni_instance * string___NativeString_to_s( char* recv );
 #endif