Added pnacl manifest.
[nit.git] / c_src / time._nitni.h
index 4a4c105..7d35188 100644 (file)
@@ -1,17 +1,25 @@
-#include <nit_common.h>
-#include "standard___time._sep.h"
-#ifndef TIME_NITNI_H
-#define TIME_NITNI_H
+/*
+       Extern implementation of Nit module time
+*/
+#ifndef TIME_NITG_NITNI_H
+#define TIME_NITG_NITNI_H
 
-#ifndef OBJECT_TYPE
-#define OBJECT_TYPE
-typedef struct s_Object{
-       val_t v;
-} Object;
+#ifndef NIT_TYPE_String
+#define NIT_TYPE_String 1
+typedef struct nitni_instance *String;
 #endif
-
-#include "time_nit.h"
-
-/* out/indirect function for time::Object::get_time */
-val_t Object_get_time___out( val_t recv );
+#ifndef NIT_TYPE_String
+#define NIT_TYPE_String 1
+typedef struct nitni_instance *String;
+#endif
+#ifndef NIT_TYPE_String
+#define NIT_TYPE_String 1
+typedef struct nitni_instance *String;
+#endif
+#include "time._ffi.h"
+#define String_incr_ref(from) while(0){}
+#define String_decr_ref(from) while(0){}
+extern struct nitni_instance * time___NativeString_to_s_with_copy( char* recv );
+extern char* time___String_to_cstring( struct nitni_instance * recv );
+extern struct nitni_instance * time___NativeString_to_s( char* recv );
 #endif