c_src: update to have intern args
[nit.git] / c_src / string._nitni.h
1 #include <nit_common.h>
2 #include "standard___string._sep.h"
3 #ifndef STRING_NITNI_H
4 #define STRING_NITNI_H
5
6 #ifndef STRING_TYPE
7 #define STRING_TYPE
8 struct s_String{
9 struct nitni_ref ref; /* real ref struct, must be first */
10 };
11 typedef struct s_String *String;
12 #define String_incr_ref( x ) nitni_global_ref_incr( (struct nitni_ref*)(x) )
13 #define String_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 #include "string_nit.h"
25 #include <standard___string._ffi.h>
26
27 /* out/indirect function for string::Float::to_precision_native */
28 val_t Float_to_precision_native___out( val_t recv, val_t nb );
29
30 /* out/indirect function for string::NativeString::atof */
31 val_t NativeString_atof___out( val_t recv );
32
33 /* out/indirect function for string::Sys::native_argc */
34 val_t Sys_native_argc___out( val_t recv );
35
36 /* out/indirect function for string::Sys::native_argv */
37 val_t Sys_native_argv___out( val_t recv, val_t i );
38 /* friendly for string::String::from_cstring */
39 String string_new_String_from_cstring( char * str );
40 #ifndef new_String_from_cstring
41 #define new_String_from_cstring string_new_String_from_cstring
42 #endif
43 #endif