ni_nitdoc: new workflow for comment modification
[nit.git] / c_src / math._nitni.h
index 4f0d19a..4d00c83 100644 (file)
@@ -5,16 +5,27 @@
 
 #ifndef OBJECT_TYPE
 #define OBJECT_TYPE
-typedef struct s_Object{
-       val_t v;
-} Object;
+struct s_Object{
+               struct nitni_ref ref; /* real ref struct, must be first */
+};
+typedef struct s_Object *Object;
+#define Object_incr_ref( x ) nitni_global_ref_incr( (struct nitni_ref*)(x) )
+#define Object_decr_ref( x ) nitni_global_ref_decr( (struct nitni_ref*)(x) )
 #endif
-
-#include ".././../lib/standard//math_nit.h"
+#include "math_nit.h"
 
 /* out/indirect function for math::Int::rand */
 val_t Int_rand___out( val_t recv );
 
+/* out/indirect function for math::Int::bin_and */
+val_t Int_bin_and___out( val_t recv, val_t i );
+
+/* out/indirect function for math::Int::bin_or */
+val_t Int_bin_or___out( val_t recv, val_t i );
+
+/* out/indirect function for math::Int::bin_xor */
+val_t Int_bin_xor___out( val_t recv, val_t i );
+
 /* out/indirect function for math::Float::sqrt */
 val_t Float_sqrt___out( val_t recv );