bench: do not use replot
[nit.git] / c_src / string._nitni.h
index bba40ab..89b5e61 100644 (file)
@@ -5,13 +5,18 @@
 
 #ifndef SYS_TYPE
 #define SYS_TYPE
-typedef struct s_Sys{
-       val_t v;
-} Sys;
+struct s_Sys{
+               struct nitni_ref ref; /* real ref struct, must be first */
+};
+typedef struct s_Sys *Sys;
+#define Sys_incr_ref( x ) nitni_global_ref_incr( (struct nitni_ref*)(x) )
+#define Sys_decr_ref( x ) nitni_global_ref_decr( (struct nitni_ref*)(x) )
 #endif
-
 #include "string_nit.h"
 
+/* out/indirect function for string::NativeString::atof */
+val_t NativeString_atof___out( val_t recv );
+
 /* out/indirect function for string::Sys::native_argc */
 val_t Sys_native_argc___out( val_t recv );