ni_nitdoc: simplified github option
[nit.git] / c_src / time._nitni.h
1 #include <nit_common.h>
2 #include "standard___time._sep.h"
3 #ifndef TIME_NITNI_H
4 #define TIME_NITNI_H
5
6 #ifndef OBJECT_TYPE
7 #define OBJECT_TYPE
8 struct s_Object{
9 struct nitni_ref ref; /* real ref struct, must be first */
10 };
11 typedef struct s_Object *Object;
12 #define Object_incr_ref( x ) nitni_global_ref_incr( (struct nitni_ref*)(x) )
13 #define Object_decr_ref( x ) nitni_global_ref_decr( (struct nitni_ref*)(x) )
14 #endif
15 #ifndef SYS_TYPE
16 #define SYS_TYPE
17 struct s_Sys{
18 struct nitni_ref ref; /* real ref struct, must be first */
19 };
20 typedef struct s_Sys *Sys;
21 #define Sys_incr_ref( x ) nitni_global_ref_incr( (struct nitni_ref*)(x) )
22 #define Sys_decr_ref( x ) nitni_global_ref_decr( (struct nitni_ref*)(x) )
23 #endif
24 #ifndef STRING_TYPE
25 #define STRING_TYPE
26 struct s_String{
27 struct nitni_ref ref; /* real ref struct, must be first */
28 };
29 typedef struct s_String *String;
30 #define String_incr_ref( x ) nitni_global_ref_incr( (struct nitni_ref*)(x) )
31 #define String_decr_ref( x ) nitni_global_ref_decr( (struct nitni_ref*)(x) )
32 #endif
33 #include "time_nit.h"
34 #include <standard___time._ffi.h>
35
36 /* out/indirect function for time::Object::get_time */
37 val_t Object_get_time___out( val_t recv );
38
39 /* out/indirect function for time::Sys::nanosleep */
40 void Sys_nanosleep___out( val_t recv, val_t sec, val_t nanosec );
41
42 /* out/indirect function for time::TimeT::init */
43 val_t NEW_TimeT_standard___time___TimeT___init( );
44
45 /* out/indirect function for time::TimeT::from_i */
46 val_t NEW_TimeT_standard___time___TimeT___from_i( val_t i );
47
48 /* out/indirect function for time::TimeT::update */
49 void TimeT_update___out( val_t recv );
50
51 /* out/indirect function for time::TimeT::ctime */
52 val_t TimeT_ctime___out( val_t recv );
53
54 /* out/indirect function for time::TimeT::difftime */
55 val_t TimeT_difftime___out( val_t recv, val_t start );
56
57 /* out/indirect function for time::TimeT::to_i */
58 val_t TimeT_to_i___out( val_t recv );
59
60 /* out/indirect function for time::Tm::gmtime */
61 val_t NEW_Tm_standard___time___Tm___gmtime( );
62
63 /* out/indirect function for time::Tm::gmtime_from_timet */
64 val_t NEW_Tm_standard___time___Tm___gmtime_from_timet( val_t t );
65
66 /* out/indirect function for time::Tm::localtime */
67 val_t NEW_Tm_standard___time___Tm___localtime( );
68
69 /* out/indirect function for time::Tm::localtime_from_timet */
70 val_t NEW_Tm_standard___time___Tm___localtime_from_timet( val_t t );
71
72 /* out/indirect function for time::Tm::to_timet */
73 val_t Tm_to_timet___out( val_t recv );
74
75 /* out/indirect function for time::Tm::sec */
76 val_t Tm_sec___out( val_t recv );
77
78 /* out/indirect function for time::Tm::min */
79 val_t Tm_min___out( val_t recv );
80
81 /* out/indirect function for time::Tm::hour */
82 val_t Tm_hour___out( val_t recv );
83
84 /* out/indirect function for time::Tm::mday */
85 val_t Tm_mday___out( val_t recv );
86
87 /* out/indirect function for time::Tm::mon */
88 val_t Tm_mon___out( val_t recv );
89
90 /* out/indirect function for time::Tm::year */
91 val_t Tm_year___out( val_t recv );
92
93 /* out/indirect function for time::Tm::wday */
94 val_t Tm_wday___out( val_t recv );
95
96 /* out/indirect function for time::Tm::yday */
97 val_t Tm_yday___out( val_t recv );
98
99 /* out/indirect function for time::Tm::is_dst */
100 val_t Tm_is_dst___out( val_t recv );
101
102 /* out/indirect function for time::Tm::asctime */
103 val_t Tm_asctime___out( val_t recv );
104
105 /* out/indirect function for time::Tm::strftime */
106 val_t Tm_strftime___out( val_t recv, val_t format );
107 /* friendly for string::NativeString::to_s_with_copy */
108 String time_NativeString_to_s_with_copy( char * recv );
109 #ifndef NativeString_to_s_with_copy
110 #define NativeString_to_s_with_copy time_NativeString_to_s_with_copy
111 #endif
112 /* friendly for string::String::to_cstring */
113 char * time_String_to_cstring( String recv );
114 #ifndef String_to_cstring
115 #define String_to_cstring time_String_to_cstring
116 #endif
117 /* friendly for string::NativeString::(string::Object::to_s) */
118 String time_NativeString_to_s( char * recv );
119 #ifndef NativeString_to_s
120 #define NativeString_to_s time_NativeString_to_s
121 #endif
122 #endif